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

    All Methods Static Methods Concrete Methods
    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)`

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

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

- - ### Method Detail

    - #### 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)

Copyright © 2007–2018. All rights reserved.