readLine
method of DataInput
. Bytes for this operation are read from the contained input stream.
@deprecated This method does not properly convert bytes to characters.As of JDK 1.1, the preferred way to read lines of text is via the BufferedReader.readLine()
method. Programs that use the DataInputStream
class to read lines can be converted to use the BufferedReader
class by replacing code of the form:
with:DataInputStream d = new DataInputStream(in);
@return the next line of text from this input stream. @exception IOException if an I/O error occurs. @see java.io.BufferedReader#readLine() @see java.io.FilterInputStream#inBufferedReader d = new BufferedReader(new InputStreamReader(in));
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|