Package org.apache.jena.atlas.io
Class InputStreamBuffered
- java.lang.Object
-
- java.io.InputStream
-
- org.apache.jena.atlas.io.InputStreamBuffered
-
- All Implemented Interfaces:
java.io.Closeable,java.lang.AutoCloseable
public final class InputStreamBuffered extends java.io.InputStreamInputStream optimizing for one byte at a time operation. java.io.BufferedInputStream operations have synchronization making reading one byte at a time expensive.- See Also:
InputStream,BufferedInputStream
-
-
Field Summary
Fields Modifier and Type Field Description static intDFT_BUFSIZE
-
Constructor Summary
Constructors Constructor Description InputStreamBuffered(java.io.InputStream input)InputStreamBuffered(java.io.InputStream input, int bufsize)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intadvance()voidclose()intread()
-
-
-
Method Detail
-
read
public int read() throws java.io.IOException- Specified by:
readin classjava.io.InputStream- Throws:
java.io.IOException
-
close
public void close() throws java.io.IOException- Specified by:
closein interfacejava.lang.AutoCloseable- Specified by:
closein interfacejava.io.Closeable- Overrides:
closein classjava.io.InputStream- Throws:
java.io.IOException
-
advance
public final int advance()
-
-