Package | Description |
---|---|
com.google.zxing.qrcode.decoder | |
com.google.zxing.qrcode.encoder |
Modifier and Type | Method and Description |
---|---|
static Mode |
Mode.forBits(int bits) |
static Mode |
Mode.valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static Mode[] |
Mode.values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
Modifier and Type | Field and Description |
---|---|
private Mode |
MinimalEncoder.Edge.mode |
private Mode |
MinimalEncoder.ResultList.ResultNode.mode |
private Mode |
QRCode.mode |
Modifier and Type | Method and Description |
---|---|
static Mode |
Encoder.chooseMode(java.lang.String content) |
private static Mode |
Encoder.chooseMode(java.lang.String content,
java.nio.charset.Charset encoding)
Choose the best mode by examining the content.
|
Mode |
QRCode.getMode() |
Modifier and Type | Method and Description |
---|---|
(package private) static void |
Encoder.appendBytes(java.lang.String content,
Mode mode,
BitArray bits,
java.nio.charset.Charset encoding)
Append "bytes" in "mode" mode (encoding) into "bits".
|
(package private) static void |
Encoder.appendLengthInfo(int numLetters,
Version version,
Mode mode,
BitArray bits)
Append length info.
|
(package private) static void |
Encoder.appendModeInfo(Mode mode,
BitArray bits)
Append mode info.
|
private static int |
Encoder.calculateBitsNeeded(Mode mode,
BitArray headerBits,
BitArray dataBits,
Version version) |
(package private) boolean |
MinimalEncoder.canEncode(Mode mode,
char c) |
(package private) static int |
MinimalEncoder.getCompactedOrdinal(Mode mode) |
private static Version |
Encoder.recommendVersion(ErrorCorrectionLevel ecLevel,
Mode mode,
BitArray headerBits,
BitArray dataBits)
Decides the smallest version of QR code that will contain all of the provided data.
|
void |
QRCode.setMode(Mode value) |
Constructor and Description |
---|
Edge(Mode mode,
int fromPosition,
int charsetEncoderIndex,
int characterLength,
MinimalEncoder.Edge previous,
Version version) |
ResultNode(Mode mode,
int fromPosition,
int charsetEncoderIndex,
int characterLength) |