org.openjena.atlas.io
Class InputStreamBuffered
java.lang.Object
java.io.InputStream
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
| 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 |
DFT_BUFSIZE
public static int DFT_BUFSIZE
InputStreamBuffered
public InputStreamBuffered(java.io.InputStream input)
InputStreamBuffered
public InputStreamBuffered(java.io.InputStream input,
int bufsize)
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.