public class LineReaderInputStreamAdaptor extends LineReaderInputStream
InputStream used by the MIME parser to detect whether the
underlying data stream was used (read from) and whether the end of the
stream was reached.in| Constructor and Description |
|---|
LineReaderInputStreamAdaptor(InputStream is) |
LineReaderInputStreamAdaptor(InputStream is,
int maxLineLen) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
eof() |
boolean |
isUsed() |
int |
read() |
int |
read(byte[] b,
int off,
int len) |
int |
readLine(ByteArrayBuffer dst)
Reads one line of text into the given
ByteArrayBuffer. |
long |
skip(long count) |
String |
toString() |
boolean |
unread(ByteArrayBuffer buf)
Tries to unread the last read line.
|
available, close, mark, markSupported, read, resetpublic LineReaderInputStreamAdaptor(InputStream is, int maxLineLen)
public LineReaderInputStreamAdaptor(InputStream is)
public int read()
throws IOException
read in class FilterInputStreamIOExceptionpublic int read(byte[] b,
int off,
int len)
throws IOException
read in class FilterInputStreamIOExceptionpublic int readLine(ByteArrayBuffer dst) throws MaxLineLimitException, IOException
LineReaderInputStreamByteArrayBuffer.readLine in class LineReaderInputStreamdst - Destination-1 if the end of
the stream has been reached.MaxLineLimitException - if the line exceeds a limit on
the line length imposed by a subclass.IOException - in case of an I/O error.public boolean eof()
public boolean isUsed()
public boolean unread(ByteArrayBuffer buf)
LineReaderInputStreamunread in class LineReaderInputStreampublic long skip(long count)
throws IOException
skip in class FilterInputStreamIOExceptionCopyright © 2004-2012 The Apache Software Foundation. All Rights Reserved.