uk.org.ogsadai.common
Class BlockWriterWriter

java.lang.Object
  |
  +--java.io.Writer
        |
        +--uk.org.ogsadai.common.BlockWriterWriter

public class BlockWriterWriter
extends java.io.Writer

A java.io.Writer that wraps a BlockWriter.

Author:
The OGSA-DAI Project Team

Field Summary
 
Fields inherited from class java.io.Writer
lock
 
Constructor Summary
BlockWriterWriter(BlockWriter writer)
          Constructs a new instance using the specified BlockWriter.
 
Method Summary
 void close()
          This method also closes the BlockWriter object that this object represents
 void flush()
           
 void write(char[] cbuf, int off, int len)
           
 
Methods inherited from class java.io.Writer
write, write, write, write
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BlockWriterWriter

public BlockWriterWriter(BlockWriter writer)
Constructs a new instance using the specified BlockWriter.

Parameters:
writer - The BlockWriter to wrap.
Method Detail

close

public void close()
           throws java.io.IOException
This method also closes the BlockWriter object that this object represents

Specified by:
close in class java.io.Writer
java.io.IOException
See Also:
Writer.close()

flush

public void flush()
           throws java.io.IOException
Specified by:
flush in class java.io.Writer
java.io.IOException

write

public void write(char[] cbuf,
                  int off,
                  int len)
           throws java.io.IOException
Specified by:
write in class java.io.Writer
java.io.IOException