Class PSExtensionHandler
java.lang.Object
org.xml.sax.helpers.DefaultHandler
org.apache.fop.render.ps.extensions.PSExtensionHandler
- All Implemented Interfaces:
ContentHandlerFactory.ObjectSource
,ContentHandler
,DTDHandler
,EntityResolver
,ErrorHandler
public class PSExtensionHandler
extends DefaultHandler
implements ContentHandlerFactory.ObjectSource
ContentHandler (parser) for restoring PSExtension objects from XML.
-
Field Summary
Modifier and TypeFieldDescriptionprotected static final org.apache.commons.logging.Log
Logger instance -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
characters
(char[] ch, int start, int length) void
void
endElement
(String uri, String localName, String qName) void
Set a listener which gets notified when the object is fully built.void
startElement
(String uri, String localName, String qName, Attributes attributes) Methods inherited from class org.xml.sax.helpers.DefaultHandler
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
Methods inherited from interface org.xml.sax.ContentHandler
declaration
-
Field Details
-
log
protected static final org.apache.commons.logging.Log logLogger instance
-
-
Constructor Details
-
PSExtensionHandler
public PSExtensionHandler()
-
-
Method Details
-
startElement
public void startElement(String uri, String localName, String qName, Attributes attributes) throws SAXException - Specified by:
startElement
in interfaceContentHandler
- Overrides:
startElement
in classDefaultHandler
- Throws:
SAXException
-
endElement
- Specified by:
endElement
in interfaceContentHandler
- Overrides:
endElement
in classDefaultHandler
- Throws:
SAXException
-
characters
- Specified by:
characters
in interfaceContentHandler
- Overrides:
characters
in classDefaultHandler
- Throws:
SAXException
-
endDocument
- Specified by:
endDocument
in interfaceContentHandler
- Overrides:
endDocument
in classDefaultHandler
- Throws:
SAXException
-
getObject
- Specified by:
getObject
in interfaceContentHandlerFactory.ObjectSource
- Returns:
- the object parsed from the SAX stream (call valid after parsing)
-
setObjectBuiltListener
Set a listener which gets notified when the object is fully built.- Specified by:
setObjectBuiltListener
in interfaceContentHandlerFactory.ObjectSource
- Parameters:
listener
- the listener which gets notified
-