|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface LineReader
A line reader produces a stream of lines for the AvroCLIClient
to
ingest into Flume. The stream may be finite or infinite.
Method Summary | |
---|---|
void |
close()
Clean-up any state associated with this reader. |
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. |
Method Detail |
---|
String readLine() throws IOException
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.
IOException
List<String> readLines(int n) throws IOException
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.
IOException
void close() throws IOException
IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |