Class ByteArrayEncoding

    • Constructor Detail

      • ByteArrayEncoding

        public ByteArrayEncoding()
      • ByteArrayEncoding

        public ByteArrayEncoding​(int type)
      • ByteArrayEncoding

        public ByteArrayEncoding​(Map<String,​Object> encoding)
    • Method Detail

      • getType

        public int getType()
      • setType

        public void setType​(int type)
      • getKind

        public String getKind()
        Description copied from interface: Encoding
        The name of this encoding. Used for serialization and to retrieve the necessary Codec implementations.
        Specified by:
        getKind in interface Encoding<ByteArray>
        Returns:
        a String representing the name of this encoding
      • decode

        public NumberArray<?> decode​(ByteArray current)
        Description copied from interface: Encoding
        Let this Encoding work its magic and decode some data.
        Specified by:
        decode in interface Encoding<ByteArray>
        Parameters:
        current - the container to decode
        Returns:
        the decoded information