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 SummaryModifier 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 encode
- ecLevel- 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
 
- 
encodepublic static QRCode encode(String content, ErrorCorrectionLevel ecLevel, Map<EncodeHintType, ?> hints) throws WriterException- Throws:
- WriterException
 
- 
chooseMode
 
-