public class CharTagMapBuilder
extends java.lang.Object
Using withTagLengthSwap(true)
while creating the builder causes
switchs CharTagMap
in LTV mode.
Modifier and Type | Field and Description |
---|---|
protected java.lang.Integer |
lengthSize |
protected boolean |
swapTagWithLength |
protected java.lang.Integer |
tagSize |
Constructor and Description |
---|
CharTagMapBuilder()
Constructs a new instance of the builder.
|
Modifier and Type | Method and Description |
---|---|
CharTagMap |
build()
Completes this builder by creating the
CharTagMap . |
CharTagMapBuilder |
withLengthSize(int size)
Sets size of length element.
|
CharTagMapBuilder |
withTagLengthSwap(boolean swap)
Swap Tag with Length.
|
CharTagMapBuilder |
withTagSize(int size)
Sets size of tag element.
|
protected java.lang.Integer tagSize
protected java.lang.Integer lengthSize
protected boolean swapTagWithLength
public CharTagMapBuilder()
public CharTagMapBuilder withLengthSize(int size)
size
- size of length elamentnull
public CharTagMapBuilder withTagSize(int size)
size
- size of length elamentnull
public CharTagMapBuilder withTagLengthSwap(boolean swap)
swap
- indicates if tag element will be swapped with length elementnull
public CharTagMap build() throws java.lang.IllegalArgumentException
CharTagMap
.null
java.lang.IllegalArgumentException
- if tag ma cannot be created