Package se.digg.dgc.encoding
Interface BarcodeCreator
-
- All Known Implementing Classes:
DefaultBarcodeCreator
public interface BarcodeCreator
An interface for creating barcodes (QR/Aztec).- Author:
- Martin Lindström (martin@idsec.se), Henrik Bengtsson (extern.henrik.bengtsson@digg.se), Henric Norlander (extern.henric.norlander@digg.se)
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Barcode
create(String contents)
Creates a barcode containing the supplied contents.Barcode
create(String contents, Charset characterSet)
Creates a barcode containing the supplied contents which is a string of the given character set.
-
-
-
Method Detail
-
create
Barcode create(String contents) throws BarcodeException
Creates a barcode containing the supplied contents.- Parameters:
contents
- the contents- Returns:
- a Barcode
- Throws:
BarcodeException
- for creation errors
-
create
Barcode create(String contents, Charset characterSet) throws BarcodeException
Creates a barcode containing the supplied contents which is a string of the given character set.- Parameters:
contents
- the contentscharacterSet
- the character set- Returns:
- a Barcode
- Throws:
BarcodeException
- for creation errors
-
-