org.ajax4jsf.io
Class FastBufferInputStream

java.lang.Object
  extended by java.io.InputStream
      extended by org.ajax4jsf.io.FastBufferInputStream
All Implemented Interfaces:
java.io.Closeable

public class FastBufferInputStream
extends java.io.InputStream

Class for reading from a byte array chain.

Author:
glory

Constructor Summary
FastBufferInputStream(FastBufferOutputStream stream)
          Creates instance of FastBufferInputStream.
 
Method Summary
 int available()
           
 void mark(int readAheadLimit)
           
 int read()
           
 int read(byte[] b)
           
 int read(byte[] b, int off, int len)
           
 void reset()
           
 long skip(long n)
           
 
Methods inherited from class java.io.InputStream
close, markSupported
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FastBufferInputStream

public FastBufferInputStream(FastBufferOutputStream stream)
Creates instance of FastBufferInputStream.

Parameters:
stream -
Method Detail

read

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

read

public int read(byte[] b)
         throws java.io.IOException
Overrides:
read in class java.io.InputStream
Throws:
java.io.IOException
See Also:
java.io.InputStream.read(byte b[])

read

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

available

public int available()
              throws java.io.IOException
Overrides:
available in class java.io.InputStream
Throws:
java.io.IOException
See Also:
java.io.InputStream.available()

mark

public void mark(int readAheadLimit)
Overrides:
mark in class java.io.InputStream
See Also:
java.io.InputStream.mark()

reset

public void reset()
Overrides:
reset in class java.io.InputStream
See Also:
java.io.InputStream.reset()

skip

public long skip(long n)
          throws java.io.IOException
Overrides:
skip in class java.io.InputStream
Throws:
java.io.IOException
See Also:
java.io.InputStream.skip()


Copyright © 2009. All Rights Reserved.