at.spardat.xma.serializer
Class Util

java.lang.Object
  extended byat.spardat.xma.serializer.Util

public class Util
extends java.lang.Object

Some serialization util methods


Constructor Summary
Util()
           
 
Method Summary
static java.lang.Object deserialize(byte[] buf)
          inverse operation to serialize
static byte[] hexDecode(byte[] bytes)
          Does the inverse of hexEncode.
static byte[] hexEncode(byte[] bytes)
          Encodes every input byte as two hex characters
static byte[] serialize(java.lang.Object obj)
          Uses standard java serialization to map obj to a byte[]
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Util

public Util()
Method Detail

serialize

public static byte[] serialize(java.lang.Object obj)
Uses standard java serialization to map obj to a byte[]

Parameters:
obj - may be null

deserialize

public static java.lang.Object deserialize(byte[] buf)
inverse operation to serialize


hexEncode

public static byte[] hexEncode(byte[] bytes)
Encodes every input byte as two hex characters


hexDecode

public static byte[] hexDecode(byte[] bytes)
Does the inverse of hexEncode.