Package org.nuxeo.ecm.core.blob.binary
Class BinaryBlob
java.lang.Object
org.nuxeo.ecm.core.api.impl.blob.AbstractBlob
org.nuxeo.ecm.core.blob.binary.BinaryBlob
- All Implemented Interfaces:
Serializable,Blob,ManagedBlob
@Deprecated(since="2023.9")
public class BinaryBlob
extends AbstractBlob
implements ManagedBlob, Serializable
Deprecated.
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final BinaryDeprecated.protected final StringDeprecated.The key, which is the binary's digest but may in addition be prefixed by a blob provider id.protected final longDeprecated.Fields inherited from class org.nuxeo.ecm.core.api.impl.blob.AbstractBlob
digest, digestAlgorithm, encoding, filename, mimeType, TEXT_PLAIN, UTF_8 -
Constructor Summary
ConstructorsConstructorDescriptionBinaryBlob(Binary binary, String key, String filename, String mimeType, String encoding, String digest, long length) Deprecated.since 11.5, use signature with digestAlgorithm insteadBinaryBlob(Binary binary, String key, String filename, String mimeType, String encoding, String digestAlgorithm, String digest, long length) Deprecated. -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanequalsStream(Blob blob) Deprecated.Deprecated.Gets theBinaryattached to this blob.getFile()Deprecated.If this blob is backed by an actual file, returns it.getKey()Deprecated.Gets the stored representation of this blob.longDeprecated.Gets the data length in bytes if known.Deprecated.Gets the id of theBlobProvidermanaging this blob.Deprecated.Gets anInputStreamfor the data of this blob.Methods inherited from class org.nuxeo.ecm.core.api.impl.blob.AbstractBlob
equals, getByteArray, getCloseableFile, getCloseableFile, getDigest, getDigestAlgorithm, getEncoding, getFilename, getMimeType, getString, hashCode, setDigest, setDigestAlgorithm, setEncoding, setFilename, setMimeType, transferTo, transferToMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.nuxeo.ecm.core.api.Blob
getByteArray, getCloseableFile, getCloseableFile, getDigest, getDigestAlgorithm, getEncoding, getFilename, getMimeType, getString, setDigest, setDigestAlgorithm, setEncoding, setFilename, setMimeType, transferTo, transferTo
-
Field Details
-
binary
Deprecated. -
key
Deprecated.The key, which is the binary's digest but may in addition be prefixed by a blob provider id. -
length
protected final long lengthDeprecated.
-
-
Constructor Details
-
BinaryBlob
public BinaryBlob(Binary binary, String key, String filename, String mimeType, String encoding, String digestAlgorithm, String digest, long length) Deprecated. -
BinaryBlob
@Deprecated public BinaryBlob(Binary binary, String key, String filename, String mimeType, String encoding, String digest, long length) Deprecated.since 11.5, use signature with digestAlgorithm instead
-
-
Method Details
-
getLength
public long getLength()Deprecated.Description copied from interface:BlobGets the data length in bytes if known.- Specified by:
getLengthin interfaceBlob- Overrides:
getLengthin classAbstractBlob- Returns:
- the data length or -1 if not known
-
getStream
Deprecated.Description copied from interface:BlobGets anInputStreamfor the data of this blob.The contract of
Blobis that this method can be called several times and will correctly return a newInputStreameach time. In other words, several reads of theBlobcan be done.Like all
InputStream, the result must be closed when done with it to avoid resource leaks.- Specified by:
getStreamin interfaceBlob- Specified by:
getStreamin interfaceManagedBlob- Returns:
- the stream
- Throws:
IOException
-
getBinary
Deprecated.Gets theBinaryattached to this blob.- Returns:
- the binary
- Since:
- 5.9.4
-
getKey
Deprecated.Description copied from interface:ManagedBlobGets the stored representation of this blob.- Specified by:
getKeyin interfaceManagedBlob- Returns:
- the stored representation
-
getProviderId
Deprecated.Description copied from interface:ManagedBlobGets the id of theBlobProvidermanaging this blob.- Specified by:
getProviderIdin interfaceManagedBlob- Returns:
- the blob provider id
-
getFile
Deprecated.Description copied from interface:BlobIf this blob is backed by an actual file, returns it.The returned file may be short-lived (temporary), so should be used immediately.
- Specified by:
getFilein interfaceBlob- Specified by:
getFilein interfaceManagedBlob- Overrides:
getFilein classAbstractBlob- Returns:
- a file, or
nullif the blob is not backed by a file
-
equalsStream
Deprecated.- Overrides:
equalsStreamin classAbstractBlob
-
ManagedBlobinstead