|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectwox.serial.Util
public class Util
The Util
class provides static methods that are used by
SimpleReader
and SimpleWriter
. The methods of
this class are used by the serialization and de-serialization processes.
Field Summary |
---|
Fields inherited from interface wox.serial.Serial |
---|
ARRAY, ARRAYLIST, DECLARED, ELEMENT_TYPE, ENTRY, FIELD, ID, IDREF, KEY, KEY_TYPE, LENGTH, MAP, NAME, OBJECT, primitiveArrays, primitiveArraysWOX, primitives, primitiveWrappers, TYPE, VALUE, VALUE_TYPE |
Constructor Summary | |
---|---|
Util()
|
Method Summary | |
---|---|
static java.lang.reflect.Constructor |
forceDefaultConstructor(java.lang.Class cl)
This method returns a default constructor for the specified class. |
static boolean |
primitive(java.lang.Class type)
This method returns true if the class passed as parameter is one of the valid primitive arrays classes supported by WOX. |
static boolean |
stringable(java.lang.Class type)
Returns true if the class passed as parameter is stringable. |
static boolean |
stringable(java.lang.Object o)
Returns true if the class of the object passed as parameter is stringable. |
static boolean |
stringable(java.lang.String name)
Returns true if the class which name is passed as parameter is stringable. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Util()
Method Detail |
---|
public static java.lang.reflect.Constructor forceDefaultConstructor(java.lang.Class cl) throws java.lang.Exception
cl
- The class to be used to get its constructor.
java.lang.Exception
- If there is a problem.public static boolean stringable(java.lang.Object o)
o
- The object to test.
public static boolean stringable(java.lang.Class type)
type
- The class to test.
public static boolean stringable(java.lang.String name)
name
- The name of the class to test.
public static boolean primitive(java.lang.Class type)
type
- The classs to test
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |