Class BasicSerializer<T>

    • Constructor Detail

      • BasicSerializer

        public BasicSerializer​(byte type,
                               String dataClassName)
        Construct the BasicSerializer.
        Parameters:
        type - byte; the field type (returned by the fieldType method)
        dataClassName - String; returned by the dataClassName method
    • Method Detail

      • fieldType

        public final byte fieldType()
        Return the byte representation of the field type.
        Specified by:
        fieldType in interface Serializer<T>
        Returns:
        byte
      • dataClassName

        public final String dataClassName()
        Return a description of the type of data that this serializer handles. The result of this method should not be subject to localization because it is used in the SerialDataDecoder to identify the type of a serializer.
        Specified by:
        dataClassName in interface Serializer<T>
        Returns:
        String; description of the type of data that this serializer handles