Encoder (ZXing 3.5.2 API)
Description: declaration: package: com.google.zxing.qrcode.encoder, class: Encoder

Package com.google.zxing.qrcode.encoder

# Class Encoder

java.lang.Object
com.google.zxing.qrcode.encoder.Encoder

public final class Encoder extends Object

Author:
  satorux@google.com (Satoru Takabayashi) - creator, dswitkin@google.com (Daniel Switkin) - ported from C++

- ## Method Summary

  Modifier and Type
  Method
  Description
  `static Mode`
  `chooseMode(String content)`
  `static QRCode`
  `encode(String content, ErrorCorrectionLevel ecLevel)`
  `static QRCode`
  `encode(String content, ErrorCorrectionLevel ecLevel, Map<EncodeHintType,?> hints)`

  ### Methods inherited from class java.lang.Object

  `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- ## Method Details

  - ### encode

    public static QRCode encode(String content, ErrorCorrectionLevel ecLevel) throws WriterException
    Parameters:
      `content` - text to encode
      `ecLevel` - 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

    public static Mode chooseMode(String content)