Package com.google.zxing.qrcode.encoder
Class Encoder
java.lang.Object
com.google.zxing.qrcode.encoder.Encoder
- Author:
- satorux@google.com (Satoru Takabayashi) - creator, dswitkin@google.com (Daniel Switkin) - ported from C++
-
Method Summary
Modifier and TypeMethodDescriptionstatic Mode
chooseMode
(String content) static QRCode
encode
(String content, ErrorCorrectionLevel ecLevel) static QRCode
encode
(String content, ErrorCorrectionLevel ecLevel, Map<EncodeHintType, ?> hints)
-
Method Details
-
encode
- Parameters:
content
- text to encodeecLevel
- error correction level to use- Returns:
QRCode
representing the encoded QR code- Throws:
WriterException
- if encoding can't succeed, because of for example invalid content or configuration
-
encode
public static QRCode encode(String content, ErrorCorrectionLevel ecLevel, Map<EncodeHintType, ?> hints) throws WriterException- Throws:
WriterException
-
chooseMode
-