Package io.itpl.qss.client
Class QRGenerator
- java.lang.Object
-
- io.itpl.qss.client.QRGenerator
-
public class QRGenerator extends Object
This is the delegate class for generating new QR Code image. One need to create the QRCofig Object prior to create the Object of this class.
-
-
Constructor Summary
Constructors Constructor Description QRGenerator(QRConfig initialQRConfig)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetBase64EncodedImage(String imageFormat)byte[]getBinaryImage(String imageFormat)QRConfiggetQrConfig()voidinfoLog(String msg)voidsetQRConfig(QRConfig newQRConfig)
-
-
-
Constructor Detail
-
QRGenerator
public QRGenerator(QRConfig initialQRConfig) throws QREncoderException, InvalidQRConfigException
-
-
Method Detail
-
setQRConfig
public void setQRConfig(QRConfig newQRConfig) throws QREncoderException
- Parameters:
newQRConfig- QRConfig object to replace with.- Throws:
QREncoderException- in case QRConfiguration is invalid.
-
getQrConfig
public QRConfig getQrConfig()
- Returns:
- QRConfig Property.
-
getBase64EncodedImage
public String getBase64EncodedImage(String imageFormat) throws IOException, QREncoderException, ImageSizeException, InvalidQRConfigException
-
getBinaryImage
public byte[] getBinaryImage(String imageFormat) throws IOException, QREncoderException, ImageSizeException, InvalidQRConfigException
-
infoLog
public void infoLog(String msg)
-
-