Java Doc for SAX2DuplicatingFilterImpl.java in  » Portal » uPortal_rel-2-6-1-GA » org » jasig » portal » utils » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » Portal » uPortal_rel 2 6 1 GA » org.jasig.portal.utils 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


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


Field Summary
protected  ContentHandlercontentHandler2
    
protected  DTDHandlerdtdHandler2
    
protected  EntityResolverentityResolver2
    
protected  ErrorHandlererrorHandler2
    
protected  LexicalHandlerlexicalHandler2
    

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  voidcharacters(char ch, int start, int length)
     Filter a character data event.
public  voidcomment(char ch, int start, int length)
     Filter comment event.
public  voidendCDATA()
     Filter endCDATA event.
public  voidendDTD()
    
public  voidendDocument()
     Filter an end document event.
public  voidendElement(String uri, String localName, String qName)
     Filter an end element event.
public  voidendEntity(String name)
     Filter endEntity event.
public  voidendPrefixMapping(String prefix)
     Filter an end Namespace prefix mapping event.
public  voiderror(SAXParseException e)
     Filter an error event.
public  voidfatalError(SAXParseException e)
     Filter a fatal error event.
public  ContentHandlergetContentHandler2()
     Get the content event handler.
public  DTDHandlergetDTDHandler2()
     Get the current DTD event handler.
public  ErrorHandlergetErrorHandler2()
     Get the current error event handler.
public  voidignorableWhitespace(char ch, int start, int length)
     Filter an ignorable whitespace event.
public  voidnotationDecl(String name, String publicId, String systemId)
     Filter a notation declaration event.
public  voidprocessingInstruction(String target, String data)
     Filter a processing instruction event.
