CDC 1.1.2

推奨されていない API


コンテンツ
推奨されていないメソッド
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

Copyright 2006 Sun Microsystems, Inc. All Rights Reserved. Use of this specification is subject to license terms.