org.weborganic.bastille.pageseeder
Class PSHandler

java.lang.Object
  extended by org.xml.sax.helpers.DefaultHandler
      extended by org.weborganic.bastille.pageseeder.PSHandler
All Implemented Interfaces:
ContentHandler, DTDHandler, EntityResolver, ErrorHandler
Direct Known Subclasses:
PSXMLCopy

public abstract class PSHandler
extends DefaultHandler
implements ContentHandler

Defines a handler for XML returned by PageSeeder for use by the PS Connector.

Implementations should write the XML output to the XML specified by the #setOutput(XMLWriter) method. This method is called before the handler starts parsing.

Since:
0.6.2

Constructor Summary
PSHandler()
           
 
Method Summary
 XMLWriter getXMLWriter()
           
 void setXMLWriter(XMLWriter xml)
          Sets the XML Writer that this handler should use to write the XML.
 
Methods inherited from class org.xml.sax.helpers.DefaultHandler
characters, endDocument, endElement, endPrefixMapping, error, fatalError, ignorableWhitespace, notationDecl, processingInstruction, resolveEntity, setDocumentLocator, skippedEntity, startDocument, startElement, startPrefixMapping, unparsedEntityDecl, warning
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.xml.sax.ContentHandler
characters, endDocument, endElement, endPrefixMapping, ignorableWhitespace, processingInstruction, setDocumentLocator, skippedEntity, startDocument, startElement, startPrefixMapping
 

Constructor Detail

PSHandler

public PSHandler()
Method Detail

setXMLWriter

public final void setXMLWriter(XMLWriter xml)
Sets the XML Writer that this handler should use to write the XML.

Parameters:
xml - An XML Writer implementation.

getXMLWriter

public final XMLWriter getXMLWriter()
Returns:
The XML Writer