|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.xwiki.crypto.internal.SerializationUtils
public final class SerializationUtils
Utilities for serialization and deserialization.
| Method Summary | ||
|---|---|---|
static java.lang.Object |
deserialize(byte[] serialized)
This method will accept a serialized version of any object defined in the system. |
|
static
|
serialize(T toSerialize)
Convert the given Object to a byte array which when passed to deserialize() will make the same Object. |
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static java.lang.Object deserialize(byte[] serialized)
throws java.io.IOException,
java.lang.ClassNotFoundException
serialized - the byte array to create the Object from.
java.io.IOException - if something goes wrong in the serialization framework.
java.lang.ClassNotFoundException - if the required Object class is not present on the system.
public static <T extends java.io.Serializable> byte[] serialize(T toSerialize)
throws java.io.IOException
T - a serializable class.toSerialize - the Object to convert into a byte array.
java.io.IOException - if something goes wrong in the serialization framework.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||