@Immutable public final class EmptyBinaryValue extends AbstractBinary
BinaryValue value.| Modifier and Type | Field and Description |
|---|---|
static BinaryValue |
INSTANCE |
EMPTY_CONTENT| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(BinaryValue other) |
String |
getMimeType() |
String |
getMimeType(String name) |
long |
getSize()
Get the length of this binary data.
|
protected InputStream |
internalStream() |
dispose, equals, getHash, getHexHash, getKey, getReadableSize, getStream, hashCode, keyFor, read, toStringpublic static final BinaryValue INSTANCE
public int compareTo(BinaryValue other)
compareTo in interface Comparable<BinaryValue>compareTo in class AbstractBinarypublic long getSize()
BinaryValue
Note that this method, unlike the standard Binary.getSize() method, does not throw an exception.
public String getMimeType()
protected InputStream internalStream()
internalStream in class AbstractBinaryCopyright © 2008-2014 JBoss, a division of Red Hat. All Rights Reserved.