public class BinaryValue extends BaseValue
BinaryValue
provides an implementation
of the Value
interface representing a binary value.Modifier and Type | Field and Description |
---|---|
static int |
TYPE |
Constructor and Description |
---|
BinaryValue(Binary bin)
Constructs a
BinaryValue object based on a Binary . |
BinaryValue(String text)
Constructs a
BinaryValue object based on a string. |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj)
Indicates whether some other object is "equal to" this one.
|
Binary |
getBinary() |
String |
getInternalString()
Gets the string representation of this binary value.
|
InputStream |
getStream() |
int |
hashCode()
Returns zero to satisfy the Object equals/hashCode contract.
|
getBoolean, getDate, getDecimal, getDouble, getLong, getString, getType
public BinaryValue(String text)
BinaryValue
object based on a string.text
- the string this BinaryValue
should representpublic BinaryValue(Binary bin)
BinaryValue
object based on a Binary
.bin
- the bytes this BinaryValue
should representpublic boolean equals(Object obj)
The result is true
if and only if the argument is not
null
and is a BinaryValue
object that
represents the same value as this object.
public int hashCode()
hashCode
in class Object
Object.hashCode()
public String getInternalString() throws ValueFormatException, RepositoryException
javax.jcr.ValueFormatException
javax.jcr.RepositoryException
- if another error occursValueFormatException
RepositoryException
public InputStream getStream() throws IllegalStateException, RepositoryException
getStream
in class BaseValue
IllegalStateException
RepositoryException
public Binary getBinary() throws ValueFormatException, IllegalStateException, RepositoryException
getBinary
in class BaseValue
ValueFormatException
IllegalStateException
RepositoryException
"Copyright © 2006 - 2015 Adobe Systems Incorporated. All Rights Reserved"