Class BaseNCodec.AbstractBuilder<T,​B extends BaseNCodec.AbstractBuilder<T,​B>>

  • Type Parameters:
    T - the codec type to build.
    B - the codec builder subtype.
    All Implemented Interfaces:
    java.util.function.Supplier<T>
    Direct Known Subclasses:
    Base32.Builder, Base64.Builder
    Enclosing class:
    BaseNCodec

    public abstract static class BaseNCodec.AbstractBuilder<T,​B extends BaseNCodec.AbstractBuilder<T,​B>>
    extends java.lang.Object
    implements java.util.function.Supplier<T>
    Builds Base64 instances.
    Since:
    1.17.0
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      B setDecodingPolicy​(CodecPolicy decodingPolicy)
      Sets the decoding policy.
      B setEncodeTable​(byte... encodeTable)
      Sets the encode table.
      B setLineLength​(int lineLength)
      Sets the line length.
      B setLineSeparator​(byte... lineSeparator)
      Sets the line separator.
      B setPadding​(byte padding)
      Sets the padding byte.
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface java.util.function.Supplier

        get
    • Method Detail

      • setDecodingPolicy

        public B setDecodingPolicy​(CodecPolicy decodingPolicy)
        Sets the decoding policy.
        Parameters:
        decodingPolicy - the decoding policy, null resets to the default.
        Returns:
        this.
      • setEncodeTable

        public B setEncodeTable​(byte... encodeTable)
        Sets the encode table.
        Parameters:
        encodeTable - the encode table, null resets to the default.
        Returns:
        this.
      • setLineLength

        public B setLineLength​(int lineLength)
        Sets the line length.
        Parameters:
        lineLength - the line length, less than 0 resets to the default.
        Returns:
        this.
      • setLineSeparator

        public B setLineSeparator​(byte... lineSeparator)
        Sets the line separator.
        Parameters:
        lineSeparator - the line separator, null resets to the default.
        Returns:
        this.
      • setPadding

        public B setPadding​(byte padding)
        Sets the padding byte.
        Parameters:
        padding - the padding byte.
        Returns:
        this.