com.caucho.server.distcache
Class DataStreamSource
java.lang.Object
com.caucho.vfs.StreamSource
com.caucho.server.distcache.DataStreamSource
public class DataStreamSource
- extends StreamSource
Stream source for Hessian serialization of large data
Constructor Summary |
DataStreamSource(long valueDataId,
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 java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
DataStreamSource
public DataStreamSource(long valueDataId,
DataStore dataBacking)
- Create a new GitStreamSource for the named file
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