Class Base16.Builder

    • Constructor Detail

      • Builder

        public Builder()
        Constructs a new instance.
    • Method Detail

      • setEncodeTable

        public Base16.Builder setEncodeTable​(byte... encodeTable)
        Sets the Base16 encode table and derives the matching decode table.
        Overrides:
        setEncodeTable in class BaseNCodec.AbstractBuilder<Base16,​Base16.Builder>
        Parameters:
        encodeTable - 16 unique bytes, null resets to the default upper-case table.
        Returns:
        this instance.
        Throws:
        java.lang.IllegalArgumentException - Thrown if encodeTable does not contain 16 unique bytes.
      • setLowerCase

        public Base16.Builder setLowerCase​(boolean lowerCase)
        Sets whether to use the lower-case Base16 alphabet.
        Parameters:
        lowerCase - true to use the lower-case Base16 alphabet.
        Returns:
        this instance.