Package org.apache.juneau.parser
Class ParserInputStream
java.lang.Object
java.io.InputStream
org.apache.juneau.parser.ParserInputStream
- All Implemented Interfaces:
- Closeable,- AutoCloseable,- Positionable
- Direct Known Subclasses:
- MsgPackInputStream
Input stream meant to be used as input for stream-based parsers.
 
Keeps track of current byte position.
Notes:
- This class is not thread safe.
See Also:
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionReturns the current position in a reader or input stream.intread()Methods inherited from class java.io.InputStreamavailable, close, mark, markSupported, nullInputStream, read, read, readAllBytes, readNBytes, readNBytes, reset, skip, skipNBytes, transferTo
- 
Constructor Details- 
ParserInputStreamConstructor.- Parameters:
- pipe- The parser input.
- Throws:
- IOException- Thrown by underlying stream.
 
 
- 
- 
Method Details- 
read- Specified by:
- readin class- InputStream
- Throws:
- IOException
 
- 
getPositionDescription copied from interface:PositionableReturns the current position in a reader or input stream.- Specified by:
- getPositionin interface- Positionable
- Returns:
- The current position in a reader or input stream.
 
 
-