Package io.itpl.qss.utils
Class QRUtils
- java.lang.Object
-
- io.itpl.qss.utils.QRUtils
-
public class QRUtils extends Object
-
-
Constructor Summary
Constructors Constructor Description QRUtils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static StringgetCurrentTimeStamp()static BufferedImagegetImageFromFile(String path)static BufferedImagegetImageFromURL(String url)static StyleConfiggetItplStyle()static BufferedImagegetOverlayImage(BufferedImage qrImage, BufferedImage overly, StyleConfig styleConfig)static BufferedImagegetOverlayImage(BufferedImage qrImage, String path)static BufferedImagegetOverlayImage(BufferedImage qrImage, String url, StyleConfig styleConfig)static BufferedImagegetOverlayImageURL(BufferedImage qrImage, String url, StyleConfig styleConfig)static StringreadBinaryFile(String path)
-
-
-
Method Detail
-
getImageFromURL
public static BufferedImage getImageFromURL(String url) throws IOException
- Throws:
IOException
-
getImageFromFile
public static BufferedImage getImageFromFile(String path) throws IOException
- Throws:
IOException
-
getCurrentTimeStamp
public static String getCurrentTimeStamp()
-
getOverlayImageURL
public static BufferedImage getOverlayImageURL(BufferedImage qrImage, String url, StyleConfig styleConfig) throws IOException, ImageSizeException
- Throws:
IOExceptionImageSizeException
-
getOverlayImage
public static BufferedImage getOverlayImage(BufferedImage qrImage, String url, StyleConfig styleConfig) throws IOException, ImageSizeException
- Throws:
IOExceptionImageSizeException
-
getOverlayImage
public static BufferedImage getOverlayImage(BufferedImage qrImage, BufferedImage overly, StyleConfig styleConfig) throws IOException, ImageSizeException
- Throws:
IOExceptionImageSizeException
-
getOverlayImage
public static BufferedImage getOverlayImage(BufferedImage qrImage, String path) throws IOException, ImageSizeException
- Throws:
IOExceptionImageSizeException
-
getItplStyle
public static StyleConfig getItplStyle()
-
readBinaryFile
public static String readBinaryFile(String path) throws IOException
- Throws:
IOException
-
-