Class RunLengthEncoding

    • Constructor Detail

      • RunLengthEncoding

        public RunLengthEncoding()
      • RunLengthEncoding

        public RunLengthEncoding​(int srcType,
                                 int srcSize)
      • RunLengthEncoding

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

      • getSrcType

        public int getSrcType()
      • getSrcSize

        public int getSrcSize()
      • setSrcType

        public void setSrcType​(int srcType)
      • setSrcSize

        public void setSrcSize​(int srcSize)
      • 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<Int32Array>
        Returns:
        a String representing the name of this encoding
      • decode

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