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


java.lang.Object
   org.apache.xerces.impl.XMLScanner
      org.apache.xerces.impl.XMLDocumentFragmentScannerImpl
         org.apache.xerces.impl.XMLDocumentScannerImpl
            org.apache.xerces.impl.XML11DocumentScannerImpl

All known Subclasses:   org.apache.xerces.impl.XML11NSDocumentScannerImpl,
XML11DocumentScannerImpl
public class XML11DocumentScannerImpl extends XMLDocumentScannerImpl (Code)
This class is responsible for scanning XML document structure and content. The scanner acts as the source for the document information which is communicated to the document handler.

This component requires the following features and properties from the component manager that uses it:

  • http://xml.org/sax/features/namespaces
  • http://xml.org/sax/features/validation
  • http://apache.org/xml/features/nonvalidating/load-external-dtd
  • http://apache.org/xml/features/scanner/notify-char-refs
  • http://apache.org/xml/features/scanner/notify-builtin-refs
  • http://apache.org/xml/properties/internal/symbol-table
  • http://apache.org/xml/properties/internal/error-reporter
  • http://apache.org/xml/properties/internal/entity-manager
  • http://apache.org/xml/properties/internal/dtd-scanner

author:
   Glenn Marcy, IBM
author:
   Andy Clark, IBM
author:
   Arnaud Le Hors, IBM
author:
   Eric Ye, IBM
version:
   $Id: XML11DocumentScannerImpl.java 572055 2007-09-02 17:55:43Z mrglavas $



Constructor Summary
public  XML11DocumentScannerImpl()
     Default constructor.

Method Summary
protected  StringgetVersionNotSupportedKey()
    
protected  booleanisInvalid(int value)
    
protected  booleanisInvalidLiteral(int value)
    
protected  intisUnchangedByNormalization(XMLString value)
     Checks whether this string would be unchanged by normalization.
protected  booleanisValidNCName(int value)
    
protected  booleanisValidNameChar(int value)
    
protected  booleanisValidNameStartChar(int value)
    
protected  booleanisValidNameStartHighSurrogate(int value)
    
protected  voidnormalizeWhitespace(XMLString value)
     Normalize whitespace in an XMLString converting all whitespace characters to space characters.
protected  voidnormalizeWhitespace(XMLString value, int fromIndex)
     Normalize whitespace in an XMLString converting all whitespace characters to space characters.
