public static class JSONMessenger.JSONObjectByteableWrapper extends JSONMessenger.JSONObjectWrapper implements Byteable
| Constructor and Description |
|---|
JSONObjectByteableWrapper(java.lang.Object obj) |
| Modifier and Type | Method and Description |
|---|---|
byte[] |
toBytes()
The recommendation that the first four bytes contain the integer packet
type is for bring able to write efficient demultiplexers that will not
attempt to decode an incoming packet unless the type matches one of the
types they expect to receive.
|
getObj, toStringaccumulate, append, doubleToString, ellipsize, get, getBoolean, getDouble, getInt, getJSONArray, getJSONObject, getLong, getNames, getNames, getString, has, increment, isNull, keys, length, names, numberToString, opt, optBoolean, optBoolean, optDouble, optDouble, optInt, optInt, optJSONArray, optJSONObject, optLong, optLong, optString, optString, put, put, put, put, put, put, put, putOnce, putOpt, quote, remove, stringToValue, testValidity, toJSONArray, toReasonableString, toString, valueToReasonableString, valueToString, wrap, writepublic JSONObjectByteableWrapper(java.lang.Object obj)
obj - public byte[] toBytes()
ByteabletoBytes in interface Byteable