Class QrCodeDecoderBits


public class QrCodeDecoderBits extends Object
After the data bits have been read this will decode them and extract a meaningful message.
  • Constructor Details

    • QrCodeDecoderBits

      public QrCodeDecoderBits(@Nullable @Nullable String forceEncoding, String defaultEncoding)
      forceEncoding - If null then the default byte encoding is used. If not null then the specified encoding is used.
  • Method Details

    • applyErrorCorrection

      public boolean applyErrorCorrection(QrCode qr)
      Reconstruct the data while applying error correction.
    • decodeMessage

      public boolean decodeMessage(QrCode qr)
      Decodes the message encoded in the corrects bits inside the QR. Results are written to the input QR.
      true if no error occurred
    • alignToBytes

      public static int alignToBytes(int lengthBits)