protected  booleanscanAttributeValue(XMLString value, XMLString nonNormalizedValue, String atName, boolean checkEntities, String eleName)
     Scans an attribute value and normalizes whitespace converting all whitespace characters to space characters. [10] AttValue ::= '"' ([^<&"] | Reference)* '"' | "'" ([^<&'] | Reference)* "'"
Parameters:
  value - The XMLString to fill in with the value.
Parameters:
  nonNormalizedValue - The XMLString to fill in with the non-normalized value.
Parameters:
  atName - The name of the attribute being parsed (for error msgs).
Parameters:
  checkEntities - true if undeclared entities should be reported as VC violation, false if undeclared entities should be reported as WFC violation.
Parameters:
  eleName - The name of element to which this attribute belongs.
protected  intscanContent()
     Scans element content.
protected  booleanscanPubidLiteral(XMLString literal)
     Scans public ID literal. [12] PubidLiteral ::= '"' PubidChar* '"' | "'" (PubidChar - "'")* "'" [13] PubidChar::= #x20 | #xD | #xA | [a-zA-Z0-9] | [-'()+,./:=?;!*#@$_%] The returned string is normalized according to the following rule, from http://www.w3.org/TR/REC-xml#dt-pubid: Before a match is attempted, all strings of white space in the public identifier must be normalized to single space characters (#x20), and leading and trailing white space must be removed.
Parameters:
  literal - The string to fill in with the public ID literal.
protected  booleanversionSupported(String version)
    


Constructor Detail
XML11DocumentScannerImpl
public XML11DocumentScannerImpl()(Code)
Default constructor.




Method Detail
getVersionNotSupportedKey
protected String getVersionNotSupportedKey()(Code)



isInvalid
protected boolean isInvalid(int value)(Code)



isInvalidLiteral
protected boolean isInvalidLiteral(int value)(Code)



isUnchangedByNormalization
protected int isUnchangedByNormalization(XMLString value)(Code)
Checks whether this string would be unchanged by normalization. -1 if the value would be unchanged by normalization,otherwise the index of the first whitespace character whichwould be transformed.



isValidNCName
protected boolean isValidNCName(int value)(Code)



isValidNameChar
protected boolean isValidNameChar(int value)(Code)



isValidNameStartChar
protected boolean isValidNameStartChar(int value)(Code)



isValidNameStartHighSurrogate
protected boolean isValidNameStartHighSurrogate(int value)(Code)



normalizeWhitespace
protected void normalizeWhitespace(XMLString value)(Code)
Normalize whitespace in an XMLString converting all whitespace characters to space characters.



normalizeWhitespace
protected void normalizeWhitespace(XMLString value, int fromIndex)(Code)
Normalize whitespace in an XMLString converting all whitespace characters to space characters.



scanAttributeValue
protected boolean scanAttributeValue(XMLString value, XMLString nonNormalizedValue, String atName, boolean checkEntities, String eleName) throws IOException, XNIException(Code)
Scans an attribute value and normalizes whitespace converting all whitespace characters to space characters. [10] AttValue ::= '"' ([^<&"] | Reference)* '"' | "'" ([^<&'] | Reference)* "'"
Parameters:
  value - The XMLString to fill in with the value.
Parameters:
  nonNormalizedValue - The XMLString to fill in with the non-normalized value.
Parameters:
  atName - The name of the attribute being parsed (for error msgs).
Parameters:
  checkEntities - true if undeclared entities should be reported as VC violation, false if undeclared entities should be reported as WFC violation.
Parameters:
  eleName - The name of element to which this attribute belongs. true if the non-normalized and normalized value are the sameNote: This method uses fStringBuffer2, anything in itat the time of calling is lost.



scanContent
protected int scanContent() throws IOException, XNIException(Code)
Scans element content. Returns the next character on the stream.



scanPubidLiteral
protected boolean scanPubidLiteral(XMLString literal) throws IOException, XNIException(Code)
Scans public ID literal. [12] PubidLiteral ::= '"' PubidChar* '"' | "'" (PubidChar - "'")* "'" [13] PubidChar::= #x20 | #xD | #xA | [a-zA-Z0-9] | [-'()+,./:=?;!*#@$_%] The returned string is normalized according to the following rule, from http://www.w3.org/TR/REC-xml#dt-pubid: Before a match is attempted, all strings of white space in the public identifier must be normalized to single space characters (#x20), and leading and trailing white space must be removed.
Parameters:
  literal - The string to fill in with the public ID literal. True on success.Note: This method uses fStringBuffer, anything in it atthe time of calling is lost.



versionSupported
protected boolean versionSupported(String version)(Code)



Fields inherited from org.apache.xerces.impl.XMLDocumentScannerImpl
final protected static String DISALLOW_DOCTYPE_DECL_FEATURE(Code)(Java Doc)
final protected static String DTD_SCANNER(Code)(Java Doc)
final protected static String LOAD_EXTERNAL_DTD(Code)(Java Doc)
final protected static String NAMESPACE_CONTEXT(Code)(Java Doc)
final protected static int SCANNER_STATE_DTD_EXTERNAL(Code)(Java Doc)
final protected static int SCANNER_STATE_DTD_EXTERNAL_DECLS(Code)(Java Doc)
final protected static int SCANNER_STATE_DTD_INTERNAL_DECLS(Code)(Java Doc)
final protected static int SCANNER_STATE_PROLOG(Code)(Java Doc)
final protected static int SCANNER_STATE_TRAILING_MISC(Code)(Java Doc)
final protected static int SCANNER_STATE_XML_DECL(Code)(Java Doc)
final protected static String VALIDATION_MANAGER(Code)(Java Doc)
final protected Dispatcher fDTDDispatcher(Code)(Java Doc)
protected XMLDTDScanner fDTDScanner(Code)(Java Doc)
protected boolean fDisallowDoctype(Code)(Java Doc)
protected String fDoctypeName(Code)(Java Doc)
protected String fDoctypePublicId(Code)(Java Doc)
protected String fDoctypeSystemId(Code)(Java Doc)
protected boolean fLoadExternalDTD(Code)(Java Doc)
protected NamespaceContext fNamespaceContext(Code)(Java Doc)
final protected Dispatcher fPrologDispatcher(Code)(Java Doc)
protected boolean fScanningDTD(Code)(Java Doc)
protected boolean fSeenDoctypeDecl(Code)(Java Doc)
final protected Dispatcher fTrailingMiscDispatcher(Code)(Java Doc)
protected ValidationManager fValidationManager(Code)(Java Doc)
final protected Dispatcher fXMLDeclDispatcher(Code)(Java Doc)

Methods inherited from org.apache.xerces.impl.XMLDocumentScannerImpl
protected Dispatcher createContentDispatcher()(Code)(Java Doc)
public void endEntity(String name, Augmentations augs) throws XNIException(Code)(Java Doc)
public Boolean getFeatureDefault(String featureId)(Code)(Java Doc)
public Object getPropertyDefault(String propertyId)(Code)(Java Doc)
public String[] getRecognizedFeatures()(Code)(Java Doc)
public String[] getRecognizedProperties()(Code)(Java Doc)
protected String getScannerStateName(int state)(Code)(Java Doc)
public void reset(XMLComponentManager componentManager) throws XMLConfigurationException(Code)(Java Doc)
protected boolean scanDoctypeDecl() throws IOException, XNIException(Code)(Java Doc)
public void setFeature(String featureId, boolean state) throws XMLConfigurationException(Code)(Java Doc)
public void setInputSource(XMLInputSource inputSource) throws IOException(Code)(Java Doc)
public void setProperty(String propertyId, Object value) throws XMLConfigurationException(Code)(Java Doc)
public void startEntity(String name, XMLResourceIdentifier identifier, String encoding, Augmentations augs) throws XNIException(Code)(Java Doc)

Fields inherited from org.apache.xerces.impl.XMLDocumentFragmentScannerImpl
final protected static boolean DEBUG_CONTENT_SCANNING(Code)(Java Doc)
final protected static String ENTITY_RESOLVER(Code)(Java Doc)
final protected static String NAMESPACES(Code)(Java Doc)
final protected static String NOTIFY_BUILTIN_REFS(Code)(Java Doc)
final protected static int SCANNER_STATE_CDATA(Code)(Java Doc)
final protected static int SCANNER_STATE_COMMENT(Code)(Java Doc)
final protected static int SCANNER_STATE_CONTENT(Code)(Java Doc)
final protected static int SCANNER_STATE_DOCTYPE(Code)(Java Doc)
final protected static int SCANNER_STATE_END_OF_INPUT(Code)(Java Doc)
final protected static int SCANNER_STATE_PI(Code)(Java Doc)
final protected static int SCANNER_STATE_REFERENCE(Code)(Java Doc)
final protected static int SCANNER_STATE_ROOT_ELEMENT(Code)(Java Doc)
final protected static int SCANNER_STATE_START_OF_MARKUP(Code)(Java Doc)
final protected static int SCANNER_STATE_TERMINATED(Code)(Java Doc)
final protected static int SCANNER_STATE_TEXT_DECL(Code)(Java Doc)
final protected QName fAttributeQName(Code)(Java Doc)
final protected XMLAttributesImpl fAttributes(Code)(Java Doc)
final protected Dispatcher fContentDispatcher(Code)(Java Doc)
protected QName fCurrentElement(Code)(Java Doc)
protected Dispatcher fDispatcher(Code)(Java Doc)
protected XMLDocumentHandler fDocumentHandler(Code)(Java Doc)
final protected QName fElementQName(Code)(Java Doc)
final protected ElementStack fElementStack(Code)(Java Doc)
protected int[] fEntityStack(Code)(Java Doc)
protected ExternalSubsetResolver fExternalSubsetResolver(Code)(Java Doc)
protected boolean fHasExternalDTD(Code)(Java Doc)
protected boolean fInScanContent(Code)(Java Doc)
protected boolean fIsEntityDeclaredVC(Code)(Java Doc)
protected int fMarkupDepth(Code)(Java Doc)
protected boolean fNotifyBuiltInRefs(Code)(Java Doc)
protected int fScannerState(Code)(Java Doc)
protected boolean fStandalone(Code)(Java Doc)
final protected XMLString fTempString(Code)(Java Doc)
final protected XMLString fTempString2(Code)(Java Doc)

Methods inherited from org.apache.xerces.impl.XMLDocumentFragmentScannerImpl
protected Dispatcher createContentDispatcher()(Code)(Java Doc)
public void endEntity(String name, Augmentations augs) throws XNIException(Code)(Java Doc)
public String getDispatcherName(Dispatcher dispatcher)(Code)(Java Doc)
public XMLDocumentHandler getDocumentHandler()(Code)(Java Doc)
public Boolean getFeatureDefault(String featureId)(Code)(Java Doc)
public Object getPropertyDefault(String propertyId)(Code)(Java Doc)
public String[] getRecognizedFeatures()(Code)(Java Doc)
public String[] getRecognizedProperties()(Code)(Java Doc)
protected String getScannerStateName(int state)(Code)(Java Doc)
protected int handleEndElement(QName element, boolean isEmpty) throws XNIException(Code)(Java Doc)
public void reset(XMLComponentManager componentManager) throws XMLConfigurationException(Code)(Java Doc)
protected void scanAttribute(XMLAttributes attributes) throws IOException, XNIException(Code)(Java Doc)
protected boolean scanCDATASection(boolean complete) throws IOException, XNIException(Code)(Java Doc)
protected void scanCharReference() throws IOException, XNIException(Code)(Java Doc)
protected void scanComment() throws IOException, XNIException(Code)(Java Doc)
protected int scanContent() throws IOException, XNIException(Code)(Java Doc)
public boolean scanDocument(boolean complete) throws IOException, XNIException(Code)(Java Doc)
protected int scanEndElement() throws IOException, XNIException(Code)(Java Doc)
protected void scanEntityReference() throws IOException, XNIException(Code)(Java Doc)
protected void scanPIData(String target, XMLString data) throws IOException, XNIException(Code)(Java Doc)
protected boolean scanStartElement() throws IOException, XNIException(Code)(Java Doc)
protected boolean scanStartElementAfterName() throws IOException, XNIException(Code)(Java Doc)
protected void scanStartElementName() throws IOException, XNIException(Code)(Java Doc)
protected void scanXMLDeclOrTextDecl(boolean scanningTextDecl) throws IOException, XNIException(Code)(Java Doc)
final protected void setDispatcher(Dispatcher dispatcher)(Code)(Java Doc)
public void setDocumentHandler(XMLDocumentHandler documentHandler)(Code)(Java Doc)
public void setFeature(String featureId, boolean state) throws XMLConfigurationException(Code)(Java Doc)
public void setInputSource(XMLInputSource inputSource) throws IOException(Code)(Java Doc)
public void setProperty(String propertyId, Object value) throws XMLConfigurationException(Code)(Java Doc)
final protected void setScannerState(int state)(Code)(Java Doc)
public void startEntity(String name, XMLResourceIdentifier identifier, String encoding, Augmentations augs) throws XNIException(Code)(Java Doc)

Fields inherited from org.apache.xerces.impl.XMLScanner
final protected static boolean DEBUG_ATTR_NORMALIZATION(Code)(Java Doc)
final protected static String ENTITY_MANAGER(Code)(Java Doc)
final protected static String ERROR_REPORTER(Code)(Java Doc)
final protected static String NAMESPACES(Code)(Java Doc)
final protected static String NOTIFY_CHAR_REFS(Code)(Java Doc)
final protected static String PARSER_SETTINGS(Code)(Java Doc)
final protected static String SYMBOL_TABLE(Code)(Java Doc)
final protected static String VALIDATION(Code)(Java Doc)
final protected static String fAmpSymbol(Code)(Java Doc)
final protected static String fAposSymbol(Code)(Java Doc)
protected String fCharRefLiteral(Code)(Java Doc)
final protected static String fEncodingSymbol(Code)(Java Doc)
protected int fEntityDepth(Code)(Java Doc)
protected XMLEntityManager fEntityManager(Code)(Java Doc)
protected XMLEntityScanner fEntityScanner(Code)(Java Doc)
protected XMLErrorReporter fErrorReporter(Code)(Java Doc)
final protected static String fGtSymbol(Code)(Java Doc)
final protected static String fLtSymbol(Code)(Java Doc)
protected boolean fNamespaces(Code)(Java Doc)
protected boolean fNotifyCharRefs(Code)(Java Doc)
protected boolean fParserSettings(Code)(Java Doc)
final protected static String fQuotSymbol(Code)(Java Doc)
protected boolean fReportEntity(Code)(Java Doc)
final protected XMLResourceIdentifierImpl fResourceIdentifier(Code)(Java Doc)
protected boolean fScanningAttribute(Code)(Java Doc)
final protected static String fStandaloneSymbol(Code)(Java Doc)
protected SymbolTable fSymbolTable(Code)(Java Doc)
protected boolean fValidation(Code)(Java Doc)
final protected static String fVersionSymbol(Code)(Java Doc)

Methods inherited from org.apache.xerces.impl.XMLScanner
public void endEntity(String name, Augmentations augs) throws XNIException(Code)(Java Doc)
public boolean getFeature(String featureId) throws XMLConfigurationException(Code)(Java Doc)
protected String getVersionNotSupportedKey()(Code)(Java Doc)
protected boolean isInvalid(int value)(Code)(Java Doc)
protected boolean isInvalidLiteral(int value)(Code)(Java Doc)
protected int isUnchangedByNormalization(XMLString value)(Code)(Java Doc)
protected boolean isValidNCName(int value)(Code)(Java Doc)
protected boolean isValidNameChar(int value)(Code)(Java Doc)
protected boolean isValidNameStartChar(int value)(Code)(Java Doc)
protected boolean isValidNameStartHighSurrogate(int value)(Code)(Java Doc)
protected void normalizeWhitespace(XMLString value)(Code)(Java Doc)
protected void normalizeWhitespace(XMLString value, int fromIndex)(Code)(Java Doc)
protected void reportFatalError(String msgId, Object[] args) throws XNIException(Code)(Java Doc)
public void reset(XMLComponentManager componentManager) throws XMLConfigurationException(Code)(Java Doc)
protected void reset()(Code)(Java Doc)
protected boolean scanAttributeValue(XMLString value, XMLString nonNormalizedValue, String atName, boolean checkEntities, String eleName) throws IOException, XNIException(Code)(Java Doc)
protected int scanCharReferenceValue(XMLStringBuffer buf, XMLStringBuffer buf2) throws IOException, XNIException(Code)(Java Doc)
protected void scanComment(XMLStringBuffer text) throws IOException, XNIException(Code)(Java Doc)
protected void scanExternalID(String[] identifiers, boolean optionalSystemId) throws IOException, XNIException(Code)(Java Doc)
protected void scanPI() throws IOException, XNIException(Code)(Java Doc)
protected void scanPIData(String target, XMLString data) throws IOException, XNIException(Code)(Java Doc)
public String scanPseudoAttribute(boolean scanningTextDecl, XMLString value) throws IOException, XNIException(Code)(Java Doc)
protected boolean scanPubidLiteral(XMLString literal) throws IOException, XNIException(Code)(Java Doc)
protected boolean scanSurrogates(XMLStringBuffer buf) throws IOException, XNIException(Code)(Java Doc)
protected void scanXMLDeclOrTextDecl(boolean scanningTextDecl, String[] pseudoAttributeValues) throws IOException, XNIException(Code)(Java Doc)
public void setFeature(String featureId, boolean value) throws XMLConfigurationException(Code)(Java Doc)
public void setProperty(String propertyId, Object value) throws XMLConfigurationException(Code)(Java Doc)
public void startEntity(String name, XMLResourceIdentifier identifier, String encoding, Augmentations augs) throws XNIException(Code)(Java Doc)
protected boolean versionSupported(String version)(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.