org.weborganic.bastille.pageseeder
Class PSHandler
java.lang.Object
org.xml.sax.helpers.DefaultHandler
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
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 interface org.xml.sax.ContentHandler |
characters, endDocument, endElement, endPrefixMapping, ignorableWhitespace, processingInstruction, setDocumentLocator, skippedEntity, startDocument, startElement, startPrefixMapping |
PSHandler
public PSHandler()
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