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 ModechooseMode(String content) static QRCodeencode(String content, ErrorCorrectionLevel ecLevel) static QRCodeencode(String content, ErrorCorrectionLevel ecLevel, Map<EncodeHintType, ?> hints)
-
Method Details
-
encode
- Parameters:
content- text to encodeecLevel- error correction level to use- Returns:
QRCoderepresenting 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
-