@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() |
protected String |
mimeType() |
compareTo, dispose, equals, getHash, getHexHash, getKey, getReadableSize, getStream, 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 String getMimeType() throws IOException, RepositoryException
IOException
RepositoryException
public String getMimeType(String name) throws IOException, RepositoryException
IOException
RepositoryException
protected InputStream internalStream() throws RepositoryException
internalStream
in class AbstractBinary
RepositoryException
protected String mimeType()
Copyright © 2008–2016 JBoss, a division of Red Hat. All rights reserved.