public final class Encoder extends Object
Modifier and Type | Method and Description |
---|---|
static Mode |
chooseMode(String content) |
static Mode |
chooseMode(String content,
String encoding)
Choose the best mode by examining the content.
|
static void |
encode(String content,
ErrorCorrectionLevel ecLevel,
Hashtable hints,
QRCode qrCode) |
static void |
encode(String content,
ErrorCorrectionLevel ecLevel,
QRCode qrCode)
Encode "bytes" with the error correction level "ecLevel".
|
public static void encode(String content, ErrorCorrectionLevel ecLevel, QRCode qrCode) throws WriterException
WriterException
public static void encode(String content, ErrorCorrectionLevel ecLevel, Hashtable hints, QRCode qrCode) throws WriterException
WriterException
public static Mode chooseMode(String content, String encoding)
Mode.KANJI
.Copyright © 2016. All Rights Reserved.