org.openjena.atlas.io
Class InputStreamBuffered

java.lang.Object
  extended by java.io.InputStream
      extended by org.openjena.atlas.io.InputStreamBuffered
All Implemented Interfaces:
java.io.Closeable

public final class InputStreamBuffered
extends java.io.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(java.io.InputStream input)
           
InputStreamBuffered(java.io.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(java.io.InputStream input)

InputStreamBuffered

public InputStreamBuffered(java.io.InputStream input,
                           int bufsize)
Method Detail

read

public int read()
         throws java.io.IOException
Specified by:
read in class java.io.InputStream
Throws:
java.io.IOException

close

public void close()
           throws java.io.IOException
Specified by:
close in interface java.io.Closeable
Overrides:
close in class java.io.InputStream
Throws:
java.io.IOException

advance

public final int advance()


Copyright ? 2004, 2005, 2006, 2007, 2008, 2009 Hewlett-Packard Development Company, LP Copyright ? 2010 Talis Systems Ltd. Copyright ? 2010, 2011 Epimorphics Ltd.