public final class ECIStringBuilder extends Object
Constructor and Description |
---|
ECIStringBuilder() |
ECIStringBuilder(int initialCapacity) |
Modifier and Type | Method and Description |
---|---|
void |
append(byte value)
Appends
value as a byte value |
void |
append(char value)
Appends
value as a byte value |
void |
append(int value)
Append the string repesentation of
value (short for append(String.valueOf(value)) ) |
void |
append(String value)
Appends the characters in
value as bytes values |
void |
appendCharacters(StringBuilder value)
Appends the characters from
value (unlike all other append methods of this class who append bytes) |
void |
appendECI(int value)
Appends ECI value to output.
|
boolean |
isEmpty() |
int |
length()
Short for
toString().length() (if possible, use isEmpty() instead) |
String |
toString() |
public ECIStringBuilder()
public ECIStringBuilder(int initialCapacity)
public void append(char value)
value
as a byte valuevalue
- character whose lowest byte is to be appendedpublic void append(byte value)
value
as a byte valuevalue
- byte to appendpublic void append(String value)
value
as bytes valuesvalue
- string to appendpublic void append(int value)
value
(short for append(String.valueOf(value))
)value
- int to append as a stringpublic void appendECI(int value) throws FormatException
value
- ECI value to append, as an intFormatException
- on invalid ECI valuepublic void appendCharacters(StringBuilder value)
value
(unlike all other append methods of this class who append bytes)value
- characters to appendpublic int length()
toString().length()
(if possible, use isEmpty()
instead)public boolean isEmpty()
Copyright © 2007–2024. All rights reserved.