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.
|
getPositionboolean isDone()
throws java.io.IOException
java.io.IOExceptionlong skip(long nBytes) throws java.io.IOException
nBytes - to skip, must be >= 0java.io.IOExceptionint peek() throws java.io.IOException
java.io.IOException