@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.
|
protected InputStream |
internalStream() |
compareTo, dispose, equals, getHash, getHexHash, getKey, getReadableSize, getStream, 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 String getMimeType() throws IOException, RepositoryException
IOExceptionRepositoryExceptionpublic String getMimeType(String name) throws IOException, RepositoryException
IOExceptionRepositoryExceptionprotected InputStream internalStream() throws RepositoryException
internalStream in class AbstractBinaryRepositoryExceptionCopyright © 2008-2014 JBoss, a division of Red Hat. All Rights Reserved.