Java Doc for AbstractSAXParser.java in  » XML » xerces-2_9_1 » org » apache » xerces » parsers » 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 » XML » xerces 2_9_1 » org.apache.xerces.parsers 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.apache.xerces.parsers.XMLParser
      org.apache.xerces.parsers.AbstractXMLDocumentParser
         org.apache.xerces.parsers.AbstractSAXParser

All known Subclasses:   org.apache.xerces.parsers.SAXParser,
AbstractSAXParser
abstract public class AbstractSAXParser extends AbstractXMLDocumentParser implements PSVIProvider,Parser,XMLReader(Code)
This is the base class of all SAX parsers. It implements both the SAX1 and SAX2 parser functionality, while the actual pipeline is defined in the parser configuration.
author:
   Arnaud Le Hors, IBM
author:
   Andy Clark, IBM
version:
   $Id: AbstractSAXParser.java 548086 2007-06-17 18:17:43Z mrglavas $

Inner Class :final protected static class LocatorProxy implements Locator2
Inner Class :final protected static class AttributesProxy implements AttributeList,Attributes2

Field Summary
final protected static  StringALLOW_UE_AND_NOTATION_EVENTS
     Feature identifier: allow notation and unparsed entity events to be sent out of order.
final protected static  StringDECLARATION_HANDLER
     Property id: declaration handler.
final protected static  StringDOM_NODE
     Property id: DOM node.
final protected static  StringLEXICAL_HANDLER
     Property id: lexical handler.
final protected static  StringNAMESPACES
     Feature identifier: namespaces.
final protected static  StringSTRING_INTERNING
     Feature id: string interning.
protected  ContentHandlerfContentHandler
     Content handler.
protected  org.xml.sax.DTDHandlerfDTDHandler
     DTD handler.
protected  DeclHandlerfDeclHandler
     Decl handler.
protected  SymbolHashfDeclaredAttrs
    
protected  DocumentHandlerfDocumentHandler
     Document handler.
protected  LexicalHandlerfLexicalHandler
     Lexical handler.
protected  booleanfLexicalHandlerParameterEntities
     Lexical handler parameter entities.
protected  NamespaceContextfNamespaceContext
    
protected  booleanfNamespacePrefixes
     Namespace prefixes.
protected  booleanfNamespaces
     Namespaces.
protected  booleanfParseInProgress
     True if a parse is in progress.
protected  QNamefQName
    
protected  booleanfResolveDTDURIs
     Resolve DTD URIs.
protected  booleanfStandalone
     Standalone document declaration.
protected  booleanfUseEntityResolver2
     Use EntityResolver2.
protected  StringfVersion
    
protected  booleanfXMLNSURIs
     XMLNS URIs: Namespace declarations in the http://www.w3.org/2000/xmlns/ namespace.

Constructor Summary
protected  AbstractSAXParser(XMLParserConfiguration config)
     Default constructor.

Method Summary
public  voidattributeDecl(String elementName, String attributeName, String type, String[] enumeration, String defaultType, XMLString defaultValue, XMLString nonNormalizedDefaultValue, Augmentations augs)
     An attribute declaration.
Parameters:
  elementName - The name of the element that this attributeis associated with.
Parameters:
  attributeName - The name of the attribute.
Parameters:
  type - The attribute type.
public  voidcharacters(XMLString text, Augmentations augs)
     Character content.
public  voidcomment(XMLString text, Augmentations augs)
     A comment.
public  voiddoctypeDecl(String rootElement, String publicId, String systemId, Augmentations augs)
     Notifies of the presence of the DOCTYPE line in the document.
public  voidelementDecl(String name, String contentModel, Augmentations augs)
     An element declaration.
public  voidendCDATA(Augmentations augs)
     The end of a CDATA section.
public  voidendDTD(Augmentations augs)
     The end of the DTD.
public  voidendDocument(Augmentations augs)
     The end of the document.
public  voidendElement(QName element, Augmentations augs)
     The end of an element.
public  voidendExternalSubset(Augmentations augs)
     The end of the DTD external subset.
public  voidendGeneralEntity(String name, Augmentations augs)
     This method notifies the end of an entity.
final protected  voidendNamespaceMapping()
    
public  voidendParameterEntity(String name, Augmentations augs)
     This method notifies the end of an entity.
public  voidexternalEntityDecl(String name, XMLResourceIdentifier identifier, Augmentations augs)
     An external entity declaration.
Parameters:
  name - The name of the entity.
public  AttributePSVIgetAttributePSVI(int index)
    
public  AttributePSVIgetAttributePSVIByName(String uri, String localname)
    
public  ContentHandlergetContentHandler()
     Return the current content handler.
