|
Nuxeo ECM Projects 5.4.3-SNAPSHOT | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.nuxeo.ecm.core.storage.sql.Binary org.nuxeo.ecm.core.storage.sql.LazyBinary
public abstract class LazyBinary
Base class for a lazy Binary that fetches its remote stream on first access.
The methods fetchFile(java.io.File)
and fetchLength()
must be implemented
by the concrete class.
Constructor Summary | |
---|---|
LazyBinary(String digest,
FileCache fileCache)
A lazy binary for the given digest. |
Method Summary | |
---|---|
long |
getLength()
Gets the length of the binary. |
InputStream |
getStream()
Gets an input stream for the binary. |
Methods inherited from class org.nuxeo.ecm.core.storage.sql.Binary |
---|
getDigest, getStreamSource, toString |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public LazyBinary(String digest, FileCache fileCache)
digest
- the digest for the binaryfileCache
- a file cache used by the length-caching methodsMethod Detail |
---|
public InputStream getStream() throws IOException
Binary
getStream
in class Binary
IOException
public long getLength()
Binary
getLength
in class Binary
|
Nuxeo ECM Projects 5.4.3-SNAPSHOT | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |