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


org.apache.xerces.readers.XMLEntityHandler

All known Subclasses:   org.apache.xerces.utils.ChunkyCharArray,  org.apache.xerces.validators.common.XMLValidator,  org.apache.xerces.readers.XMLEntityReader,  org.apache.xerces.readers.DefaultEntityHandler,
XMLEntityHandler
public interface XMLEntityHandler extends Locator(Code)
This is the interface used for entity management. This interface is typically implemented by the "parser" class to provide entity management services for the scanner classes.
version:
   $Id: XMLEntityHandler.java,v 1.3 2000/05/17 18:32:44 jeffreyr Exp $

Inner Class :public interface DTDHandler
Inner Class :public interface CharBuffer
Inner Class :public interface CharDataHandler
Inner Class :public interface EntityReader

Field Summary
final public static  intATTVALUE_RESULT_COMPLEXATTVALUE_RESULT_LESSTHANATTVALUE_RESULT_INVALID_CHAR
     Special return values for scanAttValue method.
final public static  intCHARREF_RESULT_SEMICOLON_REQUIREDCHARREF_RESULT_INVALID_CHARCHARREF_RESULT_OUT_OF_RANGE
     Special return values for scanCharRef method.
final public static  intCONTENT_RESULT_START_OF_PICONTENT_RESULT_START_OF_COMMENTCONTENT_RESULT_START_OF_CDSECTCONTENT_RESULT_END_OF_CDSECTCONTENT_RESULT_START_OF_ETAGCONTENT_RESULT_MATCHING_ETAGCONTENT_RESULT_START_OF_ELEMENTCONTENT_RESULT_START_OF_CHARREFCONTENT_RESULT_START_OF_ENTITYREFCONTENT_RESULT_INVALID_CHARCONTENT_RESULT_MARKUP_NOT_RECOGNIZEDCONTENT_RESULT_MARKUP_END_OF_INPUTCONTENT_RESULT_REFERENCE_END_OF_INPUT
     Return values for the scanContent method.
final public static  intENTITYREF_IN_ATTVALUEENTITYREF_IN_DEFAULTATTVALUEENTITYREF_IN_CONTENTENTITYREF_IN_DTD_AS_MARKUPENTITYREF_IN_ENTITYVALUEENTITYREF_IN_DTD_WITHIN_MARKUPENTITYREF_DOCUMENTENTITYREF_EXTERNAL_SUBSET
     This is an enumeration of all the defined contexts in which an entity reference may appear.
final public static  intENTITYTYPE_INTERNAL_PEENTITYTYPE_EXTERNAL_PEENTITYTYPE_INTERNALENTITYTYPE_EXTERNALENTITYTYPE_UNPARSEDENTITYTYPE_DOCUMENTENTITYTYPE_EXTERNAL_SUBSET
     This is an enumeration of all the defined entity types.
final public static  intENTITYVALUE_RESULT_FINISHEDENTITYVALUE_RESULT_REFERENCEENTITYVALUE_RESULT_PEREFENTITYVALUE_RESULT_INVALID_CHARENTITYVALUE_RESULT_END_OF_INPUT
     Special return values for scanEntityValue method.
final public static  intSTRINGLIT_RESULT_QUOTE_REQUIREDSTRINGLIT_RESULT_INVALID_CHAR
     Special return values for scanStringLiteral method.


Method Summary
public  EntityReaderchangeReaders()
     This method is called by the reader subclasses at the end of input.
public  StringexpandSystemId(String systemId)
     Expand the system identifier relative to the entity that we are processing.
public  XMLEntityHandler.CharDataHandlergetCharDataHandler()
     Get the character data handler.
public  EntityReadergetEntityReader()
     Return the current reader.
public  intgetReaderDepth()
     Return the depth set for the current reader.
public  intgetReaderId()
     Return a unique identifier for the current reader.
public  voidsetCharDataHandler(XMLEntityHandler.CharDataHandler charDataHandler)
     Set the character data handler.
