public final class Encoder extends Object
| Modifier and Type | Method and Description |
|---|---|
static Mode |
chooseMode(String
|
static QRCode |
encode(String
|
static QRCode |
encode(String
|
public static QRCodeencode(String content, ErrorCorrectionLevel ecLevel) throws WriterException
content - text to encode
ecLevel - error correction level to use
QRCode representing the encoded QR code
WriterException - if encoding can't succeed, because of for example invalid content or configuration
public static QRCodeencode(String content, ErrorCorrectionLevel ecLevel, Map <EncodeHintType ,?> hints) throws WriterException
WriterException