See the general contract of the <code>readLine</code>
method of <code>DataInput</code>.
<p>
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
<code>BufferedReader.readLine()</code> method. Programs that use the
<code>DataInputStream</code> class to read lines can be converted to use
the <code>BufferedReader</code> class by replacing code of the form:
<blockquote><pre>
DataInputStream d = new DataInputStream(inputStream);
</pre></blockquote>
with:
<blockquote><pre>
BufferedReader d
= new BufferedReader(new InputStreamReader(inputStream));
</pre></blockquote>
@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#inputStream
See the general contract of the <code>readLine</code> method of <code>DataInput</code>. <p> 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 <code>BufferedReader.readLine()</code> method. Programs that use the <code>DataInputStream</code> class to read lines can be converted to use the <code>BufferedReader</code> class by replacing code of the form: <blockquote><pre> DataInputStream d = new DataInputStream(inputStream); </pre></blockquote> with: <blockquote><pre> BufferedReader d = new BufferedReader(new InputStreamReader(inputStream)); </pre></blockquote>
@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#inputStream