| java.lang.Object org.jasig.portal.utils.SAX2FilterImpl org.jasig.portal.utils.SAX2DuplicatingFilterImpl
SAX2DuplicatingFilterImpl | public class SAX2DuplicatingFilterImpl extends SAX2FilterImpl (Code) | | This is a remake of org.xml.sax.helpers.XMLFilterImpl
that allows for downward chaining of LexicalHandlers, and further extensions.
Some of the behavior is slightly different from that of hte XMLFilterImpl.
For example this implementation allows to set null handlers. It also redirects parent's handlers
right after instantiation or setParent() invokation, not just at the parse().
See Also: org.xml.sax.helpers.XMLFilterImpl |
Constructor Summary | |
public | SAX2DuplicatingFilterImpl() Construct an empty XML filter, with no parent. | public | SAX2DuplicatingFilterImpl(XMLReader parent) Construct an XML filter with the specified parent. | public | SAX2DuplicatingFilterImpl(ContentHandler ch, EntityResolver er, ErrorHandler eh, LexicalHandler lh, DTDHandler dh, ContentHandler ch2, EntityResolver er2, ErrorHandler eh2, LexicalHandler lh2, DTDHandler dh2) Construct an XML filter with the specified children handlers. | public | SAX2DuplicatingFilterImpl(ContentHandler ch, ContentHandler ch2) Try to imply all of the handlers from ContentHandler alone. |
Method Summary | |
public void | characters(char ch, int start, int length) Filter a character data event. | public void | comment(char ch, int start, int length) Filter comment event. | public void | endCDATA() Filter endCDATA event. | public void | endDTD() | public void | endDocument() Filter an end document event. | public void | endElement(String uri, String localName, String qName) Filter an end element event. | public void | endEntity(String name) Filter endEntity event. | public void | endPrefixMapping(String prefix) Filter an end Namespace prefix mapping event. | public void | error(SAXParseException e) Filter an error event. | public void | fatalError(SAXParseException e) Filter a fatal error event. | public ContentHandler | getContentHandler2() Get the content event handler. | public DTDHandler | getDTDHandler2() Get the current DTD event handler. | public ErrorHandler | getErrorHandler2() Get the current error event handler. | public void | ignorableWhitespace(char ch, int start, int length) Filter an ignorable whitespace event. | public void | notationDecl(String name, String publicId, String systemId) Filter a notation declaration event. | public void | processingInstruction(String target, String data) Filter a processing instruction event. | public InputSource | resolveEntity(String publicId, String systemId) Filter an external entity resolution.
Parameters: publicId - The entity's public identifier, or null. Parameters: systemId - The entity's system identifier. | public void | setAllHandlers(ContentHandler ch, ContentHandler ch2) Try to imply all of the handlers from ContentHandler alone. | public void | setContentHandler2(ContentHandler handler) Set the content event handler. | public void | setDTDHandler2(DTDHandler handler) Set the DTD event handler. | public void | setDocumentLocator(Locator locator) Filter a new document locator event. | public void | setErrorHandler2(ErrorHandler handler) Set the error event handler. | public void | setLexicalHandler2(LexicalHandler handler) Set the lexical handler. | public void | skippedEntity(String name) Filter a skipped entity event. | public void | startCDATA() Filter startCDATA event. | public void | startDTD(String name, String publicId, String systemId) Filter startDTD event. | public void | startDocument() Filter a start document event. | public void | startElement(String uri, String localName, String qName, Attributes atts) Filter a start element event. | public void | startEntity(String name) Filter startEntity event.
Parameters: name - The name of the entity. | public void | startPrefixMapping(String prefix, String uri) Filter a start Namespace prefix mapping event. | public void | unparsedEntityDecl(String name, String publicId, String systemId, String notationName) Filter an unparsed entity declaration event. | public void | warning(SAXParseException e) Filter a warning event. |
characters | public void characters(char ch, int start, int length) throws SAXException(Code) | | Filter a character data event.
Parameters: ch - An array of characters. Parameters: start - The starting position in the array. Parameters: length - The number of characters to use from the array. exception: org.xml.sax.SAXException - The client may throwan exception during processing. See Also: org.xml.sax.ContentHandler.characters |
comment | public void comment(char ch, int start, int length) throws SAXException(Code) | | Filter comment event.
Parameters: ch - An array holding the characters in the comment. Parameters: start - The starting position in the array. Parameters: length - The number of characters to use from the array. exception: SAXException - The application may raise an exception. |
endElement | public void endElement(String uri, String localName, String qName) throws SAXException(Code) | | Filter an end element event.
Parameters: uri - The element's Namespace URI, or the empty string. Parameters: localName - The element's local name, or the empty string. Parameters: qName - The element's qualified (prefixed) name, or the emptystring. exception: org.xml.sax.SAXException - The client may throwan exception during processing. See Also: org.xml.sax.ContentHandler.endElement |
ignorableWhitespace | public void ignorableWhitespace(char ch, int start, int length) throws SAXException(Code) | | Filter an ignorable whitespace event.
Parameters: ch - An array of characters. Parameters: start - The starting position in the array. Parameters: length - The number of characters to use from the array. exception: org.xml.sax.SAXException - The client may throwan exception during processing. See Also: org.xml.sax.ContentHandler.ignorableWhitespace |
setLexicalHandler2 | public void setLexicalHandler2(LexicalHandler handler)(Code) | | Set the lexical handler.
Parameters: handler - The new lexical handler. |
startElement | public void startElement(String uri, String localName, String qName, Attributes atts) throws SAXException(Code) | | Filter a start element event.
Parameters: uri - The element's Namespace URI, or the empty string. Parameters: localName - The element's local name, or the empty string. Parameters: qName - The element's qualified (prefixed) name, or the emptystring. Parameters: atts - The element's attributes. exception: org.xml.sax.SAXException - The client may throwan exception during processing. See Also: org.xml.sax.ContentHandler.startElement |
unparsedEntityDecl | public void unparsedEntityDecl(String name, String publicId, String systemId, String notationName) throws SAXException(Code) | | Filter an unparsed entity declaration event.
Parameters: name - The entity name. Parameters: publicId - The entity's public identifier, or null. Parameters: systemId - The entity's system identifier, or null. Parameters: notationName - The name of the associated notation. exception: org.xml.sax.SAXException - The client may throwan exception during processing. See Also: org.xml.sax.DTDHandler.unparsedEntityDecl |
Methods inherited from org.jasig.portal.utils.SAX2FilterImpl | public void characters(char ch, int start, int length) throws SAXException(Code)(Java Doc) public void comment(char ch, int start, int length) throws SAXException(Code)(Java Doc) public void endCDATA() throws SAXException(Code)(Java Doc) public void endDTD() throws SAXException(Code)(Java Doc) public void endDocument() throws SAXException(Code)(Java Doc) public void endElement(String uri, String localName, String qName) throws SAXException(Code)(Java Doc) public void endEntity(String name) throws SAXException(Code)(Java Doc) public void endPrefixMapping(String prefix) throws SAXException(Code)(Java Doc) public void error(SAXParseException e) throws SAXException(Code)(Java Doc) public void fatalError(SAXParseException e) throws SAXException(Code)(Java Doc) public ContentHandler getContentHandler()(Code)(Java Doc) public DTDHandler getDTDHandler()(Code)(Java Doc) public EntityResolver getEntityResolver()(Code)(Java Doc) public ErrorHandler getErrorHandler()(Code)(Java Doc) public boolean getFeature(String name) throws SAXNotRecognizedException, SAXNotSupportedException(Code)(Java Doc) public XMLReader getParent()(Code)(Java Doc) public Object getProperty(String name) throws SAXNotRecognizedException, SAXNotSupportedException(Code)(Java Doc) public void ignorableWhitespace(char ch, int start, int length) throws SAXException(Code)(Java Doc) public void notationDecl(String name, String publicId, String systemId) throws SAXException(Code)(Java Doc) public void parse(InputSource input) throws SAXException, IOException(Code)(Java Doc) public void parse(String systemId) throws SAXException, IOException(Code)(Java Doc) public void processingInstruction(String target, String data) throws SAXException(Code)(Java Doc) public InputSource resolveEntity(String publicId, String systemId) throws SAXException, IOException(Code)(Java Doc) public void setAllHandlers(ContentHandler ch)(Code)(Java Doc) public void setContentHandler(ContentHandler handler)(Code)(Java Doc) public void setDTDHandler(DTDHandler handler)(Code)(Java Doc) public void setDocumentLocator(Locator locator)(Code)(Java Doc) public void setEntityResolver(EntityResolver resolver)(Code)(Java Doc) public void setErrorHandler(ErrorHandler handler)(Code)(Java Doc) public void setFeature(String name, boolean state) throws SAXNotRecognizedException, SAXNotSupportedException(Code)(Java Doc) public void setLexicalHandler(LexicalHandler handler)(Code)(Java Doc) public void setParent(XMLReader parent)(Code)(Java Doc) public void setProperty(String name, Object value) throws SAXNotRecognizedException, SAXNotSupportedException(Code)(Java Doc) public void skippedEntity(String name) throws SAXException(Code)(Java Doc) public void startCDATA() throws SAXException(Code)(Java Doc) public void startDTD(String name, String publicId, String systemId) throws SAXException(Code)(Java Doc) public void startDocument() throws SAXException(Code)(Java Doc) public void startElement(String uri, String localName, String qName, Attributes atts) throws SAXException(Code)(Java Doc) public void startEntity(String name) throws SAXException(Code)(Java Doc) public void startPrefixMapping(String prefix, String uri) throws SAXException(Code)(Java Doc) public void unparsedEntityDecl(String name, String publicId, String systemId, String notationName) throws SAXException(Code)(Java Doc) public void warning(SAXParseException e) throws SAXException(Code)(Java Doc)
|
|
|