|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.flume.client.avro.BufferedLineReader
public class BufferedLineReader
A LineReader
implementation which delegates to a
BufferedReader
.
Constructor Summary | |
---|---|
BufferedLineReader(Reader in)
|
Method Summary | |
---|---|
void |
close()
Clean-up any state associated with this reader. |
void |
mark(int readAheadLimit)
|
String |
readLine()
Get the next line associated with the input stream. |
List<String> |
readLines(int n)
Get up to n lines associated with the input stream. |
void |
reset()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public BufferedLineReader(Reader in)
Method Detail |
---|
public String readLine() throws IOException
LineReader
null
, the input underlying input source is considered finished.
Note that this is allowed to block for indefinite amounts of time waiting
to generate a new line.
readLine
in interface LineReader
IOException
public void close() throws IOException
LineReader
close
in interface LineReader
IOException
public List<String> readLines(int n) throws IOException
LineReader
n
lines associated with the input stream. If this returns
less than n lines, the input underlying input source is considered
finished. Note that this is allowed to block for indefinite amounts of
time waiting to generate a new line.
readLines
in interface LineReader
IOException
public void mark(int readAheadLimit) throws IOException
IOException
public void reset() throws IOException
IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |