Java Doc for XMLDocumentScanner.java in  » Web-Server » Rimfaxe-Web-Server » org » apache » xerces » framework » 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 » Web Server » Rimfaxe Web Server » org.apache.xerces.framework 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.apache.xerces.framework.XMLDocumentScanner

All known Subclasses:   org.apache.xerces.validators.common.XMLValidator,
XMLDocumentScanner
final public class XMLDocumentScanner (Code)
This class recognizes most of the grammer for an XML processor. Additional support is provided by the XMLEntityHandler, via the XMLEntityReader instances it creates, which are used to process simple constructs like string literals and character data between markup. The XMLDTDScanner class contains the remaining support for the grammer of DTD declarations. When a <!DOCTYPE ...> is found in the document, the scanDoctypeDecl method will then be called and the XMLDocumentScanner subclass is responsible for "connecting" that method to the corresponding method provided by the XMLDTDScanner class.
version:
   $Id: XMLDocumentScanner.java,v 1.12 2001/08/08 18:20:19 neilg Exp $

Inner Class :public interface EventHandler
Inner Class :interface ScannerDispatcher
Inner Class :final class XMLDeclDispatcher implements ScannerDispatcher
Inner Class :final class PrologDispatcher implements ScannerDispatcher
Inner Class :final class ContentDispatcher implements ScannerDispatcher
Inner Class :final class TrailingMiscDispatcher implements ScannerDispatcher
Inner Class :final class EndOfInputDispatcher implements ScannerDispatcher

Field Summary
final public static  intRESULT_SUCCESSRESULT_FAILURERESULT_DUPLICATE_ATTR
    
final static  intSCANNER_STATE_XML_DECLSCANNER_STATE_START_OF_MARKUPSCANNER_STATE_COMMENTSCANNER_STATE_PISCANNER_STATE_DOCTYPESCANNER_STATE_PROLOGSCANNER_STATE_ROOT_ELEMENTSCANNER_STATE_CONTENTSCANNER_STATE_REFERENCESCANNER_STATE_ATTRIBUTE_LISTSCANNER_STATE_ATTRIBUTE_NAMESCANNER_STATE_ATTRIBUTE_VALUESCANNER_STATE_TRAILING_MISCSCANNER_STATE_END_OF_INPUTSCANNER_STATE_TERMINATED
    
final static  char[]cdata_string
    
final static  char[]doctype_string
    
 intfAttValueAttrName
    
 intfAttValueElementType
    
 intfAttValueMark
    
 intfAttValueOffset
    
 intfAttValueReader
    
 XMLAttrListfAttrList
    
 intfAttrListHandle
    
 QNamefAttributeQName
    
 QNamefCurrentElementQName
    
 intfCurrentElementType
    
 XMLDocumentHandler.DTDHandlerfDTDHandler
    
 XMLDTDScannerfDTDScanner
    
 ScannerDispatcherfDispatcher
    
 QNamefElementQName
    
 XMLEntityHandlerfEntityHandler
    
 XMLEntityHandler.EntityReaderfEntityReader
    
 XMLErrorReporterfErrorReporter
    
 EventHandlerfEventHandler
    
 GrammarResolverfGrammarResolver
    
 XMLEntityHandler.CharBufferfLiteralData
    
 booleanfLoadExternalDTD
    
 booleanfNamespacesEnabled
    
 booleanfParseTextDecl
    
 intfReaderId
    
 intfScannerMarkupDepth
    
 intfScannerState
    
 booleanfScanningDTD
    
 booleanfSeenDoctypeDecl
    
 booleanfSeenRootElement
    
 booleanfStandalone
    
 StringPoolfStringPool
    
 booleanfValidationEnabled
    
final static  char[]xml_string
    

Constructor Summary
public  XMLDocumentScanner(StringPool stringPool, XMLErrorReporter errorReporter, XMLEntityHandler entityHandler, XMLEntityHandler.CharBuffer literalData)
    

Method Summary
 voidabortMarkup(int majorCode, int minorCode)
    
 voidabortMarkup(int majorCode, int minorCode, int stringIndex1)
    
 voidabortMarkup(int majorCode, int minorCode, String string1)
    
 voidabortMarkup(int majorCode, int minorCode, int stringIndex1, int stringIndex2)
    
public  booleanatEndOfInput()
    
public  voidendOfInput(int entityName, boolean moreToFollow)
    
public  intgetCurrentElementType()
    
public  booleangetLoadExternalDTD()
     Returns true if loading the external DTD is turned on.
public  booleangetNamespacesEnabled()
     Returns whether the parser processes namespaces.
public  booleangetValidationEnabled()
     Returns true if validation is turned on.
public  booleanparseSome(boolean doItAll)
    
public  voidreaderChange(XMLEntityHandler.EntityReader nextReader, int nextReaderId)
    
 voidreportFatalXMLError(int majorCode, int minorCode)
    
 voidreportFatalXMLError(int majorCode, int minorCode, int stringIndex1)
    
 voidreportFatalXMLError(int majorCode, int minorCode, String string1)
    
 voidreportFatalXMLError(int majorCode, int minorCode, int stringIndex1, int stringIndex2)
    
 voidreportFatalXMLError(int majorCode, int minorCode, String string1, String string2)
    
 voidreportFatalXMLError(int majorCode, int minorCode, String string1, String string2, String string3)
    
public  voidreset(StringPool stringPool, XMLEntityHandler.CharBuffer literalData)
    
 voidrestoreScannerState(int state)
    
public  intscanAttValue(QName element, QName attribute, boolean asSymbol)
    
 intscanCharRef()
    
 voidscanComment()
    
 booleanscanElement(QName element)
    
 voidscanPI(int piTarget)
    
 voidscanXMLDeclOrTextDecl(boolean scanningTextDecl)
    
public  voidsetDTDHandler(XMLDocumentHandler.DTDHandler dtdHandler)
     Set the DTD handler.
public  voidsetEventHandler(XMLDocumentScanner.EventHandler eventHandler)
    
public  voidsetGrammarResolver(GrammarResolver resolver)
     Sets the grammar resolver.
public  voidsetLoadExternalDTD(boolean enabled)
     Sets whether the parser loads the external DTD.
public  voidsetNamespacesEnabled(boolean enabled)
     Sets whether the parser preprocesses namespaces.
 intsetScannerState(int state)
    
public  voidsetValidationEnabled(boolean enabled)
     Sets whether the parser validates.
 voidskipPastEndOfCurrentMarkup()
    

Field Detail
RESULT_SUCCESSRESULT_FAILURERESULT_DUPLICATE_ATTR
final public static int RESULT_SUCCESSRESULT_FAILURERESULT_DUPLICATE_ATTR(Code)



SCANNER_STATE_XML_DECLSCANNER_STATE_START_OF_MARKUPSCANNER_STATE_COMMENTSCANNER_STATE_PISCANNER_STATE_DOCTYPESCANNER_STATE_PROLOGSCANNER_STATE_ROOT_ELEMENTSCANNER_STATE_CONTENTSCANNER_STATE_REFERENCESCANNER_STATE_ATTRIBUTE_LISTSCANNER_STATE_ATTRIBUTE_NAMESCANNER_STATE_ATTRIBUTE_VALUESCANNER_STATE_TRAILING_MISCSCANNER_STATE_END_OF_INPUTSCANNER_STATE_TERMINATED
final static int SCANNER_STATE_XML_DECLSCANNER_STATE_START_OF_MARKUPSCANNER_STATE_COMMENTSCANNER_STATE_PISCANNER_STATE_DOCTYPESCANNER_STATE_PROLOGSCANNER_STATE_ROOT_ELEMENTSCANNER_STATE_CONTENTSCANNER_STATE_REFERENCESCANNER_STATE_ATTRIBUTE_LISTSCANNER_STATE_ATTRIBUTE_NAMESCANNER_STATE_ATTRIBUTE_VALUESCANNER_STATE_TRAILING_MISCSCANNER_STATE_END_OF_INPUTSCANNER_STATE_TERMINATED(Code)
Scanner states



cdata_string
final static char[] cdata_string(Code)



doctype_string
final static char[] doctype_string(Code)



fAttValueAttrName
int fAttValueAttrName(Code)



fAttValueElementType
int fAttValueElementType(Code)



fAttValueMark
int fAttValueMark(Code)



fAttValueOffset
int fAttValueOffset(Code)



fAttValueReader
int fAttValueReader(Code)



fAttrList
XMLAttrList fAttrList(Code)



fAttrListHandle
int fAttrListHandle(Code)



fAttributeQName
QName fAttributeQName(Code)



fCurrentElementQName
QName fCurrentElementQName(Code)



fCurrentElementType
int fCurrentElementType(Code)



fDTDHandler
XMLDocumentHandler.DTDHandler fDTDHandler(Code)



fDTDScanner
XMLDTDScanner fDTDScanner(Code)



fDispatcher
ScannerDispatcher fDispatcher(Code)



fElementQName
QName fElementQName(Code)



fEntityHandler
XMLEntityHandler fEntityHandler(Code)



fEntityReader
XMLEntityHandler.EntityReader fEntityReader(Code)



fErrorReporter
XMLErrorReporter fErrorReporter(Code)



fEventHandler
EventHandler fEventHandler(Code)



fGrammarResolver
GrammarResolver fGrammarResolver(Code)



fLiteralData
XMLEntityHandler.CharBuffer fLiteralData(Code)



fLoadExternalDTD
boolean fLoadExternalDTD(Code)



fNamespacesEnabled
boolean fNamespacesEnabled(Code)



fParseTextDecl
boolean fParseTextDecl(Code)



fReaderId
int fReaderId(Code)



fScannerMarkupDepth
int fScannerMarkupDepth(Code)



fScannerState
int fScannerState(Code)



fScanningDTD
boolean fScanningDTD(Code)



fSeenDoctypeDecl
boolean fSeenDoctypeDecl(Code)



fSeenRootElement
boolean fSeenRootElement(Code)



fStandalone
boolean fStandalone(Code)



