_builtinFlag, _class, _classes, _compiledClasses, _defaultValue, ADDRESS_TYPE, ARRAY_SUFFIX, CHARSET, CLASS_TYPE, EMPTY_STRING, FIELD_MASK_SIZE, INDENT, INDENT1, KEY_TYPE, MAX_ARRAY_SIZE, MAX_FIELDS, MAX_FILE_NAME_LENGTH, MAX_STRING_LENGTH, STRING_TYPE
Modifier and Type | Method and Description |
---|---|
protected void |
createDeserializer(java.lang.String fieldName,
java.lang.String indent,
java.util.Formatter output)
Generates the code to de-serialize the URI instance
from a
ByteBuffer . |
protected void |
createSerializer(java.lang.String fieldName,
java.lang.String indent,
java.util.Formatter output)
Adds the Java code used to serialize the URI instance to
a
ByteBuffer . |
java.lang.Object |
deserialize(java.nio.ByteBuffer buffer)
Returns the deserialized object in
buffer . |
void |
serialize(java.lang.Object o,
java.nio.ByteBuffer buffer)
Serializes this URI instance to the given buffer.
|
compareTo, dataClass, dataClassName, defaultValue, equals, fields, findType, hashCode, isArray, isBuiltin, isEnum, isInstance, isPrimitive, replyClasses, toString
public void serialize(java.lang.Object o, java.nio.ByteBuffer buffer) throws java.nio.BufferOverflowException
serialize
in class DataType
o
- a URI instance.buffer
- serialize to this buffer.java.nio.BufferOverflowException
- if buffer
does not have available space to store
the serialized URI.deserialize(ByteBuffer)
public java.lang.Object deserialize(java.nio.ByteBuffer buffer) throws java.nio.BufferUnderflowException
DataType
buffer
.deserialize
in class DataType
buffer
- Deserialize the object from this
ByteBuffer
.java.nio.BufferUnderflowException
- if buffer
contains fewer bytes than needed to
completely deserialize the object.protected void createSerializer(java.lang.String fieldName, java.lang.String indent, java.util.Formatter output)
ByteBuffer
.createSerializer
in class DataType
fieldName
- the message field name.indent
- indent the code by this amount.output
- write the code to this formatter.protected void createDeserializer(java.lang.String fieldName, java.lang.String indent, java.util.Formatter output)
ByteBuffer
.createDeserializer
in class DataType
fieldName
- store the de-serialized field in this
name.indent
- indent the code by this amount.output
- append the code to this formatter.