com.caucho.distcache.cluster
Class DataStreamSource

java.lang.Object
  extended by com.caucho.vfs.StreamSource
      extended by com.caucho.distcache.cluster.DataStreamSource

public class DataStreamSource
extends StreamSource

Stream source for Hessian serialization of large data


Constructor Summary
DataStreamSource(HashKey valueHash, DataStore dataBacking)
          Create a new GitStreamSource for the named file
 
Method Summary
 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 com.caucho.vfs.StreamSource
close
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DataStreamSource

public DataStreamSource(HashKey valueHash,
                        DataStore dataBacking)
Create a new GitStreamSource for the named file

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

toString

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