fStringPool
StringPool fStringPool(Code)



fValidationEnabled
boolean fValidationEnabled(Code)



xml_string
final static char[] xml_string(Code)




Constructor Detail
XMLDocumentScanner
public XMLDocumentScanner(StringPool stringPool, XMLErrorReporter errorReporter, XMLEntityHandler entityHandler, XMLEntityHandler.CharBuffer literalData)(Code)
Constructor




Method Detail
abortMarkup
void abortMarkup(int majorCode, int minorCode) throws Exception(Code)



abortMarkup
void abortMarkup(int majorCode, int minorCode, int stringIndex1) throws Exception(Code)



abortMarkup
void abortMarkup(int majorCode, int minorCode, String string1) throws Exception(Code)



abortMarkup
void abortMarkup(int majorCode, int minorCode, int stringIndex1, int stringIndex2) throws Exception(Code)



atEndOfInput
public boolean atEndOfInput()(Code)
Tell if scanner has reached end of input true if scanner has reached end of input.



endOfInput
public void endOfInput(int entityName, boolean moreToFollow) throws Exception(Code)
Handle the end of input
Parameters:
  entityName - the handle in the string pool of the name of the entity which has reached end of input
Parameters:
  moreToFollow - if true, there is still input left to process in other readers
exception:
  java.lang.Exception -



getCurrentElementType
public int getCurrentElementType()(Code)



getLoadExternalDTD
public boolean getLoadExternalDTD()(Code)
Returns true if loading the external DTD is turned on.



getNamespacesEnabled
public boolean getNamespacesEnabled()(Code)
Returns whether the parser processes namespaces.



getValidationEnabled
public boolean getValidationEnabled()(Code)
Returns true if validation is turned on.



parseSome
public boolean parseSome(boolean doItAll) throws Exception(Code)
Entry point for parsing
Parameters:
  doItAll - if true the entire document is parsed otherwise just the next segment of the document is parsed



readerChange
public void readerChange(XMLEntityHandler.EntityReader nextReader, int nextReaderId) throws Exception(Code)
Change readers
Parameters:
  nextReader - the new reader that the scanner will use
Parameters:
  nextReaderId - id of the reader to change to throws java.lang.Exception



reportFatalXMLError
void reportFatalXMLError(int majorCode, int minorCode) throws Exception(Code)



reportFatalXMLError
void reportFatalXMLError(int majorCode, int minorCode, int stringIndex1) throws Exception(Code)



reportFatalXMLError
void reportFatalXMLError(int majorCode, int minorCode, String string1) throws Exception(Code)



reportFatalXMLError
void reportFatalXMLError(int majorCode, int minorCode, int stringIndex1, int stringIndex2) throws Exception(Code)



reportFatalXMLError
void reportFatalXMLError(int majorCode, int minorCode, String string1, String string2) throws Exception(Code)



reportFatalXMLError
void reportFatalXMLError(int majorCode, int minorCode, String string1, String string2, String string3) throws Exception(Code)



reset
public void reset(StringPool stringPool, XMLEntityHandler.CharBuffer literalData)(Code)
reset the parser so that the instance can be reused
Parameters:
  stringPool - the string pool instance to be used by the reset parser



restoreScannerState
void restoreScannerState(int state)(Code)



scanAttValue
public int scanAttValue(QName element, QName attribute, boolean asSymbol) throws Exception(Code)
Scan an attribute value
Parameters:
  elementType - handle to the element whose attribute value is being scanned
Parameters:
  attrName - handle in the string pool of the name of attribute being scanned
Parameters:
  asSymbol - controls whether the value is a string (duplicates allowed) or a symbol (duplicates not allowed) handle in the string pool of the scanned value
exception:
  java.lang.Exception -



scanCharRef
int scanCharRef() throws Exception(Code)



scanComment
void scanComment() throws Exception(Code)



scanElement
boolean scanElement(QName element) throws Exception(Code)



scanPI
void scanPI(int piTarget) throws Exception(Code)



scanXMLDeclOrTextDecl
void scanXMLDeclOrTextDecl(boolean scanningTextDecl) throws Exception(Code)



setDTDHandler
public void setDTDHandler(XMLDocumentHandler.DTDHandler dtdHandler)(Code)
Set the DTD handler.



setEventHandler
public void setEventHandler(XMLDocumentScanner.EventHandler eventHandler)(Code)
Set the event handler
Parameters:
  eventHandler - The place to send our callbacks.



setGrammarResolver
public void setGrammarResolver(GrammarResolver resolver)(Code)
Sets the grammar resolver.



setLoadExternalDTD
public void setLoadExternalDTD(boolean enabled)(Code)
Sets whether the parser loads the external DTD.



setNamespacesEnabled
public void setNamespacesEnabled(boolean enabled)(Code)
Sets whether the parser preprocesses namespaces.



setScannerState
int setScannerState(int state)(Code)



setValidationEnabled
public void setValidationEnabled(boolean enabled)(Code)
Sets whether the parser validates.



skipPastEndOfCurrentMarkup
void skipPastEndOfCurrentMarkup() throws Exception(Code)



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.