Class GridFSBinaryManager.GridFSBinary
- java.lang.Object
-
- org.nuxeo.ecm.core.blob.binary.Binary
-
- org.nuxeo.ecm.core.storage.mongodb.GridFSBinaryManager.GridFSBinary
-
- All Implemented Interfaces:
Serializable
- Enclosing class:
- GridFSBinaryManager
protected static class GridFSBinaryManager.GridFSBinary extends Binary
A binary backed by GridFS.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected GridFSBinaryManager
bm
-
Fields inherited from class org.nuxeo.ecm.core.blob.binary.Binary
blobProviderId, digest, file
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
GridFSBinary(String digest, String blobProviderId, GridFSBinaryManager bm)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected GridFSBinaryManager
getBinaryManager()
InputStream
getStream()
Gets an input stream for the binary.protected File
recomputeFile()
Recomputes the file attribute by getting it from a new Binary for the same digest.-
Methods inherited from class org.nuxeo.ecm.core.blob.binary.Binary
getBlobProviderId, getDigest, getDigestAlgorithm, getFile, toString
-
-
-
-
Field Detail
-
bm
protected transient GridFSBinaryManager bm
-
-
Constructor Detail
-
GridFSBinary
protected GridFSBinary(String digest, String blobProviderId, GridFSBinaryManager bm)
-
-
Method Detail
-
getBinaryManager
protected GridFSBinaryManager getBinaryManager()
-
getStream
public InputStream getStream()
Description copied from class:Binary
Gets an input stream for the binary.
-
recomputeFile
protected File recomputeFile()
Description copied from class:Binary
Recomputes the file attribute by getting it from a new Binary for the same digest.- Overrides:
recomputeFile
in classBinary
-
-