uk.org.ogsadai.common
Class BlockReaderReader

java.lang.Object
  |
  +--java.io.Reader
        |
        +--uk.org.ogsadai.common.BlockReaderReader

public class BlockReaderReader
extends java.io.Reader

A java.io.Reader that wraps a BlockReader.

Author:
The OGSA-DAI Project Team

Field Summary
 
Fields inherited from class java.io.Reader
lock
 
Constructor Summary
BlockReaderReader(BlockReader blockReader)
          Constructs a new instance using the specified BlockReader.
 
Method Summary
 void close()
           
 int read(char[] buffer, int offset, int length)
           
 
Methods inherited from class java.io.Reader
mark, markSupported, read, read, ready, reset, skip
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BlockReaderReader

public BlockReaderReader(BlockReader blockReader)
Constructs a new instance using the specified BlockReader.

Parameters:
blockReader - The BlockReader to wrap.
Method Detail

close

public void close()
           throws java.io.IOException
Specified by:
close in class java.io.Reader
java.io.IOException

read

public int read(char[] buffer,
                int offset,
                int length)
         throws java.io.IOException
Specified by:
read in class java.io.Reader
Throws:
java.io.IOException - If an I/O error occurs caused by an unsupported block type being contained in the wrapped BlockReader.
See Also:
Reader.read(char[],int,int)