Class ECIStringBuilder
Class that converts a sequence of ECIs and bytes into a string
@author Alex Geller
public class ECIStringBuilder
- Inheritance
-
ECIStringBuilder
- Inherited Members
Constructors
ECIStringBuilder()
public ECIStringBuilder()
ECIStringBuilder(int)
public ECIStringBuilder(int initialCapacity)
Parameters
initialCapacity
int
ECIStringBuilder(int, Encoding, Encoding)
public ECIStringBuilder(int initialCapacity, Encoding standardEncoding, Encoding startWithEncoding)
Parameters
ECIStringBuilder(Encoding)
public ECIStringBuilder(Encoding standardEncoding)
Parameters
standardEncoding
Encoding
Properties
Length
Short for {@code toString().length()} (if possible, use {@link #isEmpty()} instead)
public int Length { get; }
Property Value
- int
length of string representation in characters
isEmpty
true if nothing has been appended
public bool isEmpty { get; }
Property Value
Methods
Append(byte)
Appends {@code value} as a byte value
public void Append(byte value)
Parameters
value
bytebyte to append
Append(char)
Appends {@code value} as a byte value
public void Append(char value)
Parameters
value
charcharacter whose lowest byte is to be appended
Append(int)
Append the string repesentation of {@code value} (short for {@code append(String.valueOf(value))})
public void Append(int value)
Parameters
value
intint to append as a string
Append(string)
Appends the characters in {@code value} as bytes values
public void Append(string value)
Parameters
value
stringstring to append
AppendCharacters(StringBuilder)
Appends the characters from {@code value} (unlike all other append methods of this class who append bytes)
public void AppendCharacters(StringBuilder value)
Parameters
value
StringBuildercharacters to append
AppendECI(int)
Appends ECI value to output.
public bool AppendECI(int value)
Parameters
value
intECI value to append, as an int
Returns
ToString()
public override string ToString()