|
CDC 1.1.2 | |||||||||
前 次 | フレームあり フレームなし |
推奨されていないメソッド | |
---|---|
java.lang.SecurityManager.checkMulticast(InetAddress, byte)
代わりに #checkPermission(java.security.Permission) を使用する |
|
java.io.ObjectInputStream.readLine()
このメソッドでは、バイトから文字への変換が正しく行われません。 詳細および代替メソッドについては DataInputStream を参照してください。 |
|
java.io.DataInputStream.readLine()
このメソッドは、バイトを適切に文字列に変換しません。JDK 1.1 では、テキスト行を読み込む方法としては BufferedReader.readLine() メソッドを使うことが推奨されています。行を読み込むのに DataInputStream クラスを使うプログラムを、BufferedReader クラスを使うように変換するには、次の形式のコードを、
次の形式のコードで置き換えます。DataInputStream d = new DataInputStream(in); BufferedReader d = new BufferedReader(new InputStreamReader(in)); |
|
java.util.Properties.save(OutputStream, String)
このメソッドは、プロパティーリストの保存中に入出力エラーが発生しても、IOException をスローしません。Java 2 プラットフォーム Version 1.2 以降、プロパティーリストの保存方法としては、 store(OutputStream out, String header) メソッドの使用が推奨されます。 |
|
CDC 1.1.2 | |||||||||
前 次 | フレームあり フレームなし |