|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.apache.tools.ant.ProjectComponent
org.apache.tools.ant.Task
org.krysalis.barcode4j.ant.BarcodeTask
public class BarcodeTask
Ant task for Barcode4J.
| Field Summary |
|---|
| Fields inherited from class org.apache.tools.ant.Task |
|---|
target, taskName, taskType, wrapper |
| Fields inherited from class org.apache.tools.ant.ProjectComponent |
|---|
description, location, project |
| 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 org.apache.tools.ant.Task |
|---|
bindToOwner, getOwningTarget, getRuntimeConfigurableWrapper, getTaskName, getTaskType, getWrapper, handleErrorFlush, handleErrorOutput, handleFlush, handleInput, handleOutput, init, isInvalid, log, log, log, log, maybeConfigure, perform, reconfigure, setOwningTarget, setRuntimeConfigurableWrapper, setTaskName, setTaskType |
| Methods inherited from class org.apache.tools.ant.ProjectComponent |
|---|
clone, getDescription, getLocation, getProject, setDescription, setLocation, setProject |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public BarcodeTask()
| Method Detail |
|---|
public void execute()
throws org.apache.tools.ant.BuildException
execute in class org.apache.tools.ant.Taskorg.apache.tools.ant.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
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||