Class QrSegment
java.lang.Object
eu.webtoolkit.jwt.thirdparty.qrcodegen.QrSegment
A segment of character/binary/control data in a QR Code symbol. Instances of this class are
immutable. The mid-level way to create a segment is to take the payload data and call a static
factory function such as QrSegment::makeNumeric(). The low-level way to create a segment is to
custom-make the bit buffer and call the QrSegment() constructor with appropriate values. This
segment class imposes no length restrictions, but QR Codes have restrictions. Even in the most
favorable conditions, a QR Code can only hold 7089 characters of data. Any segment longer than
this is meaningless for the purpose of generating QR Codes.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetData()eu.webtoolkit.jwt.thirdparty.qrcodegen.QrSegment.ModegetMode()intstatic intgetTotalBits(List<QrSegment> segs, int version) static booleanisAlphanumeric(String text) static booleanstatic QrSegmentmakeAlphanumeric(String text) static QrSegmentstatic QrSegmentmakeEci(long assignVal) static QrSegmentmakeNumeric(String digits) makeSegments(String text)
-
Constructor Details
-
QrSegment
-
-
Method Details
-
makeBytes
-
makeNumeric
-
makeAlphanumeric
-
makeSegments
-
makeEci
-
isNumeric
-
isAlphanumeric
-
getMode
public eu.webtoolkit.jwt.thirdparty.qrcodegen.QrSegment.Mode getMode() -
getNumChars
public int getNumChars() -
getData
-
getTotalBits
-