@Immutable public class StoredBinaryValue extends AbstractBinary
BinaryValue implementation that gets the content from the BinaryStore.EMPTY_CONTENT| Constructor and Description |
|---|
StoredBinaryValue(BinaryStore store,
BinaryKey key,
long size) |
| Modifier and Type | Method and Description |
|---|---|
String |
getMimeType() |
String |
getMimeType(String name) |
long |
getSize()
Get the length of this binary data.
|
InputStream |
getStream() |
compareTo, dispose, equals, getHash, getHexHash, getKey, getReadableSize, hashCode, keyFor, read, toStringpublic StoredBinaryValue(BinaryStore store, BinaryKey key, long size)
public long getSize()
BinaryValue
Note that this method, unlike the standard Binary.getSize() method, does not throw an exception.
public InputStream getStream() throws BinaryStoreException
BinaryStoreExceptionpublic String getMimeType() throws IOException, RepositoryException
IOExceptionRepositoryExceptionpublic String getMimeType(String name) throws IOException, RepositoryException
IOExceptionRepositoryExceptionCopyright © 2008-2014 JBoss, a division of Red Hat. All Rights Reserved.