barcode4j 2.1.0

org.krysalis.barcode4j.ant
Class BarcodeTask

java.lang.Object
  extended by Task
      extended by org.krysalis.barcode4j.ant.BarcodeTask

public class BarcodeTask
extends Task

Ant task for Barcode4J.

Author:
Didier Donsez

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

BarcodeTask

public BarcodeTask()
Method Detail

execute

public void execute()
             throws BuildException
Handles the command line. The method calls the exit handler upon completion.

Throws:
BuildException - if an error occurs

setSymbol

public void setSymbol(java.lang.String symbol)
Sets the desired symbology.

Parameters:
symbol - the symbology to set
See Also:
http://barcode4j.sourceforge.net/latest/barcode-xml.html

setConfigurationFile

public void setConfigurationFile(java.io.File configurationFile)
Sets the configuration file to use for complex configuration.

Parameters:
configurationFile - the configurationFile to set

setDpi

public void setDpi(int dpi)
Sets the resolution (used when creating bitmap output).

Parameters:
dpi - the dpi to set

setFormat

public void setFormat(java.lang.String format)
Sets the desired output format.

A selection of valid output formats:

Parameters:
format - the format (a MIME type or a supported format identifier)

setOutput

public void setOutput(java.io.File output)
Sets the target file.

Parameters:
output - the output

setBw

public void setBw(boolean bw)
Controls whether to generate monochrome (black and white, 1 bit) images. Only applicable when generating bitmap formats.

Parameters:
bw - true for monochrome images

setMessage

public void setMessage(java.lang.String message)
Sets the barcode message.

Parameters:
message - the message

addText

public void addText(java.lang.String text)
Adds text to the current message.

Parameters:
text - the text to add to the message

barcode4j 2.1.0

Copyright © 2000-2010 Jeremias Maerki. All rights reserved.