@InterfaceAudience.Private @InterfaceStability.Evolving public class SimpleTextLineEventReader extends Object implements EventReader
EventReader implementation which delegates to a
 BufferedReader.| Constructor and Description | 
|---|
| SimpleTextLineEventReader(Reader in) | 
| Modifier and Type | Method and Description | 
|---|---|
| void | close()Clean-up any state associated with this reader. | 
| Event | readEvent()Get the next line associated with the input stream. | 
| List<Event> | readEvents(int n)Get up to  nlines associated with the input stream. | 
public SimpleTextLineEventReader(Reader in)
public Event readEvent() throws IOException
EventReadernull, 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.readEvent in interface EventReaderIOExceptionpublic List<Event> readEvents(int n) throws IOException
EventReadern 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.readEvents in interface EventReaderIOExceptionpublic void close()
           throws IOException
EventReaderclose in interface Closeableclose in interface AutoCloseableclose in interface EventReaderIOExceptionCopyright © 2009-2017 Apache Software Foundation. All Rights Reserved.