|
barcode4j 2.1.0 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.ObjectTask
org.krysalis.barcode4j.ant.BarcodeTask
public class BarcodeTask
Ant task for Barcode4J.
| Constructor Summary | |
|---|---|
BarcodeTask()
|
|
| Method Summary | |
|---|---|
void |
addText(java.lang.String text)
Adds text to the current message. |
void |
execute()
Handles the command line. |
void |
setBw(boolean bw)
Controls whether to generate monochrome (black and white, 1 bit) images. |
void |
setConfigurationFile(java.io.File configurationFile)
Sets the configuration file to use for complex configuration. |
void |
setDpi(int dpi)
Sets the resolution (used when creating bitmap output). |
void |
setFormat(java.lang.String format)
Sets the desired output format. |
void |
setMessage(java.lang.String message)
Sets the barcode message. |
void |
setOutput(java.io.File output)
Sets the target file. |
void |
setSymbol(java.lang.String symbol)
Sets the desired symbology. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public BarcodeTask()
| Method Detail |
|---|
public void execute()
throws BuildException
BuildException - if an error occurspublic void setSymbol(java.lang.String symbol)
symbol - the symbology to sethttp://barcode4j.sourceforge.net/latest/barcode-xml.htmlpublic void setConfigurationFile(java.io.File configurationFile)
configurationFile - the configurationFile to setpublic void setDpi(int dpi)
dpi - the dpi to setpublic void setFormat(java.lang.String format)
A selection of valid output formats:
format - the format (a MIME type or a supported format identifier)public void setOutput(java.io.File output)
output - the outputpublic void setBw(boolean bw)
bw - true for monochrome imagespublic void setMessage(java.lang.String message)
message - the messagepublic void addText(java.lang.String text)
text - the text to add to the message
|
barcode4j 2.1.0 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||