Class DefaultFormatter
- java.lang.Object
-
- com.github.damianwajser.printers.formatters.impl.DefaultFormatter
-
- All Implemented Interfaces:
Formatter
- Direct Known Subclasses:
Base64Formatter
public class DefaultFormatter extends Object implements Formatter
-
-
Constructor Summary
Constructors Constructor Description DefaultFormatter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Stringread(byte[] qr)byte[]write(String text, int width, int height)
-
-
-
Method Detail
-
write
public byte[] write(String text, int width, int height) throws com.google.zxing.WriterException, IOException
- Specified by:
writein interfaceFormatter- Throws:
com.google.zxing.WriterExceptionIOException
-
read
public String read(byte[] qr) throws com.google.zxing.NotFoundException, IOException
- Specified by:
readin interfaceFormatter- Throws:
com.google.zxing.NotFoundExceptionIOException
-
-