public class BarcodeUtil extends Object
| Modifier | Constructor and Description |
|---|---|
protected |
BarcodeUtil()
Creates a new BarcodeUtil object.
|
| Modifier and Type | Method and Description |
|---|---|
BarcodeGenerator |
createBarcodeGenerator(org.apache.avalon.framework.configuration.Configuration cfg)
Creates a BarcoderGenerator.
|
static BarcodeGenerator |
createBarcodeGenerator(org.apache.avalon.framework.configuration.Configuration cfg,
BarcodeClassResolver classResolver)
Creates a BarcoderGenerator.
|
DocumentFragment |
generateSVGBarcode(org.apache.avalon.framework.configuration.Configuration cfg,
String msg)
Convenience method to create an SVG barocde as a DOM fragment.
|
BarcodeClassResolver |
getClassResolver()
Returns the class resolver used by this class.
|
static BarcodeUtil |
getInstance()
Returns the default instance of this class.
|
protected BarcodeUtil()
public static BarcodeUtil getInstance()
public BarcodeClassResolver getClassResolver()
public static BarcodeGenerator createBarcodeGenerator(org.apache.avalon.framework.configuration.Configuration cfg, BarcodeClassResolver classResolver) throws BarcodeException, org.apache.avalon.framework.configuration.ConfigurationException
cfg - Configuration object that specifies the barcode to produce.classResolver - The BarcodeClassResolver to use for lookup of
barcode implementations.BarcodeException - if setting up a BarcodeGenerator failsorg.apache.avalon.framework.configuration.ConfigurationException - if something's wrong wth the configurationpublic BarcodeGenerator createBarcodeGenerator(org.apache.avalon.framework.configuration.Configuration cfg) throws org.apache.avalon.framework.configuration.ConfigurationException, BarcodeException
cfg - Configuration object that specifies the barcode to produce.BarcodeException - if setting up a BarcodeGenerator failsorg.apache.avalon.framework.configuration.ConfigurationException - if something's wrong wth the configurationpublic DocumentFragment generateSVGBarcode(org.apache.avalon.framework.configuration.Configuration cfg, String msg) throws org.apache.avalon.framework.configuration.ConfigurationException, BarcodeException
cfg - Configuration object that specifies the barcode to produce.msg - message to encode.BarcodeException - if setting up a BarcodeGenerator failsorg.apache.avalon.framework.configuration.ConfigurationException - if something's wrong wth the configurationCopyright © 2003–2023. All rights reserved.