java.lang.Object
java.io.InputStream
org.apache.jena.atlas.io.InputStreamBuffered
- All Implemented Interfaces:
Closeable,AutoCloseable
InputStream optimizing for one byte at a time operation.
java.io.BufferedInputStream operations have synchronization making
reading one byte at a time expensive.
- See Also:
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionInputStreamBuffered(InputStream input) InputStreamBuffered(InputStream input, int bufsize) -
Method Summary
Methods inherited from class java.io.InputStream
available, mark, markSupported, nullInputStream, read, read, readAllBytes, readNBytes, readNBytes, reset, skip, skipNBytes, transferTo
-
Field Details
-
DFT_BUFSIZE
public static int DFT_BUFSIZE
-
-
Constructor Details
-
InputStreamBuffered
-
InputStreamBuffered
-
-
Method Details
-
read
- Specified by:
readin classInputStream- Throws:
IOException
-
close
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Overrides:
closein classInputStream- Throws:
IOException
-
advance
public final int advance()
-