ch.javasoft.jbase.marshal
Class StringMarshaller
java.lang.Object
ch.javasoft.jbase.marshal.StringMarshaller
- All Implemented Interfaces:
- EntityMarshaller<String>
public class StringMarshaller
- extends Object
- implements EntityMarshaller<String>
A StringMarshaller is a marshaller for strings, not necessarily
encoded with UTF characters. You might also consider using
UtfStringMarshaller for UTF strings.
The 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 |
INSTANCE
public static final StringMarshaller INSTANCE
- The default instance
StringMarshaller
public StringMarshaller()
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