public class ObjectStreamTranslator
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
ABBREVIATION_ARRAY_BOOLEAN
The abbreviation for a one-dimensional array of type Boolean.
|
static java.lang.String |
ABBREVIATION_ARRAY_BYTE
The abbreviation for a one-dimensional array of type Byte.
|
static java.lang.String |
ABBREVIATION_ARRAY_CHARACTER
The abbreviation for a one-dimensional array of type Character.
|
static java.lang.String |
ABBREVIATION_ARRAY_INTEGER
The abbreviation for a one-dimensional array of type Integer.
|
static java.lang.String |
ABBREVIATION_ARRAY_LONG
The abbreviation for a one-dimensional array of type Long.
|
static java.lang.String |
ABBREVIATION_ARRAY_OBJECT
The abbreviation for a one-dimensional array of type Object.
|
static java.lang.String |
ABBREVIATION_ARRAY_SHORT
The abbreviation for a one-dimensional array of type Short.
|
static java.lang.String |
ABBREVIATION_ARRAY_STRING
The abbreviation for a one-dimensional array of type String.
|
static java.lang.String |
ABBREVIATION_BOOLEAN
The abbreviation for classes of type Boolean.
|
static java.lang.String |
ABBREVIATION_BYTE
The abbreviation for classes of type Byte.
|
static java.lang.String |
ABBREVIATION_CHARACTER
The abbreviation for classes of type Character.
|
static java.lang.String |
ABBREVIATION_HASHTABLE
The abbreviation for a one-dimensional array of type Hashtable.
|
static java.lang.String |
ABBREVIATION_INTEGER
The abbreviation for classes of type Integer.
|
static java.lang.String |
ABBREVIATION_LONG
The abbreviation for classes of type Long.
|
static java.lang.String |
ABBREVIATION_NULL
The abbreviation for objects with the value null.
|
static java.lang.String |
ABBREVIATION_OBJECT
The abbreviation for classes of type Object.
|
static java.lang.String |
ABBREVIATION_PRIMITIVE_BOOLEAN
The abbreviation for a one-dimensional array of type boolean.
|
static java.lang.String |
ABBREVIATION_PRIMITIVE_BYTE
The abbreviation for a one-dimensional array of type byte.
|
static java.lang.String |
ABBREVIATION_PRIMITIVE_CHAR
The abbreviation for a one-dimensional array of type char.
|
static java.lang.String |
ABBREVIATION_PRIMITIVE_INT
The abbreviation for a one-dimensional array of type int.
|
static java.lang.String |
ABBREVIATION_PRIMITIVE_LONG
The abbreviation for a one-dimensional array of type long.
|
static java.lang.String |
ABBREVIATION_PRIMITIVE_SHORT
The abbreviation for a one-dimensional array of type short.
|
static java.lang.String |
ABBREVIATION_REFERENCE
The abbreviation for cyclic references within an object graph.
|
static java.lang.String |
ABBREVIATION_SHORT
The abbreviation for classes of type Short.
|
static java.lang.String |
ABBREVIATION_STACK
The abbreviation for a one-dimensional array of type Stack.
|
static java.lang.String |
ABBREVIATION_STRING
The abbreviation for classes of type String.
|
static java.lang.String |
ABBREVIATION_VECTOR
The abbreviation for a one-dimensional array of type Vector.
|
Constructor and Description |
---|
ObjectStreamTranslator() |
Modifier and Type | Method and Description |
---|---|
static boolean |
containsAbbreviation(java.lang.String abbreviation)
Determines whether the specified abbreviation has been registered
already.
|
static boolean |
containsClassname(java.lang.String classname)
Determines whether the specified class name has been registered
already.
|
static java.lang.String |
getAbbreviation(java.lang.String classname)
Returns the abbreviation for the specified class name.
|
static java.lang.String |
getClassname(java.lang.String abbreviation)
Returns the class name for the specified abbreviation.
|
static void |
register(java.lang.String classname,
java.lang.String abbreviation)
Registers a certain abbreviation for the specified class name.
|
public static final java.lang.String ABBREVIATION_REFERENCE
public static final java.lang.String ABBREVIATION_NULL
public static final java.lang.String ABBREVIATION_OBJECT
public static final java.lang.String ABBREVIATION_INTEGER
public static final java.lang.String ABBREVIATION_SHORT
public static final java.lang.String ABBREVIATION_LONG
public static final java.lang.String ABBREVIATION_BOOLEAN
public static final java.lang.String ABBREVIATION_BYTE
public static final java.lang.String ABBREVIATION_CHARACTER
public static final java.lang.String ABBREVIATION_STRING
public static final java.lang.String ABBREVIATION_PRIMITIVE_INT
public static final java.lang.String ABBREVIATION_PRIMITIVE_LONG
public static final java.lang.String ABBREVIATION_PRIMITIVE_SHORT
public static final java.lang.String ABBREVIATION_PRIMITIVE_BOOLEAN
public static final java.lang.String ABBREVIATION_PRIMITIVE_BYTE
public static final java.lang.String ABBREVIATION_PRIMITIVE_CHAR
public static final java.lang.String ABBREVIATION_ARRAY_OBJECT
public static final java.lang.String ABBREVIATION_ARRAY_INTEGER
public static final java.lang.String ABBREVIATION_ARRAY_SHORT
public static final java.lang.String ABBREVIATION_ARRAY_LONG
public static final java.lang.String ABBREVIATION_ARRAY_BOOLEAN
public static final java.lang.String ABBREVIATION_ARRAY_BYTE
public static final java.lang.String ABBREVIATION_ARRAY_CHARACTER
public static final java.lang.String ABBREVIATION_ARRAY_STRING
public static final java.lang.String ABBREVIATION_VECTOR
public static final java.lang.String ABBREVIATION_STACK
public static final java.lang.String ABBREVIATION_HASHTABLE
public static void register(java.lang.String classname, java.lang.String abbreviation)
classname
- The class name that should be registered.abbreviation
- The abbreviation that should be registered.java.lang.IllegalArgumentException
- Thrown if the class name or the
abbreviation has been registered already or if one of them
represents the empty string.public static java.lang.String getClassname(java.lang.String abbreviation)
abbreviation
- The abbreviation that should be translated
into a class name.java.lang.NullPointerException
- Thrown if the abbreviation is
null.public static java.lang.String getAbbreviation(java.lang.String classname)
classname
- The class name whose abbreviation needs to
be retrieved.java.lang.NullPointerException
- Thrown if the class name is null.public static boolean containsClassname(java.lang.String classname)
classname
- The class name of interest.java.lang.NullPointerException
- Thrown if the class name is null.public static boolean containsAbbreviation(java.lang.String abbreviation)
abbreviation
- The abbreviation of interest.java.lang.NullPointerException
- Thrown if the abbreviation is null.