org.apache.hadoop.hive.ql.util.jdbm.helper
Class Serialization

java.lang.Object
  extended by org.apache.hadoop.hive.ql.util.jdbm.helper.Serialization

public final class Serialization
extends Object

Serialization-related utility methods.

Version:
$Id: Serialization.java,v 1.1 2002/05/31 06:33:20 boisvert Exp $
Author:
Alex Boisvert

Constructor Summary
Serialization()
           
 
Method Summary
static Object deserialize(byte[] buf)
          Deserialize an object from a byte array
static byte[] serialize(Object obj)
          Serialize the object into a byte array.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Serialization

public Serialization()
Method Detail

serialize

public static byte[] serialize(Object obj)
                        throws IOException
Serialize the object into a byte array.

Throws:
IOException

deserialize

public static Object deserialize(byte[] buf)
                          throws ClassNotFoundException,
                                 IOException
Deserialize an object from a byte array

Throws:
ClassNotFoundException
IOException


Copyright © 2010 The Apache Software Foundation