public class StringSerializer extends SimpleTypeSerializer<String>
Constructor and Description |
---|
StringSerializer() |
Modifier and Type | Method and Description |
---|---|
protected String |
readValue(Buffer buffer,
GraphBinaryReader context)
Reads a non-nullable value according to the type format.
|
protected void |
writeValue(String value,
Buffer buffer,
GraphBinaryWriter context)
Writes a non-nullable value into a buffer using the provided allocator.
|
getDataType, read, readValue, write, writeValue
protected String readValue(Buffer buffer, GraphBinaryReader context)
SimpleTypeSerializer
readValue
in class SimpleTypeSerializer<String>
buffer
- A buffer which reader index has been set to the beginning of the {value}.context
- The binary reader.protected void writeValue(String value, Buffer buffer, GraphBinaryWriter context)
SimpleTypeSerializer
writeValue
in class SimpleTypeSerializer<String>
value
- A non-nullable value.buffer
- The buffer allocator to use.context
- The binary writer.Copyright © 2013–2023 Apache Software Foundation. All rights reserved.