org.phprpc.util
类 PHPSerializer

java.lang.Object
  继承者 org.phprpc.util.PHPSerializer

public final class PHPSerializer
extends Object


构造方法摘要
PHPSerializer()
           
 
方法摘要
 String getCharset()
           
 Class getClass(String className)
           
static String getClassName(Class cls)
           
static Field getField(Object obj, String fieldName)
           
static Object newInstance(Class cls)
           
 byte[] serialize(Object obj)
           
 void setCharset(String charset)
           
 Object unserialize(byte[] ss)
           
 Object unserialize(byte[] ss, Class cls)
           
 
从类 java.lang.Object 继承的方法
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

构造方法详细信息

PHPSerializer

public PHPSerializer()
方法详细信息

getCharset

public String getCharset()

setCharset

public void setCharset(String charset)

serialize

public byte[] serialize(Object obj)
                 throws IllegalAccessException,
                        IllegalArgumentException,
                        InvocationTargetException
抛出:
IllegalAccessException
IllegalArgumentException
InvocationTargetException

getClass

public Class getClass(String className)

getClassName

public static String getClassName(Class cls)

getField

public static Field getField(Object obj,
                             String fieldName)

newInstance

public static Object newInstance(Class cls)

unserialize

public Object unserialize(byte[] ss)
                   throws IllegalAccessException,
                          IllegalArgumentException,
                          InvocationTargetException
抛出:
IllegalAccessException
IllegalArgumentException
InvocationTargetException

unserialize

public Object unserialize(byte[] ss,
                          Class cls)
                   throws IllegalAccessException,
                          IllegalArgumentException,
                          InvocationTargetException
抛出:
IllegalAccessException
IllegalArgumentException
InvocationTargetException


Copyright © 2014. All rights reserved.