ch.javasoft.jbase.marshal
Class UtfStringMarshaller
java.lang.Object
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.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
UtfStringMarshaller
public UtfStringMarshaller()
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