public  DTDHandlergetDTDHandler()
     Return the current DTD handler.
protected  DeclHandlergetDeclHandler()
     Returns the DTD declaration event handler.
public  ElementPSVIgetElementPSVI()
    
public  EntityResolvergetEntityResolver()
     Return the current entity resolver.
public  ErrorHandlergetErrorHandler()
     Return the current error handler.
public  booleangetFeature(String featureId)
     Query the state of a feature. Query the current state of any feature in a SAX2 parser.
protected  LexicalHandlergetLexicalHandler()
     Returns the lexical handler.
public  ObjectgetProperty(String propertyId)
     Query the value of a property. Return the current value of a property in a SAX2 parser. The parser might not recognize the property.
Parameters:
  propertyId - The unique identifier (URI) of the propertybeing set.
public  voidignorableWhitespace(XMLString text, Augmentations augs)
     Ignorable whitespace.
public  voidinternalEntityDecl(String name, XMLString text, XMLString nonNormalizedText, Augmentations augs)
     An internal entity declaration.
Parameters:
  name - The name of the entity.
public  voidnotationDecl(String name, XMLResourceIdentifier identifier, Augmentations augs)
    
public  voidparse(String systemId)
     Parses the input source specified by the given system identifier.
public  voidparse(InputSource inputSource)
    
public  voidprocessingInstruction(String target, XMLString data, Augmentations augs)
     A processing instruction.
public  voidreset()
     Reset all components before parsing.
public  voidsetContentHandler(ContentHandler contentHandler)
     Allow an application to register a content event handler.
public  voidsetDTDHandler(DTDHandler dtdHandler)
     Allow an application to register a DTD event handler.
protected  voidsetDeclHandler(DeclHandler handler)
     Set the DTD declaration event handler.
public  voidsetDocumentHandler(DocumentHandler documentHandler)
     Allow an application to register a document event handler.
public  voidsetEntityResolver(EntityResolver resolver)
     Sets the resolver used to resolve external entities.
public  voidsetErrorHandler(ErrorHandler errorHandler)
     Allow an application to register an error event handler.

If the application does not register an error handler, all error events reported by the SAX parser will be silently ignored; however, normal processing may not continue.

public  voidsetFeature(String featureId, boolean state)
     Set the state of any feature in a SAX2 parser.
protected  voidsetLexicalHandler(LexicalHandler handler)
     Set the lexical event handler.
public  voidsetLocale(Locale locale)
     Set the locale to use for messages.
public  voidsetProperty(String propertyId, Object value)
     Set the value of any property in a SAX2 parser.
public  voidstartCDATA(Augmentations augs)
     The start of a CDATA section.
public  voidstartDocument(XMLLocator locator, String encoding, NamespaceContext namespaceContext, Augmentations augs)
     The start of the document.
Parameters:
  locator - The document locator, or null if the documentlocation cannot be reported during the parsingof this document.
public  voidstartElement(QName element, XMLAttributes attributes, Augmentations augs)
     The start of an element.
public  voidstartExternalSubset(XMLResourceIdentifier identifier, Augmentations augs)
     The start of the DTD external subset.
public  voidstartGeneralEntity(String name, XMLResourceIdentifier identifier, String encoding, Augmentations augs)
     This method notifies of the start of an entity.
final protected  voidstartNamespaceMapping()
    
public  voidstartParameterEntity(String name, XMLResourceIdentifier identifier, String encoding, Augmentations augs)
     This method notifies of the start of parameter entity.
public  voidunparsedEntityDecl(String name, XMLResourceIdentifier identifier, String notation, Augmentations augs)
     An unparsed entity declaration.
public  voidxmlDecl(String version, String encoding, String standalone, Augmentations augs)
     Notifies of the presence of an XMLDecl line in the document.

Field Detail
ALLOW_UE_AND_NOTATION_EVENTS
final protected static String ALLOW_UE_AND_NOTATION_EVENTS(Code)
Feature identifier: allow notation and unparsed entity events to be sent out of order.



DECLARATION_HANDLER
final protected static String DECLARATION_HANDLER(Code)
Property id: declaration handler.



DOM_NODE
final protected static String DOM_NODE(Code)
Property id: DOM node.



LEXICAL_HANDLER
final protected static String LEXICAL_HANDLER(Code)
Property id: lexical handler.



NAMESPACES
final protected static String NAMESPACES(Code)
Feature identifier: namespaces.



STRING_INTERNING
final protected static String STRING_INTERNING(Code)
Feature id: string interning.



fContentHandler
protected ContentHandler fContentHandler(Code)
Content handler.



fDTDHandler
protected org.xml.sax.DTDHandler fDTDHandler(Code)
DTD handler.



