Runtime.getLocalizedInputStream

Runtime.getLocalizedInputStream

Class Overview | Class Members | This Package | All Packages

Syntax
public InputStream getLocalizedInputStream( InputStream in )
Returns
a localized input stream.
Description
Note: getLocalizedInputStream() is deprecated. As of JDK 1.1, the preferred way translate a byte stream in the local encoding into a character stream in Unicode is via the InputStreamReader and BufferedReader classes.

Creates a localized version of an input stream. This method takes an InputStream and returns an InputStream equivalent to the argument in all respects except that it is localized: as characters in the local character set are read from the stream, they are automatically converted from the local character set to Unicode.

If the argument is already a localized stream, it may be returned as the result.

See Also
InputStream, BufferedReader, InputStreamReader