|
barcode4j 2.1.0 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.krysalis.barcode4j.BarcodeUtil
public class BarcodeUtil
This is a convenience class to generate barcodes. It is implemented as Singleton to cache the BarcodeClassResolver. However, the class also contains a set of static methods which you can use of you manage your own BarcodeClassResolver.
| Constructor Summary | |
|---|---|
protected |
BarcodeUtil()
Creates a new BarcodeUtil object. |
| Method Summary | |
|---|---|
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. |
org.w3c.dom.DocumentFragment |
generateSVGBarcode(org.apache.avalon.framework.configuration.Configuration cfg,
java.lang.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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
protected BarcodeUtil()
| Method Detail |
|---|
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 fails
org.apache.avalon.framework.configuration.ConfigurationException - if something's wrong wth the configuration
public 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 fails
org.apache.avalon.framework.configuration.ConfigurationException - if something's wrong wth the configuration
public org.w3c.dom.DocumentFragment generateSVGBarcode(org.apache.avalon.framework.configuration.Configuration cfg,
java.lang.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 fails
org.apache.avalon.framework.configuration.ConfigurationException - if something's wrong wth the configuration
|
barcode4j 2.1.0 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||