org.openjena.atlas.io
Class InputStreamBuffered
java.lang.Object
java.io.InputStream
org.openjena.atlas.io.InputStreamBuffered
- All Implemented Interfaces:
- Closeable
public final class InputStreamBuffered
- extends InputStream
InputStream optimizing for one byte at a time operation.
BufferedInputStream operations have synchronization making
reading one byte at a time expensive.
- See Also:
InputStream
,
BufferedInputStream
DFT_BUFSIZE
public static int DFT_BUFSIZE
InputStreamBuffered
public InputStreamBuffered(InputStream input)
InputStreamBuffered
public InputStreamBuffered(InputStream input,
int bufsize)
read
public int read()
throws IOException
- Specified by:
read
in class InputStream
- Throws:
IOException
close
public void close()
throws IOException
- Specified by:
close
in interface Closeable
- Overrides:
close
in class InputStream
- Throws:
IOException
advance
public final int advance()
Licenced under the Apache License, Version 2.0