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, Map<EncodeHintType,Object> 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, Map<EncodeHintType,Object> hints, QRCode qrCode) throws WriterException
WriterException
public static Mode chooseMode(String content, String encoding)
Mode.KANJI
.
Copyright © 1998–2016. All rights reserved.