Table of Contents

Class ECIStringBuilder

Namespace
ZXing.Common
Assembly
zxing.dll

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

initialCapacity int
standardEncoding Encoding
startWithEncoding Encoding

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

bool

Methods

Append(byte)

Appends {@code value} as a byte value

public void Append(byte value)

Parameters

value byte

byte to append

Append(char)

Appends {@code value} as a byte value

public void Append(char value)

Parameters

value char

character 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 int

int to append as a string

Append(string)

Appends the characters in {@code value} as bytes values

public void Append(string value)

Parameters

value string

string 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 StringBuilder

characters to append

AppendECI(int)

Appends ECI value to output.

public bool AppendECI(int value)

Parameters

value int

ECI value to append, as an int

Returns

bool

ToString()

public override string ToString()

Returns

string