-
- All Implemented Interfaces:
-
com.batch.android.msgpack.value.Value
public interface RawValue implements Value
Base interface of StringValue and BinaryValue interfaces.
MessagePack's Raw type can represent a byte array at most 264-1 bytes.
-
-
Method Summary
Modifier and Type Method Description abstract Array<byte>asByteArray()Returns the value as {@code byte[]}.abstract ByteBufferasByteBuffer()Returns the value as {@code ByteBuffer}.abstract StringasString()Returns the value as {@code String}.abstract StringtoString()Returns the value as {@code String}.-
Methods inherited from class com.batch.android.msgpack.value.Value
asArrayValue, asBinaryValue, asBooleanValue, asExtensionValue, asFloatValue, asIntegerValue, asMapValue, asNilValue, asNumberValue, asRawValue, asStringValue, equals, getValueType, immutableValue, isArrayValue, isBinaryValue, isBooleanValue, isExtensionValue, isFloatValue, isIntegerValue, isMapValue, isNilValue, isNumberValue, isRawValue, isStringValue, toJson, writeTo -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Method Detail
-
asByteArray
abstract Array<byte> asByteArray()
Returns the value as
{@code byte[]}.This method copies the byte array.
-
asByteBuffer
abstract ByteBuffer asByteBuffer()
Returns the value as
{@code ByteBuffer}.Returned ByteBuffer is read-only. See also asReadOnlyBuffer.This method doesn't copy the byte array as much as possible.
-
asString
abstract String asString()
Returns the value as
{@code String}.This method throws an exception if the value includes invalid UTF-8 byte sequence.
-
-
-
-