Package htsjdk.tribble.readers
Interface Positional
- All Superinterfaces:
LocationAware
- All Known Implementing Classes:
PositionalBufferedStream
Minimal interface for an object at support getting the current position in the stream / writer / file, as well as a handful of other
reader-like features.
-
Method Summary
Methods inherited from interface htsjdk.samtools.util.LocationAware
getPosition
-
Method Details
-
isDone
Is the stream done? Equivalent to ! hasNext() for an iterator?- Returns:
- true if the stream has reached EOF, false otherwise
- Throws:
IOException
-
skip
Skip the next nBytes in the stream.- Parameters:
nBytes
- to skip, must be >= 0- Returns:
- the number of bytes actually skippped.
- Throws:
IOException
-
peek
Return the next byte in the first, without actually reading it from the stream. Has the same output as read()- Returns:
- the next byte, or -1 if EOF encountered
- Throws:
IOException
-