com.caucho.vfs
Class StreamImplInputStream

java.lang.Object
  extended by java.io.InputStream
      extended by com.caucho.vfs.StreamImplInputStream
All Implemented Interfaces:
java.io.Closeable

public class StreamImplInputStream
extends java.io.InputStream

Unbuffered input stream to the stream impl


Constructor Summary
StreamImplInputStream(StreamImpl stream)
           
 
Method Summary
 void close()
          Closes the stream.
 int read()
          Writes a byte to the underlying stream.
 int read(byte[] buffer, int offset, int length)
          Reads a buffer to the underlying stream.
 
Methods inherited from class java.io.InputStream
available, mark, markSupported, read, reset, skip
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StreamImplInputStream

public StreamImplInputStream(StreamImpl stream)
Method Detail

read

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

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

read

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

Overrides:
read in class java.io.InputStream
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

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.InputStream
Throws:
java.io.IOException