public final class Encoder extends Object
Modifier and Type | Method and Description |
---|---|
static Mode |
chooseMode(String content) |
static QRCode |
encode(String content,
ErrorCorrectionLevel ecLevel) |
static QRCode |
encode(String content,
ErrorCorrectionLevel ecLevel,
Map<EncodeHintType,?> hints) |
public static QRCode encode(String content, ErrorCorrectionLevel ecLevel) throws WriterException
content
- text to encodeecLevel
- error correction level to useQRCode
representing the encoded QR codeWriterException
- if encoding can't succeed, because of for example invalid content
or configurationpublic static QRCode encode(String content, ErrorCorrectionLevel ecLevel, Map<EncodeHintType,?> hints) throws WriterException
WriterException
Copyright © 2007–2024. All rights reserved.