Package totalcross.io.device.escpos
Class EscPosQRCode
- java.lang.Object
-
- totalcross.io.device.escpos.EscPosQRCode
-
- All Implemented Interfaces:
EscPosPrintObject
public class EscPosQRCode extends java.lang.Object implements EscPosPrintObject
Printable ESC/POS QR code representation.- Since:
- TotalCross 4.2.0
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceEscPosQRCode.ErrorCorrectionLevelstatic interfaceEscPosQRCode.Size
-
Constructor Summary
Constructors Constructor Description EscPosQRCode(byte[] data)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description EscPosQRCodeerrorCorrectionLevel(byte eccl)EscPosQRCodesize(byte size)voidwrite(java.io.OutputStream out)Writes this printable object to the given output stream.
-
-
-
Method Detail
-
size
public EscPosQRCode size(byte size)
-
errorCorrectionLevel
public EscPosQRCode errorCorrectionLevel(byte eccl)
-
write
public void write(java.io.OutputStream out) throws java.io.IOExceptionDescription copied from interface:EscPosPrintObjectWrites this printable object to the given output stream.- Specified by:
writein interfaceEscPosPrintObject- Parameters:
out- the output stream- Throws:
java.io.IOException- if an I/O error occurs.
-
-