org.glite.security.voms.utilities
Class SimpleSerializer

java.lang.Object
  extended byorg.glite.security.voms.utilities.SimpleSerializer

public class SimpleSerializer
extends java.lang.Object

A simple utility class for converting Java objects to/from byte arrays.


Constructor Summary
SimpleSerializer()
           
 
Method Summary
static java.lang.Object get(byte[] b)
          Extract
static byte[] put(java.io.Serializable o)
          Convert Object o to a byte array.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SimpleSerializer

public SimpleSerializer()
Method Detail

put

public static byte[] put(java.io.Serializable o)
                  throws java.io.IOException
Convert Object o to a byte array.

Throws:
java.io.IOException

get

public static java.lang.Object get(byte[] b)
                            throws java.io.IOException,
                                   java.lang.ClassNotFoundException
Extract

Throws:
java.io.IOException
java.lang.ClassNotFoundException