public class LineIteratorReader
extends java.io.Reader
This class is useful to implement codecs for formats for which a Reader
based parser already
exists.
Constructor and Description |
---|
LineIteratorReader(htsjdk.tribble.readers.LineIterator lineIterator) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
int |
read(char[] cbuf,
int off,
int len)
Reads lines from the buffer, and if empty from the underlying line-iterator.
|
public LineIteratorReader(htsjdk.tribble.readers.LineIterator lineIterator)
public int read(char[] cbuf, int off, int len)
read
in class java.io.Reader
cbuf
- the destination buffer.off
- the start position in the buffer to copy characters into.len
- number of characters to read.public void close() throws java.io.IOException
close
in interface java.io.Closeable
close
in interface java.lang.AutoCloseable
close
in class java.io.Reader
java.io.IOException