Class Overview
A standard provider for native Java types. Currently, this provider supports:
- The 8 primitive types (boolean, byte, char, short, int, long, float, double) as well as their
boxed versions
- Object and String
- The following list types: ArrayList, LinkedList
- The following set types: HashSet, TreeSet
- The following map types: HashMap, TreeMap, LinkedHashMap
Currently, serializing any other non-native type (or non @
Ser type) will result in
undefined behavior.
Summary
| Protected Methods |
|
void
|
loadTypes(Map<Class<?>, Integer> map)
|
|
[Expand]
Inherited Methods |
From class
com.pnfsoftware.jeb.util.serialization.AbstractTypeIdProvider
|
void
|
addAll(ITypeIdProvider provider)
Add of types from a provider to this provider.
|
|
int
|
getId(Class<?> c)
Get the ype-id of a given type.
|
|
Map<Class<?>, Integer>
|
getMap()
Get the map of type to type-id.
|
|
Map<Integer, Class<?>>
|
getReverseMap()
Get the reverse type-id map, mapping a type-id to a type.
|
|
Class<?>
|
getType(int typeId)
Get a type by type-id.
|
|
abstract
void
|
loadTypes(Map<Class<?>, Integer> map)
|
|
From class
java.lang.Object
|
Object
|
clone()
|
|
boolean
|
equals(Object arg0)
|
|
void
|
finalize()
|
|
final
Class<?>
|
getClass()
|
|
int
|
hashCode()
|
|
final
void
|
notify()
|
|
final
void
|
notifyAll()
|
|
String
|
toString()
|
|
final
void
|
wait()
|
|
final
void
|
wait(long arg0, int arg1)
|
|
final
void
|
wait(long arg0)
|
|
From interface
com.pnfsoftware.jeb.util.serialization.ITypeIdProvider
|
abstract
void
|
addAll(ITypeIdProvider provider)
Add of types from a provider to this provider.
|
|
abstract
int
|
getId(Class<?> c)
Get the ype-id of a given type.
|
|
abstract
Map<Class<?>, Integer>
|
getMap()
Get the map of type to type-id.
|
|
abstract
Map<Integer, Class<?>>
|
getReverseMap()
Get the reverse type-id map, mapping a type-id to a type.
|
|
abstract
Class<?>
|
getType(int id)
Get a type by type-id.
|
|
Public Methods
Protected Methods
protected
void
loadTypes
(Map<Class<?>, Integer> map)