uk.org.ogsadai.common
Class BlockReaderInputStream
java.lang.Object
|
+--java.io.InputStream
|
+--uk.org.ogsadai.common.BlockReaderInputStream
- public class BlockReaderInputStream
- extends java.io.InputStream
An java.io.InputStream that wraps a BlockReader.
The blocks contained in the BlockReader must be
Strings, byte[] or implementations of the
org.w3c.dom.Node interface.
- Author:
- The OGSA-DAI Project Team
|
Method Summary |
int |
read()
|
int |
read(byte[] bytes,
int index,
int length)
|
| Methods inherited from class java.io.InputStream |
available, close, mark, markSupported, read, reset, skip |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BlockReaderInputStream
public BlockReaderInputStream(BlockReader blockReader)
- Constructs a new instance for the specified
BlockReader.
- Parameters:
blockReader - The BlockReader to wrap.
read
public int read(byte[] bytes,
int index,
int length)
throws java.io.IOException
- Overrides:
read in class java.io.InputStream
- Throws:
java.io.IOException - If an I/O error occurs caused by an unsupported
block type being contained in the wrapped
BlockReader.- See Also:
InputStream.read(byte[],int,int)
read
public int read()
throws java.io.IOException
- Specified by:
read in class java.io.InputStream
- Throws:
java.io.IOException - If an I/O error occurs caused by an unsupported
block type being contained in the wrapped
BlockReader.- See Also:
InputStream.read()