@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, toString
public 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
BinaryStoreException
public String getMimeType() throws IOException, RepositoryException
IOException
RepositoryException
public String getMimeType(String name) throws IOException, RepositoryException
IOException
RepositoryException
Copyright © 2008-2014 JBoss, a division of Red Hat. All Rights Reserved.