com.caucho.vfs
Class StreamImplOutputStream

java.lang.Object
  extended by java.io.OutputStream
      extended by com.caucho.vfs.StreamImplOutputStream
All Implemented Interfaces:
java.io.Closeable, java.io.Flushable

public class StreamImplOutputStream
extends java.io.OutputStream

Unbuffered output stream to the stream impl the VFS.


Constructor Summary
StreamImplOutputStream(StreamImpl stream)
           
 
Method Summary
 void close()
          Closes the stream.
 void flush()
          Flushes the write output.
 void write(byte[] buffer, int offset, int length)
          Writes a buffer to the underlying stream.
 void write(int v)
          Writes a byte to the underlying stream.
 
Methods inherited from class java.io.OutputStream
write
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StreamImplOutputStream

public StreamImplOutputStream(StreamImpl stream)
Method Detail

write

public void write(int v)
           throws java.io.IOException
Writes a byte to the underlying stream.

Specified by:
write in class java.io.OutputStream
Parameters:
v - the value to write
Throws:
java.io.IOException

write

public void write(byte[] buffer,
                  int offset,
                  int length)
           throws java.io.IOException
Writes a buffer to the underlying stream.

Overrides:
write in class java.io.OutputStream
Parameters:
buffer - the byte array to write.
offset - the offset into the byte array.
length - the number of bytes to write.
Throws:
java.io.IOException

flush

public void flush()
           throws java.io.IOException
Flushes the write output.

Specified by:
flush in interface java.io.Flushable
Overrides:
flush in class java.io.OutputStream
Throws:
java.io.IOException

close

public void close()
           throws java.io.IOException
Closes the stream.

Specified by:
close in interface java.io.Closeable
Overrides:
close in class java.io.OutputStream
Throws:
java.io.IOException