public interface Positional extends LocationAware
Modifier and Type | Method and Description |
---|---|
boolean |
isDone()
Is the stream done? Equivalent to ! hasNext() for an iterator?
|
int |
peek()
Return the next byte in the first, without actually reading it from the stream.
|
long |
skip(long nBytes)
Skip the next nBytes in the stream.
|
getPosition
boolean isDone() throws IOException
IOException
long skip(long nBytes) throws IOException
nBytes
- to skip, must be >= 0IOException
int peek() throws IOException
IOException