com.croftsoft.core.io
Class SerializableCoder
java.lang.Object
com.croftsoft.core.io.SerializableCoder
- All Implemented Interfaces:
- Encoder, Parser
public final class SerializableCoder
- extends Object
- implements Encoder, Parser
An Encoder and Parser implementation that uses object serialization.
- Since:
- 2003-05-13
- Version:
- 2003-05-28
- Author:
- David Wallace Croft
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
INSTANCE
public static final SerializableCoder INSTANCE
encode
public byte[] encode(Object object)
throws IOException
- Specified by:
encode
in interface Encoder
- Throws:
IOException
parse
public Object parse(InputStream inputStream,
int contentLength)
throws IOException
- Specified by:
parse
in interface Parser
contentLength
- -1 if unknown.
- Throws:
IOException
CroftSoft Core Javadoc (2008-09-28 20:58:02)