Interface Codec<T>

Type Parameters:
T - the object type
All Superinterfaces:
Decoder<T>, Encoder<T>

public interface Codec<T> extends Encoder<T>, Decoder<T>
Codec interface for reading/writing objects to/from DataInputStream/DataOutputStream.
  • Method Details

    • name

      String name()
      The encoder name, usually corresponds to the object type.
      Returns:
      name