@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.
|
InputStream |
getStream() |
dispose, equals, getHash, getHexHash, getKey, getReadableSize, hashCode, keyFor, read, toString
public static final BinaryValue INSTANCE
public int compareTo(BinaryValue other)
compareTo
in interface Comparable<BinaryValue>
compareTo
in class AbstractBinary
public long getSize()
BinaryValue
Note that this method, unlike the standard Binary.getSize()
method, does not throw an exception.
public InputStream getStream()
public String getMimeType()
Copyright © 2008-2014 JBoss, a division of Red Hat. All Rights Reserved.