public  voidsetReaderDepth(int depth)
     Set the depth for the current reader.
public  booleanstartReadingFromDocument(InputSource source)
     Start reading document from an InputSource.
Parameters:
  source - The input source for the document to process.
public  booleanstartReadingFromEntity(int entityName, int readerDepth, int entityContext)
     Start reading from this entity. Note that the reader depth is not used by the reader, but is made available so that it may be retrieved at end of input to test that gramatical structures are properly nested within entities.
Parameters:
  entityName - The entity name handle in the string pool.
Parameters:
  readerDepth - The depth to associate with the reader for this entity.
Parameters:
  context - The context of the entity reference; see ENTITYREF_IN_*.

Field Detail
ATTVALUE_RESULT_COMPLEXATTVALUE_RESULT_LESSTHANATTVALUE_RESULT_INVALID_CHAR
final public static int ATTVALUE_RESULT_COMPLEXATTVALUE_RESULT_LESSTHANATTVALUE_RESULT_INVALID_CHAR(Code)
Special return values for scanAttValue method. The normal return value is a StringPool handle for a simple AttValue that was already correctly normalized for CDATA in the original document. These other return values either indicate an error or that the AttValue needs further processing.



CHARREF_RESULT_SEMICOLON_REQUIREDCHARREF_RESULT_INVALID_CHARCHARREF_RESULT_OUT_OF_RANGE
final public static int CHARREF_RESULT_SEMICOLON_REQUIREDCHARREF_RESULT_INVALID_CHARCHARREF_RESULT_OUT_OF_RANGE(Code)
Special return values for scanCharRef method. The normal return value is a unicode character. These error conditions are defined using invalid XML unicode code points.



CONTENT_RESULT_START_OF_PICONTENT_RESULT_START_OF_COMMENTCONTENT_RESULT_START_OF_CDSECTCONTENT_RESULT_END_OF_CDSECTCONTENT_RESULT_START_OF_ETAGCONTENT_RESULT_MATCHING_ETAGCONTENT_RESULT_START_OF_ELEMENTCONTENT_RESULT_START_OF_CHARREFCONTENT_RESULT_START_OF_ENTITYREFCONTENT_RESULT_INVALID_CHARCONTENT_RESULT_MARKUP_NOT_RECOGNIZEDCONTENT_RESULT_MARKUP_END_OF_INPUTCONTENT_RESULT_REFERENCE_END_OF_INPUT
final public static int CONTENT_RESULT_START_OF_PICONTENT_RESULT_START_OF_COMMENTCONTENT_RESULT_START_OF_CDSECTCONTENT_RESULT_END_OF_CDSECTCONTENT_RESULT_START_OF_ETAGCONTENT_RESULT_MATCHING_ETAGCONTENT_RESULT_START_OF_ELEMENTCONTENT_RESULT_START_OF_CHARREFCONTENT_RESULT_START_OF_ENTITYREFCONTENT_RESULT_INVALID_CHARCONTENT_RESULT_MARKUP_NOT_RECOGNIZEDCONTENT_RESULT_MARKUP_END_OF_INPUTCONTENT_RESULT_REFERENCE_END_OF_INPUT(Code)
Return values for the scanContent method.



ENTITYREF_IN_ATTVALUEENTITYREF_IN_DEFAULTATTVALUEENTITYREF_IN_CONTENTENTITYREF_IN_DTD_AS_MARKUPENTITYREF_IN_ENTITYVALUEENTITYREF_IN_DTD_WITHIN_MARKUPENTITYREF_DOCUMENTENTITYREF_EXTERNAL_SUBSET
final public static int ENTITYREF_IN_ATTVALUEENTITYREF_IN_DEFAULTATTVALUEENTITYREF_IN_CONTENTENTITYREF_IN_DTD_AS_MARKUPENTITYREF_IN_ENTITYVALUEENTITYREF_IN_DTD_WITHIN_MARKUPENTITYREF_DOCUMENTENTITYREF_EXTERNAL_SUBSET(Code)
This is an enumeration of all the defined contexts in which an entity reference may appear. The order is important, as all explicit general entity references must appear first and the last of these must be ENTITYREF_IN_CONTENT. This permits the test "(context <= ENTITYREF_IN_CONTENT)" to be used as a quick check for a general entity reference.
See Also:   XMLEntityHandler.startReadingFromEntity



