Package com.google.zxing.qrcode.encoder
Class MinimalEncoder.ResultList.ResultNode
- java.lang.Object
-
- com.google.zxing.qrcode.encoder.MinimalEncoder.ResultList.ResultNode
-
- Enclosing class:
- MinimalEncoder.ResultList
final class MinimalEncoder.ResultList.ResultNode extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description private intcharacterLengthprivate intcharsetEncoderIndexprivate intfromPositionprivate Modemode
-
Constructor Summary
Constructors Constructor Description ResultNode(Mode mode, int fromPosition, int charsetEncoderIndex, int characterLength)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description private voidgetBits(BitArray bits)appends the bitsprivate intgetCharacterCountIndicator()returns the length in characters according to the specification (differs from getCharacterLength() in BYTE mode for multi byte encoded characters)private intgetSize(Version version)returns the size in bitsprivate java.lang.StringmakePrintable(java.lang.String s)java.lang.StringtoString()
-
-
-
Field Detail
-
mode
private final Mode mode
-
fromPosition
private final int fromPosition
-
charsetEncoderIndex
private final int charsetEncoderIndex
-
characterLength
private final int characterLength
-
-
Constructor Detail
-
ResultNode
ResultNode(Mode mode, int fromPosition, int charsetEncoderIndex, int characterLength)
-
-
Method Detail
-
getSize
private int getSize(Version version)
returns the size in bits
-
getCharacterCountIndicator
private int getCharacterCountIndicator()
returns the length in characters according to the specification (differs from getCharacterLength() in BYTE mode for multi byte encoded characters)
-
getBits
private void getBits(BitArray bits) throws WriterException
appends the bits- Throws:
WriterException
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
makePrintable
private java.lang.String makePrintable(java.lang.String s)
-
-