fDeclHandler
protected DeclHandler fDeclHandler(Code)
Decl handler.



fDeclaredAttrs
protected SymbolHash fDeclaredAttrs(Code)



fDocumentHandler
protected DocumentHandler fDocumentHandler(Code)
Document handler.



fLexicalHandler
protected LexicalHandler fLexicalHandler(Code)
Lexical handler.



fLexicalHandlerParameterEntities
protected boolean fLexicalHandlerParameterEntities(Code)
Lexical handler parameter entities.



fNamespaceContext
protected NamespaceContext fNamespaceContext(Code)
Namespace context



fNamespacePrefixes
protected boolean fNamespacePrefixes(Code)
Namespace prefixes.



fNamespaces
protected boolean fNamespaces(Code)
Namespaces.



fParseInProgress
protected boolean fParseInProgress(Code)
True if a parse is in progress. This state is needed because some features/properties cannot be set while parsing (e.g. validation and namespaces).



fQName
protected QName fQName(Code)



fResolveDTDURIs
protected boolean fResolveDTDURIs(Code)
Resolve DTD URIs.



fStandalone
protected boolean fStandalone(Code)
Standalone document declaration.



fUseEntityResolver2
protected boolean fUseEntityResolver2(Code)
Use EntityResolver2.



fVersion
protected String fVersion(Code)



fXMLNSURIs
protected boolean fXMLNSURIs(Code)
XMLNS URIs: Namespace declarations in the http://www.w3.org/2000/xmlns/ namespace.




Constructor Detail
AbstractSAXParser
protected AbstractSAXParser(XMLParserConfiguration config)(Code)
Default constructor.




Method Detail
attributeDecl
public void attributeDecl(String elementName, String attributeName, String type, String[] enumeration, String defaultType, XMLString defaultValue, XMLString nonNormalizedDefaultValue, Augmentations augs) throws XNIException(Code)
An attribute declaration.
Parameters:
  elementName - The name of the element that this attributeis associated with.
Parameters:
  attributeName - The name of the attribute.
Parameters:
  type - The attribute type. This value will be one ofthe following: "CDATA", "ENTITY", "ENTITIES","ENUMERATION", "ID", "IDREF", "IDREFS","NMTOKEN", "NMTOKENS", or "NOTATION".
Parameters:
  enumeration - If the type has the value "ENUMERATION" or"NOTATION", this array holds the allowed attributevalues; otherwise, this array is null.
Parameters:
  defaultType - The attribute default type. This value will beone of the following: "#FIXED", "#IMPLIED","#REQUIRED", or null.
Parameters:
  defaultValue - The attribute default value, or null if nodefault value is specified.
Parameters:
  nonNormalizedDefaultValue - The attribute default value with no normalization performed, or null if no default value is specified.
Parameters:
  augs - Additional information that may include infosetaugmentations.
throws:
  XNIException - Thrown by handler to signal an error.



characters
public void characters(XMLString text, Augmentations augs) throws XNIException(Code)
Character content.
Parameters:
  text - The content.
Parameters:
  augs - Additional information that may include infoset augmentations
throws:
  XNIException - Thrown by handler to signal an error.



comment
public void comment(XMLString text, Augmentations augs) throws XNIException(Code)
A comment.
Parameters:
  text - The text in the comment.
Parameters:
  augs - Additional information that may include infoset augmentations
throws:
  XNIException - Thrown by application to signal an error.



doctypeDecl
public void doctypeDecl(String rootElement, String publicId, String systemId, Augmentations augs) throws XNIException(Code)
Notifies of the presence of the DOCTYPE line in the document.
Parameters:
  rootElement - The name of the root element.
Parameters:
  publicId - The public identifier if an external DTD or nullif the external DTD is specified using SYSTEM.
Parameters:
  systemId - The system identifier if an external DTD, nullotherwise.
Parameters:
  augs - Additional information that may include infoset augmentations
throws:
  XNIException - Thrown by handler to signal an error.



elementDecl
public void elementDecl(String name, String contentModel, Augmentations augs) throws XNIException(Code)
An element declaration.
Parameters:
  name - The name of the element.
Parameters:
  contentModel - The element content model.
Parameters:
  augs - Additional information that may include infosetaugmentations.
throws:
  XNIException - Thrown by handler to signal an error.



endCDATA
public void endCDATA(Augmentations augs) throws XNIException(Code)
The end of a CDATA section.
Parameters:
  augs - Additional information that may include infoset augmentations
throws:
  XNIException - Thrown by handler to signal an error.



endDTD
public void endDTD(Augmentations augs) throws XNIException(Code)
The end of the DTD.
Parameters:
  augs - Additional information that may include infosetaugmentations.
throws:
  XNIException - Thrown by handler to signal an error.



