barcode4j 2.1.0

org.krysalis.barcode4j.xalan
Class BarcodeExt

java.lang.Object
  extended by org.krysalis.barcode4j.xalan.BarcodeExt

public class BarcodeExt
extends java.lang.Object

This class is an Extension for Apache XML Xalan to generate SVG barcodes.

Version:
$Id: BarcodeExt.java,v 1.5 2008/12/10 15:52:37 jmaerki Exp $
Author:
Jeremias Maerki

Constructor Summary
BarcodeExt()
           
 
Method Summary
 org.w3c.dom.DocumentFragment barcode(org.apache.xalan.extensions.XSLProcessorContext context, org.apache.xalan.templates.ElemExtensionCall elem)
          Extension element: Generates a barcode in SVG format as a DOM fragment.
 org.w3c.dom.DocumentFragment generate(org.w3c.dom.NodeList nl, java.lang.String message)
          Generates a barcode in SVG format as a DOM fragment.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BarcodeExt

public BarcodeExt()
Method Detail

generate

public org.w3c.dom.DocumentFragment generate(org.w3c.dom.NodeList nl,
                                             java.lang.String message)
                                      throws org.xml.sax.SAXException
Generates a barcode in SVG format as a DOM fragment.

Parameters:
nl - node list with the XML configuration
message - the message to encode
Returns:
the DOM fragment
Throws:
org.xml.sax.SAXException - if generation fails

barcode

public org.w3c.dom.DocumentFragment barcode(org.apache.xalan.extensions.XSLProcessorContext context,
                                            org.apache.xalan.templates.ElemExtensionCall elem)
                                     throws javax.xml.transform.TransformerException
Extension element: Generates a barcode in SVG format as a DOM fragment.

Parameters:
context - the processor context
elem - the extension element
Returns:
a DOM fragment containing the SVG barcode
Throws:
javax.xml.transform.TransformerException - if an Exception occurs during barcode generation

barcode4j 2.1.0

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