| java.lang.Object org.jasig.portal.utils.SAX2FilterImpl
All known Subclasses: org.jasig.portal.CharacterCachingChannelIncorporationFilter, org.jasig.portal.StructureAttributesIncorporationFilter, org.jasig.portal.utils.SAXDocumentFilter, org.jasig.portal.layout.immutable.ImmutableUserLayoutSAXFilter, org.jasig.portal.utils.SAX2BufferImpl, org.jasig.portal.utils.AbsoluteURLFilter, org.jasig.portal.utils.SAX2DuplicatingFilterImpl, org.jasig.portal.ThemeAttributesIncorporationFilter, org.jasig.portal.StylesheetSet, org.jasig.portal.ChannelSAXStreamFilter, org.jasig.portal.ChannelIncorporationFilter, org.jasig.portal.channels.webproxy.CWebProxyURLFilter,
SAX2FilterImpl | public class SAX2FilterImpl implements XMLFilter,EntityResolver,DTDHandler,ContentHandler,ErrorHandler,LexicalHandler(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 |
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 | getContentHandler() Get the content event handler. | public DTDHandler | getDTDHandler() Get the current DTD event handler. | public EntityResolver | getEntityResolver() Get the current entity resolver. | public ErrorHandler | getErrorHandler() Get the current error event handler. | public boolean | getFeature(String name) Look up the state of a feature.
This will always fail if the parent is null.
Parameters: name - The feature name. | public XMLReader | getParent() Get the parent reader. | public Object | getProperty(String name) Look up the value of a property.
Parameters: name - The property name. | 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 | parse(InputSource input) Parse a document. | public void | parse(String systemId) Parse a document. | 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) Try to imply all of the handlers from ContentHandler alone. | public void | setContentHandler(ContentHandler handler) Set the content event handler. | public void | setDTDHandler(DTDHandler handler) Set the DTD event handler. | public void | setDocumentLocator(Locator locator) Filter a new document locator event. | public void | setEntityResolver(EntityResolver resolver) Set the entity resolver. | public void | setErrorHandler(ErrorHandler handler) Set the error event handler. | public void | setFeature(String name, boolean state) Set the state of a feature. | public void | setLexicalHandler(LexicalHandler handler) Set the lexical handler. | public void | setParent(XMLReader parent) Set the parent reader.
This is the
org.xml.sax.XMLReader XMLReader from which
this filter will obtain its events and to which it will pass its
configuration requests. | public void | setProperty(String name, Object value) Set the value of a property. | 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. |
log | final protected Log log(Code) | | |
SAX2FilterImpl | public SAX2FilterImpl(ContentHandler ch)(Code) | | Try to imply all of the handlers from ContentHandler alone.
|
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 |
setAllHandlers | public void setAllHandlers(ContentHandler ch)(Code) | | Try to imply all of the handlers from ContentHandler alone.
|
setLexicalHandler | public void setLexicalHandler(LexicalHandler handler)(Code) | | Set the lexical handler.
Parameters: handler - The new lexical handler. |
setParent | public void setParent(XMLReader parent)(Code) | | Set the parent reader.
This is the
org.xml.sax.XMLReader XMLReader from which
this filter will obtain its events and to which it will pass its
configuration requests. The parent may itself be another filter.
If there is no parent reader set, any attempt to parse
or to set or get a feature or property will fail.
Parameters: parent - The parent XML reader. exception: java.lang.NullPointerException - If the parent is null. See Also: SAX2FilterImpl.getParent |
startDTD | public void startDTD(String name, String publicId, String systemId) throws SAXException(Code) | | Filter startDTD event.
Parameters: name - The document type name. Parameters: publicId - The declared public identifier for theexternal DTD subset, or null if none was declared. Parameters: systemId - The declared system identifier for theexternal DTD subset, or null if none was declared. exception: SAXException - The application may raise anexception. See Also: SAX2FilterImpl.endDTD See Also: SAX2FilterImpl.startEntity |
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 |
|
|