org.msgpack.value.impl
Class RawValueImpl
java.lang.Object
org.msgpack.value.impl.AbstractValueRef
org.msgpack.value.impl.AbstractValue
org.msgpack.value.impl.RawValueImpl
- All Implemented Interfaces:
- RawValue, Value, ValueRef
- Direct Known Subclasses:
- BinaryValueImpl, ExtendedValueImpl, RawStringValueImpl
public abstract class RawValueImpl
- extends AbstractValue
- implements RawValue
Created on 5/30/14.
Field Summary |
protected java.nio.ByteBuffer |
byteBuffer
|
Constructor Summary |
RawValueImpl(java.nio.ByteBuffer byteBuffer)
|
Methods inherited from class org.msgpack.value.impl.AbstractValueRef |
as, as, asArrayValue, asBinary, asBoolean, asExtended, asFloat, asInteger, asMapValue, asNil, asNumber, asRaw, asString, getArrayCursor, getMapCursor, isArray, isBinary, isBoolean, isExtended, isFloat, isInteger, isMap, isNil, isNumber, isRaw, isString |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface org.msgpack.value.ValueRef |
accept, asBinary, asBoolean, asExtended, asFloat, asInteger, asNil, asNumber, asRaw, asString, getArrayCursor, getMapCursor, getValueType, isArray, isBinary, isBoolean, isExtended, isFloat, isInteger, isMap, isNil, isNumber, isRaw, isRef, isString |
byteBuffer
protected final java.nio.ByteBuffer byteBuffer
RawValueImpl
public RawValueImpl(java.nio.ByteBuffer byteBuffer)
toByteArray
public byte[] toByteArray()
- Specified by:
toByteArray
in interface RawValue
toValue
public RawValue toValue()
- Description copied from interface:
ValueRef
- Create an immutable value from this reference
- Specified by:
toValue
in interface RawValue
- Specified by:
toValue
in interface ValueRef
- Returns:
toByteBuffer
public java.nio.ByteBuffer toByteBuffer()
- Specified by:
toByteBuffer
in interface RawValue
toMessageBuffer
public MessageBuffer toMessageBuffer()
- Specified by:
toMessageBuffer
in interface RawValue
toString
public java.lang.String toString()
- Specified by:
toString
in interface RawValue
- Overrides:
toString
in class java.lang.Object
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in class java.lang.Object
hashCode
public int hashCode()
- Overrides:
hashCode
in class java.lang.Object
writeTo
public void writeTo(MessagePacker packer)
throws java.io.IOException
- Specified by:
writeTo
in interface ValueRef
- Throws:
java.io.IOException