|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.codehaus.jackson.JsonNode
org.codehaus.jackson.node.BaseJsonNode
org.codehaus.jackson.node.ValueNode
org.codehaus.jackson.node.BinaryNode
public final class BinaryNode
Value node that contains Base64 encoded binary value, output and stored as Json String value.
| Constructor Summary | |
|---|---|
BinaryNode(byte[] data)
|
|
BinaryNode(byte[] data,
int offset,
int length)
|
|
| Method Summary | |
|---|---|
protected static java.lang.String |
_asBase64(boolean addQuotes,
byte[] input)
|
boolean |
equals(java.lang.Object o)
Note: marked as abstract to ensure all implementation classes define it properly. |
byte[] |
getBinaryValue()
Note: caller is not to modify returned array in any way, since it is not a copy but reference to the underlying byte array. |
java.lang.String |
getValueAsText()
Hmmh. |
int |
hashCode()
|
boolean |
isBinary()
Method that can be used to check if this node represents binary data (Base64 encoded). |
void |
serialize(JsonGenerator jg,
SerializerProvider provider)
|
java.lang.String |
toString()
Different from other values, since contents need to be surrounded by (double) quotes. |
static BinaryNode |
valueOf(byte[] data)
|
static BinaryNode |
valueOf(byte[] data,
int offset,
int length)
|
| Methods inherited from class org.codehaus.jackson.node.ValueNode |
|---|
isValueNode, path, path |
| Methods inherited from class org.codehaus.jackson.node.BaseJsonNode |
|---|
writeTo |
| Methods inherited from class org.codehaus.jackson.JsonNode |
|---|
get, get, getBigIntegerValue, getBooleanValue, getDecimalValue, getDoubleValue, getElements, getElementValue, getFieldNames, getFieldValue, getIntValue, getLongValue, getNumberValue, getPath, getPath, getTextValue, isArray, isBigDecimal, isBigInteger, isBoolean, isContainerNode, isDouble, isFloatingPointNumber, isInt, isIntegralNumber, isLong, isMissingNode, isNull, isNumber, isObject, isPojo, isTextual, iterator, size |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public BinaryNode(byte[] data)
public BinaryNode(byte[] data,
int offset,
int length)
| Method Detail |
|---|
public static BinaryNode valueOf(byte[] data)
public static BinaryNode valueOf(byte[] data,
int offset,
int length)
public boolean isBinary()
JsonNodeJsonNode.isTextual() will
return false if this method returns true.
isBinary in class JsonNodepublic byte[] getBinaryValue()
Note: caller is not to modify returned array in any way, since it is not a copy but reference to the underlying byte array.
getBinaryValue in class JsonNodepublic java.lang.String getValueAsText()
getValueAsText in class JsonNode
public final void serialize(JsonGenerator jg,
SerializerProvider provider)
throws java.io.IOException,
JsonProcessingException
serialize in interface JsonSerializableserialize in class BaseJsonNodejava.io.IOException
JsonProcessingExceptionpublic boolean equals(java.lang.Object o)
JsonNodeNote: marked as abstract to ensure all implementation classes define it properly.
equals in class JsonNodepublic int hashCode()
hashCode in class java.lang.Objectpublic java.lang.String toString()
toString in class ValueNode
protected static java.lang.String _asBase64(boolean addQuotes,
byte[] input)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||