Compiere 3.1

org.compiere.print
Class PrintDataHandler

java.lang.Object
  extended by org.xml.sax.helpers.DefaultHandler
      extended by 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
PrintDataHandler(Ctx ctx)
          Constructor
 
Method Summary
 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 PrintData
 void 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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PrintDataHandler

public PrintDataHandler(Ctx 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 interface ContentHandler
Overrides:
startElement in class DefaultHandler
Parameters:
uri - namespace
localName - simple name
qName - qualified name
attributes - 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 interface ContentHandler
Overrides:
characters in class DefaultHandler
Parameters:
ch - buffer
start - start
length - 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 interface ContentHandler
Overrides:
endElement in class DefaultHandler
Parameters:
uri - namespace
localName - simple name
qName - qualified name
Throws:
SAXException

Compiere 3.1

Compiere® is a registered trademark of ComPiere, Inc. ©2004-2008 HumanFlash.com All rights reserved.