endDocument
public void endDocument(Augmentations augs) throws XNIException(Code)
The end of the document.
Parameters:
  augs - Additional information that may include infoset augmentations
throws:
  XNIException - Thrown by handler to signal an error.



endElement
public void endElement(QName element, Augmentations augs) throws XNIException(Code)
The end of an element.
Parameters:
  element - The name of the element.
Parameters:
  augs - Additional information that may include infoset augmentations
throws:
  XNIException - Thrown by handler to signal an error.



endExternalSubset
public void endExternalSubset(Augmentations augs) throws XNIException(Code)
The end of the DTD external subset.
Parameters:
  augs - Additional information that may include infosetaugmentations.
throws:
  XNIException - Thrown by handler to signal an error.



endGeneralEntity
public void endGeneralEntity(String name, Augmentations augs) throws XNIException(Code)
This method notifies the end of an entity. The DTD has the pseudo-name of "[dtd]" parameter entity names start with '%'; and general entity names are just the entity name.

Note: Since the document is an entity, the handler will be notified of the end of the document entity by calling the endEntity method with the entity name "[xml]" after calling the endDocument method. When exposing entity boundaries through the SAX API, the document entity is never reported, however.

Note: This method is not called for entity references appearing as part of attribute values.
Parameters:
  name - The name of the entity.
Parameters:
  augs - Additional information that may include infoset augmentations
throws:
  XNIException - Thrown by handler to signal an error.




endNamespaceMapping
final protected void endNamespaceMapping() throws SAXException(Code)
Send endPrefixMapping events



endParameterEntity
public void endParameterEntity(String name, Augmentations augs) throws XNIException(Code)
This method notifies the end of an entity. The DTD has the pseudo-name of "[dtd]" parameter entity names start with '%'; and general entity names are just the entity name.

Note: Since the document is an entity, the handler will be notified of the end of the document entity by calling the endEntity method with the entity name "[xml]" after calling the endDocument method. When exposing entity boundaries through the SAX API, the document entity is never reported, however.

Note: This method is not called for entity references appearing as part of attribute values.
Parameters:
  name - The name of the parameter entity.
Parameters:
  augs - Additional information that may include infosetaugmentations.
throws:
  XNIException - Thrown by handler to signal an error.




externalEntityDecl
public void externalEntityDecl(String name, XMLResourceIdentifier identifier, Augmentations augs) throws XNIException(Code)
An external entity declaration.
Parameters:
  name - The name of the entity. Parameter entity names startwith '%', whereas the name of a general entity is justthe entity name.
Parameters:
  identifier - An object containing all location information pertinent to this entity.
Parameters:
  augs - Additional information that may include infosetaugmentations.
throws:
  XNIException - Thrown by handler to signal an error.



getAttributePSVI
public AttributePSVI getAttributePSVI(int index)(Code)



getAttributePSVIByName
public AttributePSVI getAttributePSVIByName(String uri, String localname)(Code)



getContentHandler
public ContentHandler getContentHandler()(Code)
Return the current content handler. The current content handler, or null if nonehas been registered.
See Also:   AbstractSAXParser.setContentHandler



getDTDHandler
public DTDHandler getDTDHandler()(Code)
Return the current DTD handler. The current DTD handler, or null if nonehas been registered.
See Also:   AbstractSAXParser.setDTDHandler



getDeclHandler
protected DeclHandler getDeclHandler() throws SAXNotRecognizedException, SAXNotSupportedException(Code)
Returns the DTD declaration event handler.
See Also:   AbstractSAXParser.setDeclHandler



getElementPSVI
public ElementPSVI getElementPSVI()(Code)



getEntityResolver
public EntityResolver getEntityResolver()(Code)
Return the current entity resolver. The current entity resolver, or null if nonehas been registered.
See Also:   AbstractSAXParser.setEntityResolver



getErrorHandler
public ErrorHandler getErrorHandler()(Code)
Return the current error handler. The current error handler, or null if nonehas been registered.
See Also:   AbstractSAXParser.setErrorHandler



getFeature
public boolean getFeature(String featureId) throws SAXNotRecognizedException, SAXNotSupportedException(Code)
Query the state of a feature. Query the current state of any feature in a SAX2 parser. The parser might not recognize the feature.
Parameters:
  featureId - The unique identifier (URI) of the featurebeing set. The current state of the feature.
exception:
  org.xml.sax.SAXNotRecognizedException - If therequested feature is not known.
exception:
  SAXNotSupportedException - If therequested feature is known but not supported.



getLexicalHandler
protected LexicalHandler getLexicalHandler() throws SAXNotRecognizedException, SAXNotSupportedException(Code)
Returns the lexical handler.
See Also:   AbstractSAXParser.setLexicalHandler



