ch.javasoft.jbase.marshal
Class UtfStringMarshaller

java.lang.Object
  extended by ch.javasoft.jbase.marshal.UtfStringMarshaller
All Implemented Interfaces:
EntityMarshaller<String>

public class UtfStringMarshaller
extends Object
implements EntityMarshaller<String>

A UtfStringMarshaller is a marshaller for strings coded UTF conformly. You might also consider using StringMarshaller for non-UTF strings.

The UTF string marshaller can be used with a VariableWidthTable.


Constructor Summary
UtfStringMarshaller()
           
 
Method Summary
 String readFrom(DataInput in)
          Reads from the given data input and creates an entity instance from the read data
 void writeTo(String entity, DataOutput out)
          Writes the given entity to the given data output
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UtfStringMarshaller

public UtfStringMarshaller()
Method Detail

writeTo

public void writeTo(String entity,
                    DataOutput out)
             throws IOException
Description copied from interface: EntityMarshaller
Writes the given entity to the given data output

Specified by:
writeTo in interface EntityMarshaller<String>
Throws:
IOException

readFrom

public String readFrom(DataInput in)
                throws IOException
Description copied from interface: EntityMarshaller
Reads from the given data input and creates an entity instance from the read data

Specified by:
readFrom in interface EntityMarshaller<String>
Throws:
IOException