public class StringSerializer extends java.lang.Object implements Serializer<java.lang.String>
Serializer for String type. Simply writes the string bytes in modified UTF-8
 to a byte buffer.| Constructor and Description | 
|---|
| StringSerializer()No arg constructor | 
| StringSerializer(java.lang.ClassLoader classLoader)Constructor to enable this serializer as a transient one. | 
| Modifier and Type | Method and Description | 
|---|---|
| boolean | equals(java.lang.String object,
      java.nio.ByteBuffer binary)Checks if the given instance and serial form  representthe same instance. | 
| java.lang.String | read(java.nio.ByteBuffer binary)Reconstructs an instance from the given serial form. | 
| java.nio.ByteBuffer | serialize(java.lang.String object)Transforms the given instance into its serial form. | 
public StringSerializer()
public StringSerializer(java.lang.ClassLoader classLoader)
 Parameter is ignored as String is a base java type.
classLoader - the classloader to useSerializerpublic java.nio.ByteBuffer serialize(java.lang.String object)
serialize in interface Serializer<java.lang.String>object - the instance to serializepublic java.lang.String read(java.nio.ByteBuffer binary)
                      throws java.lang.ClassNotFoundException
read in interface Serializer<java.lang.String>binary - the binary representation of the serial formjava.lang.ClassNotFoundException - if the type to de-serialize to cannot be foundpublic boolean equals(java.lang.String object,
                      java.nio.ByteBuffer binary)
               throws java.lang.ClassNotFoundException
represent the same instance.equals in interface Serializer<java.lang.String>object - the instance to checkbinary - the serial form to checktrue if both parameters represent equal instances, false otherwisejava.lang.ClassNotFoundException - if the type to de-serialize to cannot be found