getProperty
public Object getProperty(String propertyId) throws SAXNotRecognizedException, SAXNotSupportedException(Code)
Query the value of a property. Return the current value of a property in a SAX2 parser. The parser might not recognize the property.
Parameters:
  propertyId - The unique identifier (URI) of the propertybeing set. The current value of the property.
exception:
  org.xml.sax.SAXNotRecognizedException - If therequested property is not known.
exception:
  SAXNotSupportedException - If therequested property is known but not supported.



ignorableWhitespace
public void ignorableWhitespace(XMLString text, Augmentations augs) throws XNIException(Code)
Ignorable whitespace. For this method to be called, the document source must have some way of determining that the text containing only whitespace characters should be considered ignorable. For example, the validator can determine if a length of whitespace characters in the document are ignorable based on the element content model.
Parameters:
  text - The ignorable whitespace.
Parameters:
  augs - Additional information that may include infoset augmentations
throws:
  XNIException - Thrown by handler to signal an error.



internalEntityDecl
public void internalEntityDecl(String name, XMLString text, XMLString nonNormalizedText, Augmentations augs) throws XNIException(Code)
An internal entity declaration.
Parameters:
  name - The name of the entity. Parameter entity names start with'%', whereas the name of a general entity is just theentity name.
Parameters:
  text - The value of the entity.
Parameters:
  nonNormalizedText - The non-normalized value of the entity. Thisvalue contains the same sequence of characters that was inthe internal entity declaration, without any entityreferences expanded.
Parameters:
  augs - Additional information that may include infosetaugmentations.
throws:
  XNIException - Thrown by handler to signal an error.



notationDecl
public void notationDecl(String name, XMLResourceIdentifier identifier, Augmentations augs) throws XNIException(Code)
A notation declaration
Parameters:
  name - The name of the notation.
Parameters:
  identifier - An object containing all location information pertinent to this notation.
Parameters:
  augs - Additional information that may include infosetaugmentations.
throws:
  XNIException - Thrown by handler to signal an error.



parse
public void parse(String systemId) throws SAXException, IOException(Code)
Parses the input source specified by the given system identifier.

This method is equivalent to the following:

 parse(new InputSource(systemId));
 

Parameters:
  systemId - The system identifier (URI).
exception:
  org.xml.sax.SAXException - Throws exception on SAX error.
exception:
  java.io.IOException - Throws exception on i/o error.



parse
public void parse(InputSource inputSource) throws SAXException, IOException(Code)
parse
Parameters:
  inputSource -
exception:
  org.xml.sax.SAXException -
exception:
  java.io.IOException -



processingInstruction
public void processingInstruction(String target, XMLString data, Augmentations augs) throws XNIException(Code)
A processing instruction. Processing instructions consist of a target name and, optionally, text data. The data is only meaningful to the application.

Typically, a processing instruction's data will contain a series of pseudo-attributes. These pseudo-attributes follow the form of element attributes but are not parsed or presented to the application as anything other than text. The application is responsible for parsing the data.
Parameters:
  target - The target.
Parameters:
  data - The data or null if none specified.
Parameters:
  augs - Additional information that may include infoset augmentations
throws:
  XNIException - Thrown by handler to signal an error.




reset
public void reset() throws XNIException(Code)
Reset all components before parsing.
throws:
  XNIException - Thrown if an error occurs during initialization.



setContentHandler
public void setContentHandler(ContentHandler contentHandler)(Code)
Allow an application to register a content event handler.

If the application does not register a content handler, all content events reported by the SAX parser will be silently ignored.

Applications may register a new or different handler in the middle of a parse, and the SAX parser must begin using the new handler immediately.
Parameters:
  contentHandler - The content handler.
See Also:   AbstractSAXParser.getContentHandler




setDTDHandler
public void setDTDHandler(DTDHandler dtdHandler)(Code)
Allow an application to register a DTD event handler.

If the application does not register a DTD handler, all DTD events reported by the SAX parser will be silently ignored.

Applications may register a new or different handler in the middle of a parse, and the SAX parser must begin using the new handler immediately.
Parameters:
  dtdHandler - The DTD handler.
See Also:   AbstractSAXParser.getDTDHandler




setDeclHandler
protected void setDeclHandler(DeclHandler handler) throws SAXNotRecognizedException, SAXNotSupportedException(Code)
Set the DTD declaration event handler.

This method is the equivalent to the property:

 http://xml.org/sax/properties/declaration-handler
 

Parameters:
  handler - The new handler.
See Also:   AbstractSAXParser.getDeclHandler
See Also:   AbstractSAXParser.setProperty



