com.go.trove.io
Class FastBufferedInputStream

java.lang.Object
  |
  +--java.io.InputStream
        |
        +--java.io.FilterInputStream
              |
              +--com.go.trove.io.FastBufferedInputStream

public class FastBufferedInputStream
extends java.io.FilterInputStream

FastBufferedInputStream is just a slightly modified version of BufferedInputStream. The synchronization is gone, and so reads are faster. Refer to the original BufferedInputStream for documentation.


Fields inherited from class java.io.FilterInputStream
in
 
Constructor Summary
FastBufferedInputStream(java.io.InputStream in)
           
FastBufferedInputStream(java.io.InputStream in, int size)
           
 
Method Summary
 int available()
           
 void close()
           
 void mark(int readlimit)
           
 boolean markSupported()
           
 int read()
           
 int read(byte[] b, int off, int len)
           
 void reset()
           
 long skip(long n)
           
 
Methods inherited from class java.io.FilterInputStream
read
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FastBufferedInputStream

public FastBufferedInputStream(java.io.InputStream in)

FastBufferedInputStream

public FastBufferedInputStream(java.io.InputStream in,
                               int size)
Method Detail

read

public int read()
         throws java.io.IOException
Overrides:
read in class java.io.FilterInputStream

read

public int read(byte[] b,
                int off,
                int len)
         throws java.io.IOException
Overrides:
read in class java.io.FilterInputStream

skip

public long skip(long n)
          throws java.io.IOException
Overrides:
skip in class java.io.FilterInputStream

available

public int available()
              throws java.io.IOException
Overrides:
available in class java.io.FilterInputStream

mark

public void mark(int readlimit)
Overrides:
mark in class java.io.FilterInputStream

reset

public void reset()
           throws java.io.IOException
Overrides:
reset in class java.io.FilterInputStream

markSupported

public boolean markSupported()
Overrides:
markSupported in class java.io.FilterInputStream

close

public void close()
           throws java.io.IOException
Overrides:
close in class java.io.FilterInputStream