net.officefloor.plugin.stream.inputstream
Class InputStreamInputBufferStream
java.lang.Object
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
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
InputStreamInputBufferStream
public InputStreamInputBufferStream(InputStream input)
- Initiate.
- Parameters:
input - InputStream being wrapped for
InputBufferStream functionality.
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-2011. All Rights Reserved.