setDocumentHandler
public void setDocumentHandler(DocumentHandler documentHandler)(Code)
Allow an application to register a document event handler.

If the application does not register a document handler, all document events reported by the SAX parser will be silently ignored (this is the default behaviour implemented by HandlerBase).

Applications may register a new or different handler in the middle of a parse, and the SAX parser must begin using the new handler immediately.
Parameters:
  documentHandler - The document handler.




setEntityResolver
public void setEntityResolver(EntityResolver resolver)(Code)
Sets the resolver used to resolve external entities. The EntityResolver interface supports resolution of public and system identifiers.
Parameters:
  resolver - The new entity resolver. Passing a null value willuninstall the currently installed resolver.



setErrorHandler
public void setErrorHandler(ErrorHandler errorHandler)(Code)
Allow an application to register an error event handler.

If the application does not register an error handler, all error events reported by the SAX parser will be silently ignored; however, normal processing may not continue. It is highly recommended that all SAX applications implement an error handler to avoid unexpected bugs.

Applications may register a new or different handler in the middle of a parse, and the SAX parser must begin using the new handler immediately.


Parameters:
  errorHandler - The error handler.
See Also:   AbstractSAXParser.getErrorHandler



setFeature
public void setFeature(String featureId, boolean state) throws SAXNotRecognizedException, SAXNotSupportedException(Code)
Set the state of any feature in a SAX2 parser. The parser might not recognize the feature, and if it does recognize it, it might not be able to fulfill the request.
Parameters:
  featureId - The unique identifier (URI) of the feature.
Parameters:
  state - The requested state of the feature (true or false).
exception:
  SAXNotRecognizedException - If therequested feature is not known.
exception:
  SAXNotSupportedException - If therequested feature is known, but the requestedstate is not supported.



setLexicalHandler
protected void setLexicalHandler(LexicalHandler handler) throws SAXNotRecognizedException, SAXNotSupportedException(Code)
Set the lexical event handler.

This method is the equivalent to the property:

 http://xml.org/sax/properties/lexical-handler
 

Parameters:
  handler - lexical event handler
See Also:   AbstractSAXParser.getLexicalHandler
See Also:   AbstractSAXParser.setProperty



setLocale
public void setLocale(Locale locale) throws SAXException(Code)
Set the locale to use for messages.
Parameters:
  locale - The locale object to use for localization of messages.
exception:
  SAXException - An exception thrown if the parser does notsupport the specified locale.
See Also:   org.xml.sax.Parser



setProperty
public void setProperty(String propertyId, Object value) throws SAXNotRecognizedException, SAXNotSupportedException(Code)
Set the value of any property in a SAX2 parser. The parser might not recognize the property, and if it does recognize it, it might not support the requested value.
Parameters:
  propertyId - The unique identifier (URI) of the propertybeing set.
Parameters:
  value - The value to which the property is being set.
exception:
  SAXNotRecognizedException - If therequested property is not known.
exception:
  SAXNotSupportedException - If therequested property is known, but the requestedvalue is not supported.



startCDATA
public void startCDATA(Augmentations augs) throws XNIException(Code)
The start of a CDATA section.
Parameters:
  augs - Additional information that may include infoset augmentations
throws:
  XNIException - Thrown by handler to signal an error.



startDocument
public void startDocument(XMLLocator locator, String encoding, NamespaceContext namespaceContext, Augmentations augs) throws XNIException(Code)
The start of the document.
Parameters:
  locator - The document locator, or null if the documentlocation cannot be reported during the parsingof this document. However, it is stronglyrecommended that a locator be supplied that canat least report the system identifier of thedocument.
Parameters:
  encoding - The auto-detected IANA encoding name of the entitystream. This value will be null in those situationswhere the entity encoding is not auto-detected (e.g.internal entities or a document entity that isparsed from a java.io.Reader).
Parameters:
  namespaceContext - The namespace context in effect at thestart of this document.This object represents the current context.Implementors of this class are responsiblefor copying the namespace bindings from thethe current context (and its parent contexts)if that information is important.
Parameters:
  augs - Additional information that may include infoset augmentations
throws:
  XNIException - Thrown by handler to signal an error.



startElement
public void startElement(QName element, XMLAttributes attributes, Augmentations augs) throws XNIException(Code)
The start of an element. If the document specifies the start element by using an empty tag, then the startElement method will immediately be followed by the endElement method, with no intervening methods.
Parameters:
  element - The name of the element.
Parameters:
  attributes - The element attributes.
Parameters:
  augs - Additional information that may include infoset augmentations
throws:
  XNIException - Thrown by handler to signal an error.



startExternalSubset
public void startExternalSubset(XMLResourceIdentifier identifier, Augmentations augs) throws XNIException(Code)
The start of the DTD external subset.
Parameters:
  augs - Additional information that may include infosetaugmentations.
