com.caucho.vfs
Class StreamSource

java.lang.Object
  extended by com.caucho.vfs.StreamSource
Direct Known Subclasses:
DataStreamSource, GitJarStreamSource, GitStreamSource, InputStreamSource

public class StreamSource
extends java.lang.Object

Stream source for Hessian serialization of large data


Constructor Summary
protected StreamSource()
          Constructor for subclasses.
  StreamSource(StreamSource indirectSource)
          Constructor allowing for dynamic opening.
  StreamSource(TempOutputStream os)
          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
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

StreamSource

protected StreamSource()
Constructor for subclasses.


StreamSource

public StreamSource(TempOutputStream os)
Constructor for Hessian deserialization.


StreamSource

public StreamSource(StreamSource indirectSource)
Constructor allowing for dynamic opening.

Method Detail

getInputStream

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

Throws:
java.io.IOException

openInputStream

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

Throws:
java.io.IOException

close

public void close()
Close the stream.


toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object