com.croftsoft.core.io
Class SerializableCoder

java.lang.Object
  extended by 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

Field Summary
static SerializableCoder INSTANCE
           
 
Method Summary
 byte[] encode(Object object)
           
 Object parse(InputStream inputStream, int contentLength)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

INSTANCE

public static final SerializableCoder INSTANCE
Method Detail

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 Javadoc

CroftSoft Core Javadoc (2008-09-28 20:58:02)