Class AbstractBaseNCodecStreamBuilder<T,C extends BaseNCodec,B extends AbstractBaseNCodecStreamBuilder<T,C,B>>

java.lang.Object
org.apache.commons.codec.binary.AbstractBaseNCodecStreamBuilder<T,C,B>
Type Parameters:
T - the stream type to build.
C - A BaseNCodec subclass.
B - the builder subclass.
All Implemented Interfaces:
Supplier<T>
Direct Known Subclasses:
BaseNCodecInputStream.AbstracBuilder, BaseNCodecOutputStream.AbstractBuilder

public abstract class AbstractBaseNCodecStreamBuilder<T,C extends BaseNCodec,B extends AbstractBaseNCodecStreamBuilder<T,C,B>> extends Object implements Supplier<T>
Builds input and output stream instances in BaseNCodec format.
Since:
1.20.0
  • Constructor Details

    • AbstractBaseNCodecStreamBuilder

      public AbstractBaseNCodecStreamBuilder()
      Constructs a new instance.
  • Method Details

    • setBaseNCodec

      public B setBaseNCodec(C baseNCodec)
      Sets a BaseNCodec subclass of type C.
      Parameters:
      baseNCodec - a BaseNCodec subclass of type C.
      Returns:
      this instance.
    • setEncode

      public B setEncode(boolean encode)
      Sets whether we should encode all data read (true), or if false if we should decode.
      Parameters:
      encode - encode or decode.
      Returns:
      this instance.