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.
| Modifier and Type | Field and Description |
|---|---|
| private boolean | |
| private byte[] | |
| private static int |
| Access | Constructor and Description |
|---|---|
| public | |
| public |
| Modifier and Type | Method and Description |
|---|---|
| public String |
| allowutf8 | back to summary |
|---|---|
| private boolean allowutf8 | |
| lineBuffer | back to summary |
|---|---|
| private byte[] lineBuffer | |
| MAX_INCR | back to summary |
|---|---|
| private static int MAX_INCR | |
| LineInputStream | back to summary |
|---|---|
| public LineInputStream(InputStream in) | |
| LineInputStream | back to summary |
|---|---|
public LineInputStream(InputStream in, boolean allowutf8)
| |
| readLine | back to summary |
|---|---|
| public String readLine() throws IOException Read a line containing only ASCII characters from the input stream. A line is terminated by a CR or NL or CR-NL sequence. A common error is a CR-CR-NL sequence, which will also terminate a line. The line terminator is not returned as part of the returned String. Returns null if no data is available.
This class is similar to the deprecated
| |