Package org.nuxeo.ecm.core.blob.binary
Class LazyBinary
- java.lang.Object
-
- org.nuxeo.ecm.core.blob.binary.Binary
-
- org.nuxeo.ecm.core.blob.binary.LazyBinary
-
- All Implemented Interfaces:
Serializable
public class LazyBinary extends Binary
Lazy Binary that fetches its remote stream on first access.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected CachingBinaryManager
cbm
-
Fields inherited from class org.nuxeo.ecm.core.blob.binary.Binary
blobProviderId, digest, file
-
-
Constructor Summary
Constructors Constructor Description LazyBinary(String digest, String repoName, CachingBinaryManager cbm)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected CachingBinaryManager
getCachingBinaryManager()
File
getFile()
InputStream
getStream()
Gets an input stream for the binary.-
Methods inherited from class org.nuxeo.ecm.core.blob.binary.Binary
getBlobProviderId, getDigest, getDigestAlgorithm, recomputeFile, toString
-
-
-
-
Field Detail
-
cbm
protected transient CachingBinaryManager cbm
-
-
Constructor Detail
-
LazyBinary
public LazyBinary(String digest, String repoName, CachingBinaryManager cbm)
-
-
Method Detail
-
getCachingBinaryManager
protected CachingBinaryManager getCachingBinaryManager()
-
getStream
public InputStream getStream() throws IOException
Description copied from class:Binary
Gets an input stream for the binary.- Overrides:
getStream
in classBinary
- Returns:
- the input stream
- Throws:
IOException
-
-