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


java.lang.Object
   org.apache.xerces.readers.DefaultEntityHandler

All known Subclasses:   org.apache.xerces.validators.common.XMLValidator,
DefaultEntityHandler
public class DefaultEntityHandler implements XMLEntityHandler,XMLEntityHandler.DTDHandler(Code)
Default entity handler implementation.
version:
   $Id: DefaultEntityHandler.java,v 1.8.2.2 2001/11/05 19:48:21 neilg Exp $

Inner Class :public interface EventHandler
Inner Class :final public class EntityPool

Field Summary
final static  intCHUNK_MASK
    
final static  intCHUNK_SHIFT
    
final static  intCHUNK_SIZE
    
final static  intINITIAL_CHUNK_COUNT
    
protected  XMLEntityReaderFactoryfReaderFactory
    

Constructor Summary
public  DefaultEntityHandler(StringPool stringPool, XMLErrorReporter errorReporter)
    

Method Summary
public  intaddExternalEntityDecl(int name, int publicId, int systemId, boolean isExternal)
    
public  intaddExternalPEDecl(int name, int publicId, int systemId, boolean isExternal)
    
public  intaddInternalEntityDecl(int name, int value, boolean isExternal)
    
public  intaddInternalPEDecl(int name, int value, boolean isExternal)
    
public  intaddNotationDecl(int notationName, int publicId, int systemId, boolean isExternal)
    
public  voidaddRecognizer(XMLDeclRecognizer recognizer)
     Adds a recognizer.
public  voidaddRequiredNotation(int notationName, Locator locator, int majorCode, int minorCode, Object[] args)
    
public  intaddUnparsedEntityDecl(int name, int publicId, int systemId, int notationName, boolean isExternal)
    
public  XMLEntityHandler.EntityReaderchangeReaders()
     This method is called by the reader subclasses at the end of input, and also by the scanner directly to force a reader change during error recovery.
public  voidcheckRequiredNotations()
    
public  voidendEntityDecl()
    
public  StringexpandSystemId(String systemId)
     Expands a system id and returns the system id as a URI, if it can be expanded.
public  booleanexternalReferenceInContent(int entityHandle)
    
public  booleangetAllowJavaEncodings()
    
public  XMLEntityHandler.CharDataHandlergetCharDataHandler()
    
public  intgetColumnNumber()
     Return the column number of the current position within the document that we are processing.
public  XMLEntityHandler.EntityReadergetEntityReader()
     get the Entity reader.
public  EntityResolvergetEntityResolver()
     Gets the resolver used to resolve external entities.
protected  intgetEntityValue(int entityHandle)
    
public  intgetLineNumber()
     Return the line number of the current position within the document that we are processing.
protected  intgetParameterEntityValue(int peIndex)
    
public  StringgetPublicId()
     Return the public identifier of the InputSource that we are processing.
protected  StringgetPublicIdOfEntity(int entityHandle)
    
protected  StringgetPublicIdOfParameterEntity(int peIndex)
    
public  intgetReaderDepth()
     This method is provided for scanner implementations.
public  intgetReaderId()
     This method is provided for scanner implementations.
public  StringgetSystemId()
     Return the system identifier of the InputSource that we are processing.
protected  StringgetSystemIdOfEntity(int entityHandle)
    
protected  StringgetSystemIdOfParameterEntity(int peIndex)
    
protected  booleanisExternalEntity(int entityHandle)
    
protected  booleanisExternalParameterEntity(int peIndex)
    
public  booleanisNotationDeclared(int notationName)
    
public  booleanisUnparsedEntity(int entityName)
    
protected  intlookupEntity(int entityNameIndex)
    
protected  intlookupParameterEntity(int peName)
    
public  voidreset(StringPool stringPool)
     Reset the entity handler.
public  voidsetAllowJavaEncodings(boolean flag)
    
public  voidsetCharDataHandler(XMLEntityHandler.CharDataHandler charDataHandler)
    
public  voidsetEntityResolver(EntityResolver resolver)
     Sets the resolver used to resolve external entities.
public  voidsetEventHandler(EventHandler eventHandler)
    
public  voidsetReaderDepth(int depth)
     This method is provided for scanner implementations.
public  voidsetReaderFactory(XMLEntityReaderFactory readerFactory)
     Set the reader factory.
public  voidsetSendCharDataAsCharArray(boolean flag)
     Set char data processing preference.
public  booleanstartEntityDecl(boolean isPE, int entityName)
    
public  booleanstartReadingFromDocument(InputSource source)
    
public  booleanstartReadingFromEntity(int entityName, int readerDepth, int context)
    
public  voidstartReadingFromExternalSubset(String publicId, String systemId, int readerDepth)
    
public  voidstopReadingFromExternalSubset()
    
protected  intvalueOfReferenceInAttValue(int entityHandle)
    

Field Detail
CHUNK_MASK
final static int CHUNK_MASK(Code)



CHUNK_SHIFT
final static int CHUNK_SHIFT(Code)



CHUNK_SIZE
final static int CHUNK_SIZE(Code)



INITIAL_CHUNK_COUNT
final static int INITIAL_CHUNK_COUNT(Code)



fReaderFactory
protected XMLEntityReaderFactory fReaderFactory(Code)




Constructor Detail
DefaultEntityHandler
public DefaultEntityHandler(StringPool stringPool, XMLErrorReporter errorReporter)(Code)




Method Detail
addExternalEntityDecl
public int addExternalEntityDecl(int name, int publicId, int systemId, boolean isExternal) throws Exception(Code)



