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, skip
protected ParserInputStream(ParserPipe pipe) throws IOException
pipe
- The parser input.IOException
- Thrown by underlying stream.public int read() throws IOException
read
in class InputStream
IOException
public Position getPosition()
Positionable
getPosition
in interface Positionable
Copyright © 2016–2019 The Apache Software Foundation. All rights reserved.