Java Doc for XMLDTDScanner.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.XMLDTDScanner

All known Subclasses:   org.apache.xerces.validators.dtd.DTDGrammar,
XMLDTDScanner
final public class XMLDTDScanner (Code)
Default implementation of an XML DTD scanner.

Clients who wish to scan a DTD should implement XMLDTDScanner.EventHandler to provide the desired behavior when various DTD components are encountered.

To process the DTD, the client application should follow the following sequence:

  1. call scanDocTypeDecl() to scan the DOCTYPE declaration
  2. call getReadingExternalEntity() to determine if scanDocTypeDecl found an external subset
  3. if scanning an external subset, call scanDecls(true) to process the external subset

See Also:   XMLDTDScanner.EventHandler
version:
   $Id: XMLDTDScanner.java,v 1.19 2001/04/26 17:45:50 lmartin Exp $

Inner Class :public interface EventHandler


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

Method Summary
public  voidcheckForAttributeNameWithPEReference(XMLEntityHandler.EntityReader entityReader, char fastchar, QName attribute)
    
public  voidcheckForElementTypeWithPEReference(XMLEntityHandler.EntityReader entityReader, char fastchar, QName element)
    
public  intcheckForNameWithPEReference(XMLEntityHandler.EntityReader entityReader, char fastcheck)
    
public  intcheckForNmtokenWithPEReference(XMLEntityHandler.EntityReader entityReader, char fastcheck)
    
public  voidendOfInput(int entityNameIndex, boolean moreToFollow)
    
public  booleangetReadingContentSpec()
    
public  booleangetReadingExternalEntity()
    
public  intmarkupDepth()
     Report the markup nesting depth.
public  intnormalizeDefaultAttValue(QName attribute, int defaultAttValue, int attType, int enumeration, boolean list)
    
public  intparenDepth()
     Report the parenthesis nesting depth.
public  voidreaderChange(XMLEntityHandler.EntityReader nextReader, int nextReaderId)
    
protected  voidreportRecoverableXMLError(int majorCode, int minorCode, int stringIndex1)
     Report a recoverable xml error.
protected  voidreportRecoverableXMLError(int majorCode, int minorCode, String string1)
     Report a recoverable xml error.
protected  voidreportRecoverableXMLError(int majorCode, int minorCode, String string1, String string2)
     Report a recoverable xml error.
public  voidreset(StringPool stringPool, XMLEntityHandler.CharBuffer literalData)
     Allow XMLDTDScanner to be reused.
public  voidscanDecls(boolean extSubset)
    
public  intscanDefaultAttValue(QName element, QName attribute)
    
public  intscanDefaultAttValue(QName element, QName attribute, int attType, int enumeration)
    
public  booleanscanDoctypeDecl()
     This routine is called after the <!DOCTYPE portion of a DOCTYPE line has been called.
public  voidsetDTDHandler(XMLDocumentHandler.DTDHandler dtdHandler)
     Set the DTD handler.
public  voidsetEventHandler(XMLDTDScanner.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)
    
public  voidsetValidationEnabled(boolean enabled)
    


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




Method Detail
checkForAttributeNameWithPEReference
public void checkForAttributeNameWithPEReference(XMLEntityHandler.EntityReader entityReader, char fastchar, QName attribute) throws Exception(Code)



checkForElementTypeWithPEReference
public void checkForElementTypeWithPEReference(XMLEntityHandler.EntityReader entityReader, char fastchar, QName element) throws Exception(Code)



checkForNameWithPEReference
public int checkForNameWithPEReference(XMLEntityHandler.EntityReader entityReader, char fastcheck) throws Exception(Code)



checkForNmtokenWithPEReference
public int checkForNmtokenWithPEReference(XMLEntityHandler.EntityReader entityReader, char fastcheck) throws Exception(Code)



endOfInput
public void endOfInput(int entityNameIndex, 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 -



getReadingContentSpec
public boolean getReadingContentSpec()(Code)
Is the scanner reading a ContentSpec? true if the scanner is reading a ContentSpec



getReadingExternalEntity
public boolean getReadingExternalEntity()(Code)
Is the XMLDTDScanner reading from an external entity? This will be true, in particular if there was an external subset true if the XMLDTDScanner is reading from an external entity.



markupDepth
public int markupDepth()(Code)
Report the markup nesting depth. This allows a client to perform validation checks for correct markup nesting. This keeps scanning and validation separate. the markup nesting depth



normalizeDefaultAttValue
public int normalizeDefaultAttValue(QName attribute, int defaultAttValue, int attType, int enumeration, boolean list) throws Exception(Code)



parenDepth
public int parenDepth()(Code)
Report the parenthesis nesting depth. This allows a client to perform validation checks for correct parenthesis balancing. This keeps scanning and validation separate. the parenthesis depth



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



reportRecoverableXMLError
protected void reportRecoverableXMLError(int majorCode, int minorCode, int stringIndex1) throws Exception(Code)
Report a recoverable xml error.



reportRecoverableXMLError
protected void reportRecoverableXMLError(int majorCode, int minorCode, String string1) throws Exception(Code)
Report a recoverable xml error.



reportRecoverableXMLError
protected void reportRecoverableXMLError(int majorCode, int minorCode, String string1, String string2) throws Exception(Code)
Report a recoverable xml error.



reset
public void reset(StringPool stringPool, XMLEntityHandler.CharBuffer literalData) throws Exception(Code)
Allow XMLDTDScanner to be reused. This method is called from an XMLParser reset method, which passes the StringPool to be used by the reset DTD scanner instance.
Parameters:
  stringPool - the string pool to be used by XMLDTDScanner.



scanDecls
public void scanDecls(boolean extSubset) throws Exception(Code)
Scan markup declarations
Parameters:
  extSubset - true if the scanner is scanning an external subset, falseif it is scanning an internal subset
exception:
  java.lang.Exception -



scanDefaultAttValue
public int scanDefaultAttValue(QName element, QName attribute) throws Exception(Code)
Scan the default value in an attribute declaration
Parameters:
  elementType - handle to the element that owns the attribute
Parameters:
  attrName - handle in the string pool for the attribute name handle in the string pool for the default attribute value
exception:
  java.lang.Exception -



scanDefaultAttValue
public int scanDefaultAttValue(QName element, QName attribute, int attType, int enumeration) throws Exception(Code)



scanDoctypeDecl
public boolean scanDoctypeDecl() throws Exception(Code)
This routine is called after the <!DOCTYPE portion of a DOCTYPE line has been called. scanDocTypeDecl goes onto scan the rest of the DOCTYPE decl. If an internal DTD subset exists, it is scanned. If an external DTD subset exists, scanDocTypeDecl sets up the state necessary to process it. true if successful
exception:
  java.lang.Exception -



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



setEventHandler
public void setEventHandler(XMLDTDScanner.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)
set fNamespacesEnabled *



setValidationEnabled
public void setValidationEnabled(boolean enabled)(Code)
set fValidationEnabled *



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.