Constructor and Description |
---|
QRCode() |
Modifier and Type | Method and Description |
---|---|
static void |
createQRCode(String data,
String file,
Map<EncodeHintType,ErrorCorrectionLevel> hint_map,
int qrh,
int qrw)
Generates QRCode.png
|
static String |
gen_qrcode(String[] args) |
static String |
read_from_file(String s)
Reads bytes from input file
and encodes in
Base64 BarcodeFormat |
public static String gen_qrcode(String[] args) throws Exception
args
- Input arguments where
args[0] is the path to Result.zip and args[1] is the output directory to store QRCode.png
Exception
public static String read_from_file(String s) throws IOException
Base64
BarcodeFormats
- Input file pathIOException
public static void createQRCode(String data, String file, Map<EncodeHintType,ErrorCorrectionLevel> hint_map, int qrh, int qrw) throws WriterException, IOException
data
- String to be encoded in QRCodefile
- Output file pathhint_map
- hints used by QRCodeWriter
for efficiencyqrh
- Height of QRCode.pngqrw
- Width of QRCode.pngWriterException
- generally if input data is too bigIOException