public class CookJsonBinary extends Object implements JsonString
JsonValue.ValueType| Constructor and Description |
|---|
CookJsonBinary(byte[] bytes) |
| Modifier and Type | Method and Description |
|---|---|
int |
getBinaryFormat()
Gets the binary format for storing byte[].
|
byte[] |
getBytes() |
CharSequence |
getChars() |
String |
getString() |
JsonValue.ValueType |
getValueType() |
int |
hashCode()
Gets the hash code of the byte array computed using
Arrays.hashCode(byte[]) |
void |
setBinaryFormat(int binaryFormat)
Sets the binary format for storing byte[].
|
String |
toString()
Gets the quoted string representation of the byte array.
|
clone, equals, finalize, getClass, notify, notifyAll, wait, wait, waitequalspublic JsonValue.ValueType getValueType()
getValueType in interface JsonValuepublic String getString()
getString in interface JsonStringpublic CharSequence getChars()
getChars in interface JsonStringpublic byte[] getBytes()
public int getBinaryFormat()
It is one of BinaryFormat.BINARY_FORMAT_BASE64 and
BinaryFormat.BINARY_FORMAT_HEX.
public void setBinaryFormat(int binaryFormat)
It is one of BinaryFormat.BINARY_FORMAT_BASE64 and
BinaryFormat.BINARY_FORMAT_HEX.
binaryFormat - the binary formatpublic int hashCode()
Arrays.hashCode(byte[])hashCode in interface JsonStringhashCode in class ObjectArrays.hashCode(byte[])Copyright © 2016. All rights reserved.