throws:
  XNIException - Thrown by handler to signal an error.



startGeneralEntity
public void startGeneralEntity(String name, XMLResourceIdentifier identifier, String encoding, Augmentations augs) throws XNIException(Code)
This method notifies of the start of an entity. The DTD has the pseudo-name of "[dtd]" parameter entity names start with '%'; and general entity names are just the entity name.

Note: Since the document is an entity, the handler will be notified of the start of the document entity by calling the startEntity method with the entity name "[xml]" before calling the startDocument method. When exposing entity boundaries through the SAX API, the document entity is never reported, however.

Note: This method is not called for entity references appearing as part of attribute values.
Parameters:
  name - The name of the entity.
Parameters:
  identifier - The resource identifier.
Parameters:
  encoding - The auto-detected IANA encoding name of the entitystream. This value will be null in those situationswhere the entity encoding is not auto-detected (e.g.internal parameter entities).
Parameters:
  augs - Additional information that may include infoset augmentations
throws:
  XNIException - Thrown by handler to signal an error.




startNamespaceMapping
final protected void startNamespaceMapping() throws SAXException(Code)
Send startPrefixMapping events



startParameterEntity
public void startParameterEntity(String name, XMLResourceIdentifier identifier, String encoding, Augmentations augs) throws XNIException(Code)
This method notifies of the start of parameter entity. The DTD has the pseudo-name of "[dtd]" parameter entity names start with '%'; and general entity names are just the entity name.

Note: Since the document is an entity, the handler will be notified of the start of the document entity by calling the startEntity method with the entity name "[xml]" before calling the startDocument method. When exposing entity boundaries through the SAX API, the document entity is never reported, however.

Note: This method is not called for entity references appearing as part of attribute values.
Parameters:
  name - The name of the parameter entity.
Parameters:
  identifier - The resource identifier.
Parameters:
  encoding - The auto-detected IANA encoding name of the entitystream. This value will be null in those situationswhere the entity encoding is not auto-detected (e.g.internal parameter entities).
Parameters:
  augs - Additional information that may include infosetaugmentations.
throws:
  XNIException - Thrown by handler to signal an error.




unparsedEntityDecl
public void unparsedEntityDecl(String name, XMLResourceIdentifier identifier, String notation, Augmentations augs) throws XNIException(Code)
An unparsed entity declaration.
Parameters:
  name - The name of the entity.
Parameters:
  identifier - An object containing all location information pertinent to this entity.
Parameters:
  notation - The name of the notation.
Parameters:
  augs - Additional information that may include infosetaugmentations.
throws:
  XNIException - Thrown by handler to signal an error.



xmlDecl
public void xmlDecl(String version, String encoding, String standalone, Augmentations augs) throws XNIException(Code)
Notifies of the presence of an XMLDecl line in the document. If present, this method will be called immediately following the startDocument call.
Parameters:
  version - The XML version.
Parameters:
  encoding - The IANA encoding name of the document, or null ifnot specified.
Parameters:
  standalone - The standalone value, or null if not specified.
Parameters:
  augs - Additional information that may include infoset augmentations
throws:
  XNIException - Thrown by handler to signal an error.



Fields inherited from org.apache.xerces.parsers.AbstractXMLDocumentParser
protected XMLDTDContentModelSource fDTDContentModelSource(Code)(Java Doc)
protected XMLDTDSource fDTDSource(Code)(Java Doc)
protected XMLDocumentSource fDocumentSource(Code)(Java Doc)
protected boolean fInDTD(Code)(Java Doc)

