org.caleigo.toolkit.tunnel
Class SerializeCodec

java.lang.Object
  extended byorg.caleigo.toolkit.tunnel.SerializeCodec
All Implemented Interfaces:
ITunnelCodec

public class SerializeCodec
extends java.lang.Object
implements ITunnelCodec

Version:
1.00
Author:
Mattias Hagstrand

Constructor Summary
SerializeCodec()
           
 
Method Summary
 java.lang.Object decode(java.io.InputStream in)
          Reads bytes from the InputStream and transforms them into a message that is returned.
 void encode(java.lang.Object message, java.io.OutputStream out)
          Transforms a message into bytes and writes them to the OutputStream.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SerializeCodec

public SerializeCodec()
Method Detail

encode

public void encode(java.lang.Object message,
                   java.io.OutputStream out)
            throws java.io.IOException
Transforms a message into bytes and writes them to the OutputStream.

Specified by:
encode in interface ITunnelCodec
Throws:
java.io.IOException

decode

public java.lang.Object decode(java.io.InputStream in)
                        throws java.io.IOException
Reads bytes from the InputStream and transforms them into a message that is returned.

Specified by:
decode in interface ITunnelCodec
Throws:
java.io.IOException


Copyright © 2005 Caleigo. All Rights Reserved.