java.lang.Object
java.io.InputStream
org.apache.jena.atlas.io.PeekInputStream
- All Implemented Interfaces:
Closeable,AutoCloseable
Parsing-centric input stream.
- See Also:
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionfinal voidclose()final booleaneof()longfinal InputStreamBufferedgetInput()longlongstatic PeekInputStreammake(InputStream inputStream) static PeekInputStreammake(InputStream inputStream, int bufferSize) static PeekInputStreamfinal intpeekByte()final voidpushbackByte(int b) push back a byte : does not alter underlying position, line or column countsfinal intread()final intread(byte[] buf, int off, int len) final intreadByte()Methods inherited from class java.io.InputStream
available, mark, markSupported, nullInputStream, read, readAllBytes, readNBytes, readNBytes, reset, skip, skipNBytes, transferTo
-
Field Details
-
INIT_LINE
public static final int INIT_LINE- See Also:
-
INIT_COL
public static final int INIT_COL- See Also:
-
-
Method Details
-
make
-
make
-
open
-
getInput
-
getLineNum
public long getLineNum() -
getColNum
public long getColNum() -
getPosition
public long getPosition() -
peekByte
public final int peekByte() -
readByte
public final int readByte() -
pushbackByte
public final void pushbackByte(int b) push back a byte : does not alter underlying position, line or column counts -
close
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Overrides:
closein classInputStream- Throws:
IOException
-
read
- Specified by:
readin classInputStream- Throws:
IOException
-
read
- Overrides:
readin classInputStream- Throws:
IOException
-
eof
public final boolean eof()
-