|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface ClassResolver
Handles class registration, writing class identifiers to bytes, and reading class identifiers from bytes.
| Method Summary | |
|---|---|
Registration |
getRegistration(java.lang.Class type)
Returns the registration for the specified class, or null if the class is not registered. |
Registration |
getRegistration(int classID)
Returns the registration for the specified ID, or null if no class is registered with that ID. |
Registration |
readClass(Input input)
Reads a class and returns its registration. |
Registration |
register(Registration registration)
Stores the specified registration. |
Registration |
registerImplicit(java.lang.Class type)
Called when an unregistered type is encountered and Kryo.setRegistrationRequired(boolean) is false. |
void |
reset()
Called by Kryo.reset(). |
void |
setKryo(Kryo kryo)
Sets the Kryo instance that this ClassResolver will be used for. |
Registration |
writeClass(Output output,
java.lang.Class type)
Writes a class and returns its registration. |
| Method Detail |
|---|
void setKryo(Kryo kryo)
Registration register(Registration registration)
Kryo.register(Registration)Registration registerImplicit(java.lang.Class type)
Kryo.setRegistrationRequired(boolean) is false.
Registration getRegistration(java.lang.Class type)
Registration getRegistration(int classID)
Registration writeClass(Output output,
java.lang.Class type)
type - May be null.
Registration readClass(Input input)
void reset()
Kryo.reset().
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||