org.phprpc.util
类 PHPSerializer
java.lang.Object
org.phprpc.util.PHPSerializer
public final class PHPSerializer
- extends Object
| 从类 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.