Package htsjdk.tribble.readers
Class SynchronousLineReader
java.lang.Object
htsjdk.tribble.readers.SynchronousLineReader
- All Implemented Interfaces:
LineReader
,Closeable
,AutoCloseable
Implementation of
LineReader
that reads lines directly from the underlying stream or reader.-
Constructor Summary
ConstructorDescriptionSynchronousLineReader
(InputStream stream) SynchronousLineReader
(Reader reader) -
Method Summary
-
Constructor Details
-
SynchronousLineReader
-
SynchronousLineReader
-
-
Method Details
-
readLine
- Specified by:
readLine
in interfaceLineReader
- Returns:
- The next "line" from the source. Typically a line is a set of characters terminated by '\n', '\r', or '\r\n'. The line-terminator is not included
-
close
public void close()- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Specified by:
close
in interfaceLineReader
-
toString
-