Methods inherited from org.apache.xerces.parsers.AbstractXMLDocumentParser
public void any(Augmentations augs) throws XNIException(Code)(Java Doc)
public void attributeDecl(String elementName, String attributeName, String type, String[] enumeration, String defaultType, XMLString defaultValue, XMLString nonNormalizedDefaultValue, Augmentations augs) throws XNIException(Code)(Java Doc)
public void characters(XMLString text, Augmentations augs) throws XNIException(Code)(Java Doc)
public void comment(XMLString text, Augmentations augs) throws XNIException(Code)(Java Doc)
public void doctypeDecl(String rootElement, String publicId, String systemId, Augmentations augs) throws XNIException(Code)(Java Doc)
public void element(String elementName, Augmentations augs) throws XNIException(Code)(Java Doc)
public void elementDecl(String name, String contentModel, Augmentations augs) throws XNIException(Code)(Java Doc)
public void empty(Augmentations augs) throws XNIException(Code)(Java Doc)
public void emptyElement(QName element, XMLAttributes attributes, Augmentations augs) throws XNIException(Code)(Java Doc)
public void endAttlist(Augmentations augs) throws XNIException(Code)(Java Doc)
public void endCDATA(Augmentations augs) throws XNIException(Code)(Java Doc)
public void endConditional(Augmentations augs) throws XNIException(Code)(Java Doc)
public void endContentModel(Augmentations augs) throws XNIException(Code)(Java Doc)
public void endDTD(Augmentations augs) throws XNIException(Code)(Java Doc)
public void endDocument(Augmentations augs) throws XNIException(Code)(Java Doc)
public void endElement(QName element, Augmentations augs) throws XNIException(Code)(Java Doc)
public void endExternalSubset(Augmentations augmentations) throws XNIException(Code)(Java Doc)
public void endGeneralEntity(String name, Augmentations augs) throws XNIException(Code)(Java Doc)
public void endGroup(Augmentations augs) throws XNIException(Code)(Java Doc)
public void endParameterEntity(String name, Augmentations augs) throws XNIException(Code)(Java Doc)
public void externalEntityDecl(String name, XMLResourceIdentifier identifier, Augmentations augs) throws XNIException(Code)(Java Doc)
public XMLDTDContentModelSource getDTDContentModelSource()(Code)(Java Doc)
public XMLDTDSource getDTDSource()(Code)(Java Doc)
public XMLDocumentSource getDocumentSource()(Code)(Java Doc)
public void ignorableWhitespace(XMLString text, Augmentations augs) throws XNIException(Code)(Java Doc)
public void ignoredCharacters(XMLString text, Augmentations augs) throws XNIException(Code)(Java Doc)
public void internalEntityDecl(String name, XMLString text, XMLString nonNormalizedText, Augmentations augs) throws XNIException(Code)(Java Doc)
public void notationDecl(String name, XMLResourceIdentifier identifier, Augmentations augs) throws XNIException(Code)(Java Doc)
public void occurrence(short occurrence, Augmentations augs) throws XNIException(Code)(Java Doc)
public void pcdata(Augmentations augs) throws XNIException(Code)(Java Doc)
public void processingInstruction(String target, XMLString data, Augmentations augs) throws XNIException(Code)(Java Doc)
protected void reset() throws XNIException(Code)(Java Doc)
public void separator(short separator, Augmentations augs) throws XNIException(Code)(Java Doc)
public void setDTDContentModelSource(XMLDTDContentModelSource source)(Code)(Java Doc)
public void setDTDSource(XMLDTDSource source)(Code)(Java Doc)
public void setDocumentSource(XMLDocumentSource source)(Code)(Java Doc)
public void startAttlist(String elementName, Augmentations augs) throws XNIException(Code)(Java Doc)
public void startCDATA(Augmentations augs) throws XNIException(Code)(Java Doc)
public void startConditional(short type, Augmentations augs) throws XNIException(Code)(Java Doc)
public void startContentModel(String elementName, Augmentations augs) throws XNIException(Code)(Java Doc)
public void startDTD(XMLLocator locator, Augmentations augs) throws XNIException(Code)(Java Doc)
public void startDocument(XMLLocator locator, String encoding, NamespaceContext namespaceContext, Augmentations augs) throws XNIException(Code)(Java Doc)
public void startElement(QName element, XMLAttributes attributes, Augmentations augs) throws XNIException(Code)(Java Doc)
public void startExternalSubset(XMLResourceIdentifier identifier, Augmentations augmentations) throws XNIException(Code)(Java Doc)
public void startGeneralEntity(String name, XMLResourceIdentifier identifier, String encoding, Augmentations augs) throws XNIException(Code)(Java Doc)
public void startGroup(Augmentations augs) throws XNIException(Code)(Java Doc)
public void startParameterEntity(String name, XMLResourceIdentifier identifier, String encoding, Augmentations augs) throws XNIException(Code)(Java Doc)
public void textDecl(String version, String encoding, Augmentations augs) throws XNIException(Code)(Java Doc)
public void unparsedEntityDecl(String name, XMLResourceIdentifier identifier, String notation, Augmentations augs) throws XNIException(Code)(Java Doc)
public void xmlDecl(String version, String encoding, String standalone, Augmentations augs) throws XNIException(Code)(Java Doc)

Fields inherited from org.apache.xerces.parsers.XMLParser
final protected static String ENTITY_RESOLVER(Code)(Java Doc)
final protected static String ERROR_HANDLER(Code)(Java Doc)
protected XMLParserConfiguration fConfiguration(Code)(Java Doc)

Methods inherited from org.apache.xerces.parsers.XMLParser
public void parse(XMLInputSource inputSource) throws XNIException, IOException(Code)(Java Doc)
protected void reset() throws XNIException(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.