ENTITYTYPE_INTERNAL_PEENTITYTYPE_EXTERNAL_PEENTITYTYPE_INTERNALENTITYTYPE_EXTERNALENTITYTYPE_UNPARSEDENTITYTYPE_DOCUMENTENTITYTYPE_EXTERNAL_SUBSET
final public static int ENTITYTYPE_INTERNAL_PEENTITYTYPE_EXTERNAL_PEENTITYTYPE_INTERNALENTITYTYPE_EXTERNALENTITYTYPE_UNPARSEDENTITYTYPE_DOCUMENTENTITYTYPE_EXTERNAL_SUBSET(Code)
This is an enumeration of all the defined entity types. These are provided to communicate state information to the clients of the parser.



ENTITYVALUE_RESULT_FINISHEDENTITYVALUE_RESULT_REFERENCEENTITYVALUE_RESULT_PEREFENTITYVALUE_RESULT_INVALID_CHARENTITYVALUE_RESULT_END_OF_INPUT
final public static int ENTITYVALUE_RESULT_FINISHEDENTITYVALUE_RESULT_REFERENCEENTITYVALUE_RESULT_PEREFENTITYVALUE_RESULT_INVALID_CHARENTITYVALUE_RESULT_END_OF_INPUT(Code)
Special return values for scanEntityValue method. The normal return value is a StringPool handle for a simple EntityValue that was entirely contained within the original document. These other return values can either indicate an error or that the EntityValue needs further processing.



STRINGLIT_RESULT_QUOTE_REQUIREDSTRINGLIT_RESULT_INVALID_CHAR
final public static int STRINGLIT_RESULT_QUOTE_REQUIREDSTRINGLIT_RESULT_INVALID_CHAR(Code)
Special return values for scanStringLiteral method. The normal return value is a StringPool handle. These error conditions are defined using invalid indices.





Method Detail
changeReaders
public EntityReader changeReaders() throws Exception(Code)
This method is called by the reader subclasses at the end of input. The reader to use next.
exception:
  java.lang.Exception -



expandSystemId
public String expandSystemId(String systemId)(Code)
Expand the system identifier relative to the entity that we are processing. The expanded system identifier.



getCharDataHandler
public XMLEntityHandler.CharDataHandler getCharDataHandler()(Code)
Get the character data handler.



getEntityReader
public EntityReader getEntityReader()(Code)
Return the current reader.



getReaderDepth
public int getReaderDepth()(Code)
Return the depth set for the current reader.



getReaderId
public int getReaderId()(Code)
Return a unique identifier for the current reader.



setCharDataHandler
public void setCharDataHandler(XMLEntityHandler.CharDataHandler charDataHandler)(Code)
Set the character data handler.



setReaderDepth
public void setReaderDepth(int depth)(Code)
Set the depth for the current reader.



startReadingFromDocument
public boolean startReadingFromDocument(InputSource source) throws Exception(Code)
Start reading document from an InputSource.
Parameters:
  source - The input source for the document to process. true if we were able to open the document source;false otherwise.
exception:
  java.lang.Exception -



startReadingFromEntity
public boolean startReadingFromEntity(int entityName, int readerDepth, int entityContext) throws Exception(Code)
Start reading from this entity. Note that the reader depth is not used by the reader, but is made available so that it may be retrieved at end of input to test that gramatical structures are properly nested within entities.
Parameters:
  entityName - The entity name handle in the string pool.
Parameters:
  readerDepth - The depth to associate with the reader for this entity.
Parameters:
  context - The context of the entity reference; see ENTITYREF_IN_*. true if the entity might start with a TextDecl;false otherwise.
exception:
  java.lang.Exception -



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