org.krysalis.barcode4j.xalan
Class BarcodeExt
java.lang.Object
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
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 |
BarcodeExt
public BarcodeExt()
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 configurationmessage
- 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 contextelem
- the extension element
- Returns:
- a DOM fragment containing the SVG barcode
- Throws:
javax.xml.transform.TransformerException
- if an Exception occurs
during barcode generation
Copyright © 2000-2010 Jeremias Maerki. All rights reserved.