Package com.google.zxing.common
Class ECIStringBuilder
java.lang.Object
com.google.zxing.common.ECIStringBuilder
Class that converts a sequence of ECIs and bytes into a string
- Author:
- Alex Geller
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionvoidappend(byte value) Appendsvalueas a byte valuevoidappend(char value) Appendsvalueas a byte valuevoidappend(int value) Append the string repesentation ofvalue(short forappend(String.valueOf(value)))voidAppends the characters invalueas bytes valuesvoidappendCharacters(StringBuilder value) Appends the characters fromvalue(unlike all other append methods of this class who append bytes)voidappendECI(int value) Appends ECI value to output.booleanisEmpty()intlength()Short fortoString().length()(if possible, useisEmpty()instead)toString()
- 
Constructor Details- 
ECIStringBuilderpublic ECIStringBuilder()
- 
ECIStringBuilderpublic ECIStringBuilder(int initialCapacity) 
 
- 
- 
Method Details- 
appendpublic void append(char value) Appendsvalueas a byte value- Parameters:
- value- character whose lowest byte is to be appended
 
- 
appendpublic void append(byte value) Appendsvalueas a byte value- Parameters:
- value- byte to append
 
- 
appendAppends the characters invalueas bytes values- Parameters:
- value- string to append
 
- 
appendpublic void append(int value) Append the string repesentation ofvalue(short forappend(String.valueOf(value)))- Parameters:
- value- int to append as a string
 
- 
appendECIAppends ECI value to output.- Parameters:
- value- ECI value to append, as an int
- Throws:
- FormatException- on invalid ECI value
 
- 
appendCharactersAppends the characters fromvalue(unlike all other append methods of this class who append bytes)- Parameters:
- value- characters to append
 
- 
lengthpublic int length()Short fortoString().length()(if possible, useisEmpty()instead)- Returns:
- length of string representation in characters
 
- 
isEmptypublic boolean isEmpty()- Returns:
- true iff nothing has been appended
 
- 
toString
 
-