|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.vaadin.util.SerializerHelper
public class SerializerHelper
Helper class for performing serialization. Most of the methods are here are workarounds for problems in Google App Engine. Used internally by Vaadin and should not be used by application developers. Subject to change at any time.
Constructor Summary | |
---|---|
SerializerHelper()
|
Method Summary | |
---|---|
static java.lang.Class<?> |
readClass(java.io.ObjectInputStream in)
Deserializes a class reference serialized by writeClass(ObjectOutputStream, Class) . |
static java.lang.Class<?>[] |
readClassArray(java.io.ObjectInputStream in)
Deserializes a class references serialized by writeClassArray(ObjectOutputStream, Class[]) . |
static java.lang.Class<?> |
resolveClass(java.lang.String className)
Resolves the class given by className . |
static void |
writeClass(java.io.ObjectOutputStream out,
java.lang.Class<?> cls)
Serializes the class reference so readClass(ObjectInputStream)
can deserialize it. |
static void |
writeClassArray(java.io.ObjectOutputStream out,
java.lang.Class<?>[] classes)
Serializes the class references so readClassArray(ObjectInputStream) can deserialize it. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SerializerHelper()
Method Detail |
---|
public static void writeClass(java.io.ObjectOutputStream out, java.lang.Class<?> cls) throws java.io.IOException
readClass(ObjectInputStream)
can deserialize it. Supports null class references.
out
- The ObjectOutputStream
to serialize to.cls
- A class or null.
java.io.IOException
- Rethrows any IOExceptions from the ObjectOutputStreampublic static void writeClassArray(java.io.ObjectOutputStream out, java.lang.Class<?>[] classes) throws java.io.IOException
readClassArray(ObjectInputStream)
can deserialize it. Supports
null class arrays.
out
- The ObjectOutputStream
to serialize to.classes
- An array containing class references or null.
java.io.IOException
- Rethrows any IOExceptions from the ObjectOutputStreampublic static java.lang.Class<?>[] readClassArray(java.io.ObjectInputStream in) throws java.lang.ClassNotFoundException, java.io.IOException
writeClassArray(ObjectOutputStream, Class[])
. Supports null
class arrays.
in
- ObjectInputStream
to read from.
java.lang.ClassNotFoundException
- If one of the classes could not be resolved.
java.io.IOException
- Rethrows IOExceptions from the ObjectInputStreampublic static java.lang.Class<?> resolveClass(java.lang.String className) throws java.lang.ClassNotFoundException
className
.
className
- The fully qualified class name.
Class
reference.
java.lang.ClassNotFoundException
- If the class could not be resolved.public static java.lang.Class<?> readClass(java.io.ObjectInputStream in) throws java.io.IOException, java.lang.ClassNotFoundException
writeClass(ObjectOutputStream, Class)
. Supports null class
references.
in
- ObjectInputStream
to read from.
java.lang.ClassNotFoundException
- If the class could not be resolved.
java.io.IOException
- Rethrows IOExceptions from the ObjectInputStream
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |