Deprecated Methods
The first column in the following table lists the methods in theRuntime
class that are deprecated in the JDK 1.1. These classes were deprecated because the JDK 1.1 introduced new internationalization features including I/O classes that translate a byte stream into a character stream based on a character-encoding. The second column lists the classes to use in place of the deprecated methods:
Deprecated Methods Alternatives getLocalizedInputStream(InputStream)
InputStreamReader
orBufferedReader
classesgetLocalizedOutputStream(OutputStream)
OutputStreamReader
orBufferedWriter
orPrintWriter
classesNew Methods
The following method was added to theRuntime
class for the JDK 1.1:For information about this method, see the notes regarding a similar change to the System class in the JDK 1.1 API Changes to the System ClassrunFinalizersOnExit(boolean)