org.apache.pig.impl.util
Class ObjectSerializer

java.lang.Object
  extended by org.apache.pig.impl.util.ObjectSerializer

public class ObjectSerializer
extends Object


Constructor Summary
ObjectSerializer()
           
 
Method Summary
static byte[] decodeBytes(String str)
           
static Object deserialize(String str)
           
static String encodeBytes(byte[] bytes)
           
static String serialize(Serializable obj)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ObjectSerializer

public ObjectSerializer()
Method Detail

serialize

public static String serialize(Serializable obj)
                        throws IOException
Throws:
IOException

deserialize

public static Object deserialize(String str)
                          throws IOException
Throws:
IOException

encodeBytes

public static String encodeBytes(byte[] bytes)
                          throws UnsupportedEncodingException
Throws:
UnsupportedEncodingException

decodeBytes

public static byte[] decodeBytes(String str)
                          throws UnsupportedEncodingException
Throws:
UnsupportedEncodingException


Copyright © 2007-2012 The Apache Software Foundation