net.metanotion.io
Class JOutputStream

java.lang.Object
  extended by net.metanotion.io.JOutputStream
All Implemented Interfaces:
Closeable, Flushable, OutputStream

public final class JOutputStream
extends Object
implements OutputStream

Adapter to convert a java.io.OutputStream into a net.metantion.io.OutputStream.


Constructor Summary
JOutputStream(OutputStream out)
           
 
Method Summary
 void close()
           
 void flush()
           
 long length()
           
 long setLength(long newLength)
           
 void write(byte b)
           
 void write(byte[] b)
           
 void write(byte[] b, int offset, int length)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JOutputStream

public JOutputStream(OutputStream out)
Method Detail

write

public void write(byte[] b)
Specified by:
write in interface OutputStream

write

public void write(byte[] b,
                  int offset,
                  int length)
Specified by:
write in interface OutputStream

write

public void write(byte b)
Specified by:
write in interface OutputStream

close

public void close()
Specified by:
close in interface Closeable
Specified by:
close in interface OutputStream

flush

public void flush()
Specified by:
flush in interface Flushable
Specified by:
flush in interface OutputStream

length

public long length()
Specified by:
length in interface OutputStream

setLength

public long setLength(long newLength)
Specified by:
setLength in interface OutputStream