public abstract class LazyBinary extends Binary
The methods fetchFile(java.io.File)
and fetchLength()
must be implemented
by the concrete class.
Constructor and Description |
---|
LazyBinary(String digest,
FileCache fileCache)
A lazy binary for the given digest.
|
Modifier and Type | Method and Description |
---|---|
long |
getLength()
Gets the length of the binary.
|
InputStream |
getStream()
Gets an input stream for the binary.
|
StreamSource |
getStreamSource() |
public InputStream getStream() throws IOException
Binary
getStream
in class Binary
IOException
public StreamSource getStreamSource()
getStreamSource
in class Binary
Copyright © 2012 Nuxeo SA. All Rights Reserved.