|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.io.InputStream
java.io.FilterInputStream
com.sun.mail.util.LineInputStream
public class LineInputStream
This class is to support reading CRLF terminated lines that
contain only US-ASCII characters from an input stream. Provides
functionality that is similar to the deprecated
DataInputStream.readLine()
. Expected use is to read
lines as String objects from a RFC822 stream.
It is implemented as a FilterInputStream, so one can just wrap
this class around any input stream and read bytes from this filter.
Field Summary |
---|
Fields inherited from class java.io.FilterInputStream |
---|
in |
Constructor Summary | |
---|---|
LineInputStream(java.io.InputStream in)
|
Method Summary | |
---|---|
java.lang.String |
readLine()
Read a line containing only ASCII characters from the input stream. |
Methods inherited from class java.io.FilterInputStream |
---|
available, close, mark, markSupported, read, read, read, reset, skip |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public LineInputStream(java.io.InputStream in)
Method Detail |
---|
public java.lang.String readLine() throws java.io.IOException
This class is similar to the deprecated
DataInputStream.readLine()
java.io.IOException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |