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 GridFSBinaryManagerbm-
Fields inherited from class org.nuxeo.ecm.core.blob.binary.Binary
blobProviderId, digest, file
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedGridFSBinary(String digest, String blobProviderId, GridFSBinaryManager bm)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected GridFSBinaryManagergetBinaryManager()InputStreamgetStream()Gets an input stream for the binary.protected FilerecomputeFile()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:BinaryGets an input stream for the binary.
-
recomputeFile
protected File recomputeFile()
Description copied from class:BinaryRecomputes the file attribute by getting it from a new Binary for the same digest.- Overrides:
recomputeFilein classBinary
-
-