Package org.compiere.print
Class PrintDataHandler
- java.lang.Object
-
- org.xml.sax.helpers.DefaultHandler
-
- org.compiere.print.PrintDataHandler
-
- All Implemented Interfaces:
ContentHandler
,DTDHandler
,EntityResolver
,ErrorHandler
public class PrintDataHandler extends DefaultHandler
SAX Handler for parsing PrintData- Version:
- $Id: PrintDataHandler.java,v 1.2 2006/07/30 00:53:02 jjanke Exp $
- Author:
- Jorg Janke
-
-
Constructor Summary
Constructors Constructor Description PrintDataHandler(Properties ctx)
Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
characters(char[] ch, int start, int length)
Receive notification of character data inside an element.void
endElement(String uri, String localName, String qName)
Receive notification of the end of an element.PrintData
getPrintData()
Get PrintDatavoid
startElement(String uri, String localName, String qName, Attributes attributes)
Receive notification of the start of an element.-
Methods inherited from class org.xml.sax.helpers.DefaultHandler
endDocument, endPrefixMapping, error, fatalError, ignorableWhitespace, notationDecl, processingInstruction, resolveEntity, setDocumentLocator, skippedEntity, startDocument, startPrefixMapping, unparsedEntityDecl, warning
-
-
-
-
Constructor Detail
-
PrintDataHandler
public PrintDataHandler(Properties ctx)
Constructor- Parameters:
ctx
- context
-
-
Method Detail
-
getPrintData
public PrintData getPrintData()
Get PrintData- Returns:
- PrintData
-
startElement
public void startElement(String uri, String localName, String qName, Attributes attributes) throws SAXException
Receive notification of the start of an element.- Specified by:
startElement
in interfaceContentHandler
- Overrides:
startElement
in classDefaultHandler
- Parameters:
uri
- namespacelocalName
- simple nameqName
- qualified nameattributes
- attributes- Throws:
SAXException
-
characters
public void characters(char[] ch, int start, int length) throws SAXException
Receive notification of character data inside an element.- Specified by:
characters
in interfaceContentHandler
- Overrides:
characters
in classDefaultHandler
- Parameters:
ch
- bufferstart
- startlength
- length- Throws:
SAXException
-
endElement
public void endElement(String uri, String localName, String qName) throws SAXException
Receive notification of the end of an element.- Specified by:
endElement
in interfaceContentHandler
- Overrides:
endElement
in classDefaultHandler
- Parameters:
uri
- namespacelocalName
- simple nameqName
- qualified name- Throws:
SAXException
-
-