addExternalPEDecl
public int addExternalPEDecl(int name, int publicId, int systemId, boolean isExternal) throws Exception(Code)



addInternalEntityDecl
public int addInternalEntityDecl(int name, int value, boolean isExternal) throws Exception(Code)



addInternalPEDecl
public int addInternalPEDecl(int name, int value, boolean isExternal) throws Exception(Code)



addNotationDecl
public int addNotationDecl(int notationName, int publicId, int systemId, boolean isExternal) throws Exception(Code)



addRecognizer
public void addRecognizer(XMLDeclRecognizer recognizer)(Code)
Adds a recognizer.
Parameters:
  recognizer - The XML recognizer to add.



addRequiredNotation
public void addRequiredNotation(int notationName, Locator locator, int majorCode, int minorCode, Object[] args)(Code)



addUnparsedEntityDecl
public int addUnparsedEntityDecl(int name, int publicId, int systemId, int notationName, boolean isExternal) throws Exception(Code)



changeReaders
public XMLEntityHandler.EntityReader changeReaders() throws Exception(Code)
This method is called by the reader subclasses at the end of input, and also by the scanner directly to force a reader change during error recovery.



checkRequiredNotations
public void checkRequiredNotations() throws Exception(Code)



endEntityDecl
public void endEntityDecl() throws Exception(Code)
end an entity declaration



expandSystemId
public String expandSystemId(String systemId)(Code)
Expands a system id and returns the system id as a URI, if it can be expanded. A return value of null means that the identifier is already expanded. An exception thrown indicates a failure to expand the id.
Parameters:
  systemId - The systemId to be expanded. Returns the URI string representing the expanded systemidentifier. A null value indicates that the givensystem identifier is already expanded.



externalReferenceInContent
public boolean externalReferenceInContent(int entityHandle) throws Exception(Code)



getAllowJavaEncodings
public boolean getAllowJavaEncodings()(Code)



getCharDataHandler
public XMLEntityHandler.CharDataHandler getCharDataHandler()(Code)



getColumnNumber
public int getColumnNumber()(Code)
Return the column number of the current position within the document that we are processing. The current column number.



getEntityReader
public XMLEntityHandler.EntityReader getEntityReader()(Code)
get the Entity reader.



getEntityResolver
public EntityResolver getEntityResolver()(Code)
Gets the resolver used to resolve external entities. The EntityResolver interface supports resolution of public and system identifiers. The current entity resolver.



getEntityValue
protected int getEntityValue(int entityHandle)(Code)



getLineNumber
public int getLineNumber()(Code)
Return the line number of the current position within the document that we are processing. The current line number.



getParameterEntityValue
protected int getParameterEntityValue(int peIndex)(Code)



getPublicId
public String getPublicId()(Code)
Return the public identifier of the InputSource that we are processing. The public identifier, or null if not provided.



getPublicIdOfEntity
protected String getPublicIdOfEntity(int entityHandle)(Code)



getPublicIdOfParameterEntity
protected String getPublicIdOfParameterEntity(int peIndex)(Code)



getReaderDepth
public int getReaderDepth()(Code)
This method is provided for scanner implementations.



getReaderId
public int getReaderId()(Code)
This method is provided for scanner implementations.



getSystemId
public String getSystemId()(Code)
Return the system identifier of the InputSource that we are processing. The system identifier, or null if not provided.



getSystemIdOfEntity
protected String getSystemIdOfEntity(int entityHandle)(Code)



getSystemIdOfParameterEntity
protected String getSystemIdOfParameterEntity(int peIndex)(Code)



isExternalEntity
protected boolean isExternalEntity(int entityHandle)(Code)



isExternalParameterEntity
protected boolean isExternalParameterEntity(int peIndex)(Code)



isNotationDeclared
public boolean isNotationDeclared(int notationName)(Code)



isUnparsedEntity
public boolean isUnparsedEntity(int entityName)(Code)



lookupEntity
protected int lookupEntity(int entityNameIndex)(Code)



lookupParameterEntity
protected int lookupParameterEntity(int peName) throws Exception(Code)



reset
public void reset(StringPool stringPool)(Code)
Reset the entity handler.



setAllowJavaEncodings
public void setAllowJavaEncodings(boolean flag)(Code)



setCharDataHandler
public void setCharDataHandler(XMLEntityHandler.CharDataHandler charDataHandler)(Code)



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.



setEventHandler
public void setEventHandler(EventHandler eventHandler)(Code)



setReaderDepth
public void setReaderDepth(int depth)(Code)
This method is provided for scanner implementations.



setReaderFactory
public void setReaderFactory(XMLEntityReaderFactory readerFactory)(Code)
Set the reader factory.



setSendCharDataAsCharArray
public void setSendCharDataAsCharArray(boolean flag)(Code)
Set char data processing preference.



startEntityDecl
public boolean startEntityDecl(boolean isPE, int entityName) throws Exception(Code)
start an entity declaration



startReadingFromDocument
public boolean startReadingFromDocument(InputSource source) throws Exception(Code)



startReadingFromEntity
public boolean startReadingFromEntity(int entityName, int readerDepth, int context) throws Exception(Code)
start reading from an external entity



startReadingFromExternalSubset
public void startReadingFromExternalSubset(String publicId, String systemId, int readerDepth) throws Exception(Code)
start reading from an external DTD subset



stopReadingFromExternalSubset
public void stopReadingFromExternalSubset() throws Exception(Code)
stop reading from an external DTD subset



valueOfReferenceInAttValue
protected int valueOfReferenceInAttValue(int entityHandle) 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.