|
Nuxeo ECM Projects 5.4.3-SNAPSHOT | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface BinaryManager
A binary manager stores binaries according to their digest.
Method Summary | |
---|---|
Binary |
getBinary(InputStream in)
Saves the given input stream into a Binary . |
Binary |
getBinary(String digest)
Returns a Binary corresponding to the given digest. |
BinaryGarbageCollector |
getGarbageCollector()
Returns the Binary Garbage Collector that can be used for this binary manager. |
void |
initialize(RepositoryDescriptor repositoryDescriptor)
Initializer. |
Method Detail |
---|
void initialize(RepositoryDescriptor repositoryDescriptor) throws IOException
IOException
Binary getBinary(InputStream in) throws IOException
Binary
.
Returns a Binary
representing the stream. The Binary
includes a digest that is a sufficient representation to persist it.
The stream is closed after use.
in
- the input stream
IOException
Binary getBinary(String digest)
Binary
corresponding to the given digest.
A null
is returned if the digest could not be found.
digest
- the digest, or null
BinaryGarbageCollector getGarbageCollector()
Several calls to this method will return the same GC, so that its status
can be monitored using BinaryGarbageCollector.isInProgress()
.
|
Nuxeo ECM Projects 5.4.3-SNAPSHOT | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |