Class TLVList.TLVListBuilder

java.lang.Object
org.jpos.tlv.TLVList.TLVListBuilder
Enclosing class:
TLVList

public static class TLVList.TLVListBuilder extends Object
  • Constructor Details

  • Method Details

    • createInstance

      Creates instance of TLV engine builder.
      Returns:
      instance of TLV builder.
    • fixedTagSize

      public TLVList.TLVListBuilder fixedTagSize(int tagSize)
      Forces a fixed size of tag.

      It disables tag size autodetection according with ISO/IEC 7816-4 BER-TLV.

      Parameters:
      tagSize - The size of tag in bytes
      Returns:
      TLVList builder with fixed tag size
    • fixedLengthSize

      public TLVList.TLVListBuilder fixedLengthSize(int lengthSize)
      Forces a fixed size of length.

      It disables length size autodetection according with ISO/IEC 7816-4 BER-TLV.

      Parameters:
      lengthSize - The size of length in bytes (1 - 4)
      Returns:
      TLVList builder with fixed length size
    • build

      public TLVList build()
      Build TLV engine.
      Returns:
      configured TLV engine