com.caucho.vfs
Class InputStreamSource

java.lang.Object
  extended by com.caucho.vfs.StreamSource
      extended by com.caucho.vfs.InputStreamSource

public class InputStreamSource
extends StreamSource

Stream source for Hessian serialization of large data


Constructor Summary
protected InputStreamSource()
          Constructor for subclasses.
  InputStreamSource(java.io.InputStream is)
          Constructor for Hessian deserialization.
 
Method Summary
 void close()
          Close the stream.
 java.io.InputStream getInputStream()
          Returns an input stream, freeing the results
 java.io.InputStream openInputStream()
          Returns an input stream, without freeing the results
 
Methods inherited from class com.caucho.vfs.StreamSource
toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

InputStreamSource

protected InputStreamSource()
Constructor for subclasses.


InputStreamSource

public InputStreamSource(java.io.InputStream is)
Constructor for Hessian deserialization.

Method Detail

getInputStream

public java.io.InputStream getInputStream()
                                   throws java.io.IOException
Returns an input stream, freeing the results

Overrides:
getInputStream in class StreamSource
Throws:
java.io.IOException

openInputStream

public java.io.InputStream openInputStream()
                                    throws java.io.IOException
Returns an input stream, without freeing the results

Overrides:
openInputStream in class StreamSource
Throws:
java.io.IOException

close

public void close()
Close the stream.

Overrides:
close in class StreamSource