@ThreadSafe public interface BinaryFactory extends ValueFactory<BinaryValue>
BinaryValue
instances. This interface extends the ValueFactory
generic interface and
adds specific methods for creating binary objects.DEFAULT_DECODER, DEFAULT_ENCODER
Modifier and Type | Method and Description |
---|---|
BinaryValue |
find(BinaryKey secureHash,
long size)
Find an existing binary value given the supplied binary key.
|
BinaryFactory |
with(BinaryStore binaryStore)
Return a potentially new copy of this factory that uses the supplied
BinaryStore object. |
BinaryFactory |
with(ValueFactories valueFactories)
Return a potentially new copy of this factory that uses the supplied ValueFactories object.
|
create, create, create, create, create, create, create, create, create, create, create, create, create, create, create, create, create, create, create, create, create, create, create, create, create, create, create, create, create, create, create, create, create, create, create, create, create, create, create, create, create, create, create, create, create, createEmptyArray, getPropertyType
BinaryFactory with(ValueFactories valueFactories)
ValueFactory
with
in interface ValueFactory<BinaryValue>
valueFactories
- the value factories object; may not be nullBinaryFactory with(BinaryStore binaryStore)
BinaryStore
object.binaryStore
- the binary store; may not be nullBinaryValue find(BinaryKey secureHash, long size) throws BinaryStoreException
secureHash
- the secure hash of the binary content, which was probably obtained
from
a previously-held BinaryValue
object; a null or empty value is allowed, but will always result in returning
nullsize
- the size of the binary contentBinaryStoreException
- if there is a problem accessing the binary storeCopyright © 2008–2016 JBoss, a division of Red Hat. All rights reserved.