public class ParserInputStream extends InputStream implements Positionable
Keeps track of current byte position.
Warning: Not thread safe.
| Modifier | Constructor and Description |
|---|---|
protected |
ParserInputStream(ParserPipe pipe)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
Position |
getPosition()
Returns the current position in a reader or input stream.
|
int |
read() |
available, close, mark, markSupported, read, read, reset, skipprotected ParserInputStream(ParserPipe pipe) throws IOException
pipe - The parser input.IOException - Thrown by underlying stream.public int read() throws IOException
read in class InputStreamIOExceptionpublic Position getPosition()
PositionablegetPosition in interface PositionableCopyright © 2016–2019 The Apache Software Foundation. All rights reserved.