org.openjena.atlas.io
Class InputStreamBuffered

java.lang.Object
  extended by java.io.InputStream
      extended by 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

Field Summary
static int DFT_BUFSIZE
           
 
Constructor Summary
InputStreamBuffered(InputStream input)
           
InputStreamBuffered(InputStream input, int bufsize)
           
 
Method Summary
 int advance()
           
 void close()
           
 int read()
           
 
Methods inherited from class java.io.InputStream
available, mark, markSupported, read, read, reset, skip
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DFT_BUFSIZE

public static int DFT_BUFSIZE
Constructor Detail

InputStreamBuffered

public InputStreamBuffered(InputStream input)

InputStreamBuffered

public InputStreamBuffered(InputStream input,
                           int bufsize)
Method Detail

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