asgaard.utils.encode
Class ObjectEncoder

java.lang.Object
  |
  +--asgaard.utils.encode.ObjectEncoder

public class ObjectEncoder
extends java.lang.Object

Is a Encoder, using HexEncOutputStream to encode an object by serialising and streaming it.

To prevent creating a new ObjectOutputStream (we need the full header) ObjectOutputStream has to be overwritten to add a reset - method.

See Also:
HexEncOutputStream

Constructor Summary
ObjectEncoder()
          Creates a new Decoder.
 
Method Summary
 java.lang.String getEncoded()
          Get the encoded String.
 void setObject(java.lang.Object o)
          Set the Object.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ObjectEncoder

public ObjectEncoder()
Creates a new Decoder.
Method Detail

setObject

public void setObject(java.lang.Object o)
               throws java.io.IOException
Set the Object.

getEncoded

public java.lang.String getEncoded()
                            throws java.io.IOException
Get the encoded String.