public  InputSourceresolveEntity(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  voidsetAllHandlers(ContentHandler ch, ContentHandler ch2)
     Try to imply all of the handlers from ContentHandler alone.
public  voidsetContentHandler2(ContentHandler handler)
     Set the content event handler.
public  voidsetDTDHandler2(DTDHandler handler)
     Set the DTD event handler.
public  voidsetDocumentLocator(Locator locator)
     Filter a new document locator event.
public  voidsetErrorHandler2(ErrorHandler handler)
     Set the error event handler.
public  voidsetLexicalHandler2(LexicalHandler handler)
     Set the lexical handler.
public  voidskippedEntity(String name)
     Filter a skipped entity event.
public  voidstartCDATA()
     Filter startCDATA event.
public  voidstartDTD(String name, String publicId, String systemId)
     Filter startDTD event.
public  voidstartDocument()
     Filter a start document event.
public  voidstartElement(String uri, String localName, String qName, Attributes atts)
     Filter a start element event.
public  voidstartEntity(String name)
     Filter startEntity event.
Parameters:
  name - The name of the entity.
public  voidstartPrefixMapping(String prefix, String uri)
     Filter a start Namespace prefix mapping event.
public  voidunparsedEntityDecl(String name, String publicId, String systemId, String notationName)
     Filter an unparsed entity declaration event.
public  voidwarning(SAXParseException e)
     Filter a warning event.

Field Detail
contentHandler2
protected ContentHandler contentHandler2(Code)



dtdHandler2
protected DTDHandler dtdHandler2(Code)



entityResolver2
protected EntityResolver entityResolver2(Code)



errorHandler2
protected ErrorHandler errorHandler2(Code)



lexicalHandler2
protected LexicalHandler lexicalHandler2(Code)




Constructor Detail
SAX2DuplicatingFilterImpl
public SAX2DuplicatingFilterImpl()(Code)
Construct an empty XML filter, with no parent.

This filter will have no parent: you must assign a parent before you start a parse or do any configuration with setFeature or setProperty.


See Also:   org.xml.sax.XMLReader.setFeature
See Also:   org.xml.sax.XMLReader.setProperty



SAX2DuplicatingFilterImpl
public SAX2DuplicatingFilterImpl(XMLReader parent)(Code)
Construct an XML filter with the specified parent.
See Also:   SAX2DuplicatingFilterImpl.setParent(XMLReader)
See Also:   SAX2DuplicatingFilterImpl.getParent()



SAX2DuplicatingFilterImpl
public SAX2DuplicatingFilterImpl(ContentHandler ch, EntityResolver er, ErrorHandler eh, LexicalHandler lh, DTDHandler dh, ContentHandler ch2, EntityResolver er2, ErrorHandler eh2, LexicalHandler lh2, DTDHandler dh2)(Code)
Construct an XML filter with the specified children handlers.
See Also:   SAX2DuplicatingFilterImpl.setContentHandler(ContentHandler)
See Also:   SAX2DuplicatingFilterImpl.setDTDHandler(DTDHandler)
See Also:   SAX2DuplicatingFilterImpl.setErrorHandler(ErrorHandler)
See Also:   SAX2DuplicatingFilterImpl.setEntityResolver(EntityResolver)
See Also:   SAX2DuplicatingFilterImpl.setLexicalHandler(LexicalHandler)



SAX2DuplicatingFilterImpl
public SAX2DuplicatingFilterImpl(ContentHandler ch, ContentHandler ch2)(Code)
Try to imply all of the handlers from ContentHandler alone.




Method Detail
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.



endCDATA
public void endCDATA() throws SAXException(Code)
Filter endCDATA event.
exception:
  SAXException - The application may raise an exception.
See Also:   SAX2DuplicatingFilterImpl.startCDATA



endDTD
public void endDTD() throws SAXException(Code)
Filter endDTD event
exception:
  SAXException - The application may raise an exception.
See Also:   SAX2DuplicatingFilterImpl.startDTD



endDocument
public void endDocument() throws SAXException(Code)
Filter an end document event.
exception:
  org.xml.sax.SAXException - The client may throwan exception during processing.
See Also:   org.xml.sax.ContentHandler.endDocument



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



endEntity
public void endEntity(String name) throws SAXException(Code)
Filter endEntity event.
Parameters:
  name - The name of the entity that is ending.
exception:
  SAXException - The application may raise an exception.
See Also:   SAX2DuplicatingFilterImpl.startEntity



endPrefixMapping
public void endPrefixMapping(String prefix) throws SAXException(Code)
Filter an end Namespace prefix mapping event.
Parameters:
  prefix - The Namespace prefix.
exception:
  org.xml.sax.SAXException - The client may throwan exception during processing.
See Also:   org.xml.sax.ContentHandler.endPrefixMapping



error
public void error(SAXParseException e) throws SAXException(Code)
Filter an error event.
Parameters:
  e - The error as an exception.
exception:
  org.xml.sax.SAXException - The client may throwan exception during processing.
See Also:   org.xml.sax.ErrorHandler.error



fatalError
public void fatalError(SAXParseException e) throws SAXException(Code)
Filter a fatal error event.
Parameters:
  e - The error as an exception.
exception:
  org.xml.sax.SAXException - The client may throwan exception during processing.
See Also:   org.xml.sax.ErrorHandler.fatalError



getContentHandler2
public ContentHandler getContentHandler2()(Code)
Get the content event handler. The current content handler, or null if none was set.
See Also:   org.xml.sax.XMLReader.getContentHandler



getDTDHandler2
public DTDHandler getDTDHandler2()(Code)
Get the current DTD event handler. The current DTD handler, or null if none was set.
See Also:   org.xml.sax.XMLReader.getDTDHandler



getErrorHandler2
public ErrorHandler getErrorHandler2()(Code)
Get the current error event handler. The current error handler, or null if none was set.
See Also:   org.xml.sax.XMLReader.getErrorHandler



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



notationDecl
public void notationDecl(String name, String publicId, String systemId) throws SAXException(Code)
Filter a notation declaration event.
Parameters:
  name - The notation name.
Parameters:
  publicId - The notation's public identifier, or null.
Parameters:
  systemId - The notation's system identifier, or null.
exception:
  org.xml.sax.SAXException - The client may throwan exception during processing.
See Also:   org.xml.sax.DTDHandler.notationDecl



processingInstruction
public void processingInstruction(String target, String data) throws SAXException(Code)
Filter a processing instruction event.
Parameters:
  target - The processing instruction target.
Parameters:
  data - The text following the target.
exception:
  org.xml.sax.SAXException - The client may throwan exception during processing.
See Also:   org.xml.sax.ContentHandler.processingInstruction



resolveEntity
public InputSource resolveEntity(String publicId, String systemId) throws SAXException, IOException(Code)
Filter an external entity resolution.
Parameters:
  publicId - The entity's public identifier, or null.
Parameters:
  systemId - The entity's system identifier. A new InputSource or null for the default.
exception:
  org.xml.sax.SAXException - The client may throwan exception during processing.
exception:
  java.io.IOException - The client may throw anI/O-related exception while obtaining thenew InputSource.
See Also:   org.xml.sax.EntityResolver.resolveEntity



setAllHandlers
public void setAllHandlers(ContentHandler ch, ContentHandler ch2)(Code)
Try to imply all of the handlers from ContentHandler alone.



setContentHandler2
public void setContentHandler2(ContentHandler handler)(Code)
Set the content event handler.
Parameters:
  handler - The new content handler.
See Also:   org.xml.sax.XMLReader.setContentHandler



setDTDHandler2
public void setDTDHandler2(DTDHandler handler)(Code)
Set the DTD event handler.
Parameters:
  handler - The new DTD handler.
See Also:   org.xml.sax.XMLReader.setDTDHandler



setDocumentLocator
public void setDocumentLocator(Locator locator)(Code)
Filter a new document locator event.
Parameters:
  locator - The document locator.
See Also:   org.xml.sax.ContentHandler.setDocumentLocator



setErrorHandler2
public void setErrorHandler2(ErrorHandler handler)(Code)
Set the error event handler.
Parameters:
  handler - The new error handler.
See Also:   org.xml.sax.XMLReader.setErrorHandler



setLexicalHandler2
public void setLexicalHandler2(LexicalHandler handler)(Code)
Set the lexical handler.
Parameters:
  handler - The new lexical handler.



skippedEntity
public void skippedEntity(String name) throws SAXException(Code)
Filter a skipped entity event.
Parameters:
  name - The name of the skipped entity.
exception:
  org.xml.sax.SAXException - The client may throwan exception during processing.
See Also:   org.xml.sax.ContentHandler.skippedEntity



startCDATA
public void startCDATA() throws SAXException(Code)
Filter startCDATA event.
exception:
  SAXException - The application may raise an exception.
See Also:   SAX2DuplicatingFilterImpl.endCDATA



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:   SAX2DuplicatingFilterImpl.endDTD
See Also:   SAX2DuplicatingFilterImpl.startEntity



startDocument
public void startDocument() throws SAXException(Code)
Filter a start document event.
exception:
  org.xml.sax.SAXException - The client may throwan exception during processing.
See Also:   org.xml.sax.ContentHandler.startDocument



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



startEntity
public void startEntity(String name) throws SAXException(Code)
Filter startEntity event.
Parameters:
  name - The name of the entity. If it is a parameterentity, the name will begin with '%'.
exception:
  SAXException - The application may raise an exception.
See Also:   SAX2DuplicatingFilterImpl.endEntity
See Also:   org.xml.sax.ext.DeclHandler.internalEntityDecl
See Also:   org.xml.sax.ext.DeclHandler.externalEntityDecl



startPrefixMapping
public void startPrefixMapping(String prefix, String uri) throws SAXException(Code)
Filter a start Namespace prefix mapping event.
Parameters:
  prefix - The Namespace prefix.
Parameters:
  uri - The Namespace URI.
exception:
  org.xml.sax.SAXException - The client may throwan exception during processing.
See Also:   org.xml.sax.ContentHandler.startPrefixMapping



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



warning
public void warning(SAXParseException e) throws SAXException(Code)
Filter a warning event.
Parameters:
  e - The nwarning as an exception.
exception:
  org.xml.sax.SAXException - The client may throwan exception during processing.
See Also:   org.xml.sax.ErrorHandler.warning



Fields inherited from org.jasig.portal.utils.SAX2FilterImpl
protected ContentHandler contentHandler(Code)(Java Doc)
protected DTDHandler dtdHandler(Code)(Java Doc)
protected EntityResolver entityResolver(Code)(Java Doc)
protected ErrorHandler errorHandler(Code)(Java Doc)
protected LexicalHandler lexicalHandler(Code)(Java Doc)
protected Locator locator(Code)(Java Doc)
final protected Log log(Code)(Java Doc)

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)

Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.