public abstract class LineReaderInputStream extends FilterInputStream
in
Modifier | Constructor and Description |
---|---|
protected |
LineReaderInputStream(InputStream in) |
Modifier and Type | Method and Description |
---|---|
abstract int |
readLine(ByteArrayBuffer dst)
Reads one line of text into the given
ByteArrayBuffer . |
abstract boolean |
unread(ByteArrayBuffer buf)
Tries to unread the last read line.
|
available, close, mark, markSupported, read, read, read, reset, skip
protected LineReaderInputStream(InputStream in)
public abstract int readLine(ByteArrayBuffer dst) throws MaxLineLimitException, IOException
ByteArrayBuffer
.dst
- 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 abstract boolean unread(ByteArrayBuffer buf)
Copyright © 2004-2012 The Apache Software Foundation. All Rights Reserved.