Package org.nuxeo.ecm.core.blob.binary
Class AbstractBinaryManager
java.lang.Object
org.nuxeo.ecm.core.blob.binary.AbstractBinaryManager
- All Implemented Interfaces:
BinaryManager
- Direct Known Subclasses:
CachingBinaryManager,GridFSBinaryManager,LocalBinaryManager
@Deprecated(since="2023.9")
public abstract class AbstractBinaryManager
extends Object
implements BinaryManager
Deprecated.
Abstract BinaryManager implementation that provides a few utilities
- Author:
- Florent Guillaume
-
Field Summary
FieldsModifier and TypeFieldDescriptionDeprecated.static final intDeprecated.static final StringDeprecated.protected BinaryManagerRootDescriptorDeprecated.protected PatternDeprecated.Deprecated.protected BinaryGarbageCollectorDeprecated.static final intDeprecated.static final StringDeprecated.static final intDeprecated.since 11.1, unusedstatic final intDeprecated.Deprecated.static final StringDeprecated.since 11.1, unusedstatic final intDeprecated.since 11.1, unusedstatic final StringDeprecated.since 11.1, unusedstatic final intDeprecated.since 11.1, unusedFields inherited from interface org.nuxeo.ecm.core.blob.binary.BinaryManager
PROP_KEY, PROP_PATH -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidDeprecated.protected abstract BinarygetBinary(InputStream in) Deprecated.Creates a binary value from the given input stream.abstract BinaryDeprecated.Returns aBinarycorresponding to the given digest.Deprecated.Saves the given blob into aBinary.protected StringDeprecated.Gets the default message digest to use to hash binaries.protected BinaryManagerRootDescriptorgetDescriptor(File configFile) Deprecated.Gets existing descriptor or creates a default one.Deprecated.Returns the digest algorithm used to store and digest binaries.Deprecated.Returns the Binary Garbage Collector that can be used for this binary manager.voidinitialize(String blobProviderId, Map<String, String> properties) Deprecated.Initializes the binary manager.booleanisValidDigest(String digest) Deprecated.voidremoveBinaries(Collection<String> digests) Deprecated.Remove definitively a set of binariesprotected voidsetDescriptor(BinaryManagerRootDescriptor descriptor) Deprecated.protected StringstoreAndDigest(InputStream in, OutputStream out) Deprecated.static StringtoHexString(byte[] data) Deprecated.since 11.1, useHex.encodeHexString(byte[])directlyMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.nuxeo.ecm.core.blob.binary.BinaryManager
close
-
Field Details
-
MD5_DIGEST
Deprecated.- See Also:
-
SHA1_DIGEST
Deprecated.since 11.1, unused- See Also:
-
SHA256_DIGEST
Deprecated.since 11.1, unused- See Also:
-
MD5_DIGEST_LENGTH
Deprecated.since 11.1, unused- See Also:
-
SHA1_DIGEST_LENGTH
Deprecated.since 11.1, unused- See Also:
-
SHA256_DIGEST_LENGTH
Deprecated.since 11.1, unused- See Also:
-
DIGESTS_BY_LENGTH
Deprecated.- Since:
- 7.4
-
DEFAULT_DIGEST
Deprecated.- See Also:
-
DEFAULT_DEPTH
public static final int DEFAULT_DEPTHDeprecated.- See Also:
-
blobProviderId
Deprecated. -
properties
Deprecated. -
descriptor
Deprecated. -
garbageCollector
Deprecated. -
digestPattern
Deprecated. -
MIN_BUF_SIZE
public static final int MIN_BUF_SIZEDeprecated.- See Also:
-
MAX_BUF_SIZE
public static final int MAX_BUF_SIZEDeprecated.- See Also:
-
-
Constructor Details
-
AbstractBinaryManager
public AbstractBinaryManager()Deprecated.
-
-
Method Details
-
initialize
Deprecated.Description copied from interface:BinaryManagerInitializes the binary manager.- Specified by:
initializein interfaceBinaryManager- Parameters:
blobProviderId- the blob provider id for this binary managerproperties- initialization properties- Throws:
IOException
-
setDescriptor
Deprecated. -
getBinary
Deprecated.Creates a binary value from the given input stream.- Throws:
IOException
-
getBinary
Deprecated.Description copied from interface:BinaryManagerSaves the given blob into aBinary.Returns a
Binaryrepresenting the stream. TheBinaryincludes a digest that is a sufficient representation to persist it.If the blob is a temporary
FileBlob, then the temporary file may be reused as the final storage location after being moved.- Specified by:
getBinaryin interfaceBinaryManager- Parameters:
blob- the blob- Returns:
- the corresponding binary
- Throws:
IOException
-
getBinary
Deprecated.Description copied from interface:BinaryManagerReturns aBinarycorresponding to the given digest.A
nullis returned if the digest could not be found.- Specified by:
getBinaryin interfaceBinaryManager- Parameters:
digest- the digest, ornull- Returns:
- the corresponding binary
-
removeBinaries
Deprecated.Description copied from interface:BinaryManagerRemove definitively a set of binaries- Specified by:
removeBinariesin interfaceBinaryManager- Parameters:
digests- a set of digests, must not benull.
-
getDescriptor
Deprecated.Gets existing descriptor or creates a default one.- Throws:
IOException
-
storeAndDigest
Deprecated.- Throws:
IOException
-
toHexString
Deprecated.since 11.1, useHex.encodeHexString(byte[])directly -
computeDigestPattern
protected void computeDigestPattern()Deprecated. -
isValidDigest
Deprecated. -
getGarbageCollector
Deprecated.Description copied from interface:BinaryManagerReturns the Binary Garbage Collector that can be used for this binary manager.Several calls to this method will return the same GC, so that its status can be monitored using
BinaryGarbageCollector.isInProgress().- Specified by:
getGarbageCollectorin interfaceBinaryManager- Returns:
- the binary GC
-
getDigestAlgorithm
Deprecated.Description copied from interface:BinaryManagerReturns the digest algorithm used to store and digest binaries.- Specified by:
getDigestAlgorithmin interfaceBinaryManager
-
getDefaultDigestAlgorithm
Deprecated.Gets the default message digest to use to hash binaries.- Since:
- 6.0
-
BlobStoreBlobProviderimplementation instead