net.officefloor.plugin.stream.inputstream
Class InputStreamInputBufferStream

java.lang.Object
  extended by net.officefloor.plugin.stream.inputstream.InputStreamInputBufferStream
All Implemented Interfaces:
InputBufferStream

public class InputStreamInputBufferStream
extends Object
implements InputBufferStream

InputBufferStream implementation that wraps an InputStream.

Author:
Daniel Sagenschneider

Constructor Summary
InputStreamInputBufferStream(InputStream input)
          Initiate.
 
Method Summary
 long available()
           
 void close()
           
 InputStream getBrowseStream()
           
 InputStream getInputStream()
           
 int read(BufferProcessor processor)
           
 int read(byte[] readBuffer)
           
 int read(byte[] readBuffer, int offset, int length)
           
 int read(int numberOfBytes, GatheringBufferProcessor processor)
           
 int read(int numberOfBytes, OutputBufferStream outputBufferStream)
           
 long skip(long numberOfBytes)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

InputStreamInputBufferStream

public InputStreamInputBufferStream(InputStream input)
Initiate.

Parameters:
input - InputStream being wrapped for InputBufferStream functionality.
Method Detail

getInputStream

public InputStream getInputStream()
Specified by:
getInputStream in interface InputBufferStream

getBrowseStream

public InputStream getBrowseStream()
Specified by:
getBrowseStream in interface InputBufferStream

read

public int read(byte[] readBuffer)
         throws IOException
Specified by:
read in interface InputBufferStream
Throws:
IOException

read

public int read(byte[] readBuffer,
                int offset,
                int length)
         throws IOException
Specified by:
read in interface InputBufferStream
Throws:
IOException

read

public int read(BufferProcessor processor)
         throws IOException
Specified by:
read in interface InputBufferStream
Throws:
IOException

read

public int read(int numberOfBytes,
                GatheringBufferProcessor processor)
         throws IOException
Specified by:
read in interface InputBufferStream
Throws:
IOException

read

public int read(int numberOfBytes,
                OutputBufferStream outputBufferStream)
         throws IOException
Specified by:
read in interface InputBufferStream
Throws:
IOException

skip

public long skip(long numberOfBytes)
          throws IOException
Specified by:
skip in interface InputBufferStream
Throws:
IOException

available

public long available()
               throws IOException
Specified by:
available in interface InputBufferStream
Throws:
IOException

close

public void close()
           throws IOException
Specified by:
close in interface InputBufferStream
Throws:
IOException


Copyright © 2005-2012. All Rights Reserved.