net.groboclown.util.io.v1
Class WriterOutputStream

java.lang.Object
  |
  +--java.io.OutputStream
        |
        +--net.groboclown.util.io.v1.WriterOutputStream

public class WriterOutputStream
extends OutputStream

Converts from a Writer to an OutputStream.


Field Summary
private  Writer w
           
 
Constructor Summary
WriterOutputStream(Writer w)
           
 
Method Summary
 void close()
           
 void flush()
           
 void write(byte[] b)
           
 void write(byte[] b, int off, int len)
           
 void write(int b)
           
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait
 

Field Detail

w

private Writer w
Constructor Detail

WriterOutputStream

public WriterOutputStream(Writer w)
Method Detail

write

public void write(int b)
           throws IOException
Overrides:
write in class OutputStream

write

public void write(byte[] b,
                  int off,
                  int len)
           throws IOException
Overrides:
write in class OutputStream

write

public void write(byte[] b)
           throws IOException
Overrides:
write in class OutputStream

close

public void close()
           throws IOException
Overrides:
close in class OutputStream

flush

public void flush()
           throws IOException
Overrides:
flush in class OutputStream


Written under the LGPL