@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, 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 String getMimeType()
protected InputStream internalStream()
internalStream
in class AbstractBinary
Copyright © 2008–2016 JBoss, a division of Red Hat. All rights reserved.