net.officefloor.plugin.stream.inputstream
Class BrowsableInputStream
java.lang.Object
java.io.InputStream
net.officefloor.plugin.stream.inputstream.BrowsableInputStream
- All Implemented Interfaces:
- Closeable
public class BrowsableInputStream
- extends InputStream
Provides ability to browse an InputStream.
- Author:
- Daniel Sagenschneider
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BrowsableInputStream
public BrowsableInputStream(InputStream input,
int dataBufferCapacity,
Object mutex)
- Initiate.
- Parameters:
input - InputStream.dataBufferCapacity - Capacity for each DataBuffer.mutex - Mutex to synchronise on.
createBrowser
public InputStream createBrowser()
- Creates browse
InputStream to content.
- Returns:
- Browse
InputStream.
available
public int available()
throws IOException
- Overrides:
available in class InputStream
- Throws:
IOException
read
public int read()
throws IOException
- Specified by:
read in class InputStream
- Throws:
IOException
close
public void close()
throws IOException
- Specified by:
close in interface Closeable- Overrides:
close in class InputStream
- Throws:
IOException
Copyright © 2005-2011. All Rights Reserved.