Package com.google.zxing.aztec.encoder
Class State
java.lang.Object
com.google.zxing.aztec.encoder.State
State represents all information about a sequence necessary to generate the current output.
Note that a state is immutable.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) State
addBinaryShiftChar
(int index) (package private) State
appendFLGn
(int eci) private static int
calculateBinaryShiftCost
(int binaryShiftByteCount) (package private) State
endBinaryShift
(int index) (package private) int
(package private) int
(package private) int
getMode()
(package private) Token
getToken()
(package private) boolean
isBetterThanOrEqualTo
(State other) (package private) State
latchAndAppend
(int mode, int value) (package private) State
shiftAndAppend
(int mode, int value) (package private) BitArray
toBitArray
(byte[] text) toString()
-
Field Details
-
INITIAL_STATE
-
mode
private final int mode -
token
-
binaryShiftByteCount
private final int binaryShiftByteCount -
bitCount
private final int bitCount -
binaryShiftCost
private final int binaryShiftCost
-
-
Constructor Details
-
State
-
-
Method Details
-
getMode
int getMode() -
getToken
Token getToken() -
getBinaryShiftByteCount
int getBinaryShiftByteCount() -
getBitCount
int getBitCount() -
appendFLGn
-
latchAndAppend
-
shiftAndAppend
-
addBinaryShiftChar
-
endBinaryShift
-
isBetterThanOrEqualTo
-
toBitArray
-
toString
-
calculateBinaryShiftCost
private static int calculateBinaryShiftCost(int binaryShiftByteCount)
-