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.
in | InputStream to localize |
java.io.InputStream, java.io.BufferedReader.BufferedReader(java.io.Reader), java.io.InputStreamReader.InputStreamReader(java.io.InputStream)
OutputStreamWriter
, BufferedWriter
, and
PrintWriter
classes.
Creates a localized version of an output stream. This method
takes an OutputStream
and returns an
OutputStream
equivalent to the argument in all respects
except that it is localized: as Unicode characters are written to
the stream, they are automatically converted to the local
character set.
If the argument is already a localized stream, it may be returned as the result.
out | OutputStream to localize |
java.io.OutputStream, java.io.BufferedWriter.BufferedWriter(java.io.Writer), java.io.OutputStreamWriter.OutputStreamWriter(java.io.OutputStream), java.io.PrintWriter.PrintWriter(java.io.OutputStream)
Enable or disable finalization on exit; doing so specifies that the finalizers of all objects that have finalizers that have not yet been automatically invoked are to be run before the Java runtime exits. By default, finalization on exit is disabled.
If there is a security manager,
its checkExit
method is first called
with 0 as its argument to ensure the exit is allowed.
This could result in a SecurityException.
value | true to enable finalization on exit, false to disable |
SecurityException
| if a security manager exists and its checkExit
method doesn't allow the exit. |
java.lang.Runtime.exit(int), java.lang.Runtime.gc(), java.lang.SecurityManager.checkExit(int)
Diagram: System