Class QRCodeGenerator
java.lang.Object
org.tavall.couriers.api.qr.generate.QRCodeGenerator
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateQRCodeWithData(String data) createQRCodeWithData(String data, int width, int height) createQRCodeWithData(String data, String imageFormat, com.google.zxing.BarcodeFormat barcodeFormat, int qrWidth, int qrHeight) Generates a QR Code for custom data string and caches the result.createQRCodeWithUUID(int width, int height) createQRCodeWithUUID(String path) createQRCodeWithUUID(GenerateUUID newGeneratedUUID, String imageFormat, com.google.zxing.BarcodeFormat barcodeFormat, int qrWidth, int qrHeight) Generates a QR Code for a UUID and caches the result.
-
Constructor Details
-
QRCodeGenerator
public QRCodeGenerator()
-
-
Method Details
-
createQRCodeWithUUID
public QRMetaData createQRCodeWithUUID(GenerateUUID newGeneratedUUID, String imageFormat, com.google.zxing.BarcodeFormat barcodeFormat, int qrWidth, int qrHeight) throws Exception Generates a QR Code for a UUID and caches the result. Runs asynchronously in a Virtual Thread scope.- Throws:
Exception
-
createQRCodeWithData
public QRMetaData createQRCodeWithData(String data, String imageFormat, com.google.zxing.BarcodeFormat barcodeFormat, int qrWidth, int qrHeight) throws Exception Generates a QR Code for custom data string and caches the result.- Throws:
Exception
-
createQRCodeWithUUID
- Throws:
Exception
-
createQRCodeWithUUID
- Throws:
Exception
-
createQRCodeWithUUID
- Throws:
Exception
-
createQRCodeWithData
- Throws:
Exception
-
createQRCodeWithData
- Throws:
Exception
-