Class NetworkManager.KryoForState

java.lang.Object
com.esotericsoftware.kryo.Kryo
com.prineside.tdi2.managers.NetworkManager.KryoForState
Enclosing class:
NetworkManager

public class NetworkManager.KryoForState extends Kryo
  • Constructor Details

    • KryoForState

      public KryoForState()
  • Method Details

    • register

      public Registration register(Registration registration)
      Description copied from class: com.esotericsoftware.kryo.Kryo
      Stores the specified registration. If the ID is already in use by the same type, the old entry is overwritten. Registering a primitive also affects the corresponding primitive wrapper.

      IDs must be the same at deserialization as they were for serialization.

      Registration can be suclassed to efficiently store per type information, accessible in serializers via Kryo.getRegistration(Class).

      Overrides:
      register in class Kryo
    • register

      public Registration register(Class type, Serializer serializer)
      Description copied from class: com.esotericsoftware.kryo.Kryo
      Registers the class using the lowest, next available integer ID and the specified serializer. If the class is already registered, the existing entry is updated with the new serializer. Registering a primitive also affects the corresponding primitive wrapper.

      Because the ID assigned is affected by the IDs registered before it, the order classes are registered is important when using this method. The order must be the same at deserialization as it was for serialization.

      Overrides:
      register in class Kryo
    • hasRegistration

      public boolean hasRegistration(Class type)
    • getRegistration

      public Registration getRegistration(Class type)
      Description copied from class: com.esotericsoftware.kryo.Kryo
      If the class is not registered and Kryo.setRegistrationRequired(boolean) is false, it is automatically registered using the default serializer.
      Overrides:
      getRegistration in class Kryo
      See Also: