Java Doc for AbstractParser.java in  » EJB-Server-resin-3.1.5 » resin » com » caucho » xml2 » 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 » EJB Server resin 3.1.5 » resin » com.caucho.xml2 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   com.caucho.xml2.AbstractParser

All known Subclasses:   com.caucho.xml2.XmlParser,
AbstractParser
abstract public class AbstractParser implements XMLReader,Parser(Code)


Field Summary
final static  L10NL
    
static  Hashtable<String, String>_attrTypes
    
 DOMBuilder_builder
    
 ContentHandler_contentHandler
    
 String_defaultEncoding
    
 QDocumentType_dtd
    
 DTDHandler_dtdHandler
    
 Entities_entities
    
 boolean_entitiesAsText
    
 EntityResolver_entityResolver
    
 ErrorHandler_errorHandler
    
 boolean_expandEntities
    
 String_filename
    
 boolean_isCoalescing
    
 boolean_isNamespaceAware
    
 boolean_isNamespacePrefixes
    
 boolean_isSAXNamespaces
    
 boolean_isStaticEncoding
    
 boolean_isValidating
    
 boolean_isXmlnsAttribute
    
 boolean_isXmlnsPrefix
    
 LexicalHandler_lexicalHandler
    
 int_line
    
 Locale_locale
    
 boolean_optionalTags
    
 QDocument_owner
    
 String_publicId
    
 Path_searchPath
    
 boolean_singleTopElement
    
 boolean_skipComments
    
 boolean_skipWhitespace
    
 boolean_strictAttributes
    
 boolean_strictCharacters
    
 boolean_strictComments
    
 boolean_strictXml
    
 String_systemId
    
static  Entities_xmlEntities
    
final static  Loggerlog
    

Constructor Summary
 AbstractParser()
     Creates a new parser with the XmlPolicy and a new dtd.
 AbstractParser(QDocumentType dtd)
     Creates a new parser with a given policy and dtd.

Method Summary
 voidclear()
    
public  ContentHandlergetContentHandler()
    
public  DTDHandlergetDTDHandler()
    
public  StringgetDefaultEncoding()
     Gets the default encoding if none is specified.
public  booleangetEntitiesAsText()
    
public  EntityResolvergetEntityResolver()
     Sets the callback object finding files from system ids.
public  ErrorHandlergetErrorHandler()
    
public  booleangetFeature(String name)
    
public  ObjectgetProperty(String name)
    
public  booleangetSkipComments()
    
 voidinit()
    
public  booleanisCoalescing()
     Returns true if text and cdata nodes will be combined.
public  booleanisNamespaceAware()
     Returns true if the parsing is namespace aware.
public  booleanisNamespacePrefixes()
    
public  booleanisSAXNamespaces()
    
public  booleanisValidating()
    
protected  InputStreamopenSource(InputSource source)
    
public  InputStreamopenStream(String systemId, String publicId)
     Looks up an input stream from the system id.
public  InputStreamopenStream(String systemId, String publicId, EntityResolver entityResolver)
     Looks up an input stream from the system id.
protected  InputStreamopenStream(String systemId, String publicId, EntityResolver entityResolver, boolean isTop)
     Looks up an input stream from the system id.
public  InputStreamopenTopStream(String systemId, String publicId)
     Looks up an input stream from the system id.
public  voidparse(InputSource source)
    
public  voidparse(InputStream is)
    
public  voidparse(InputStream is, String systemId)
    
public  voidparse(String systemId)
    
public  voidparse(Path path)
    
public  DocumentparseDocument(InputSource source)
    
public  DocumentparseDocument(String systemId)
     Parses a document from system path.
public  DocumentparseDocument(Path path)
    
public  DocumentparseDocument(InputStream is)
    
public  DocumentparseDocument(InputStream is, String systemId)
     Parses an input stream into a DOM document
Parameters:
  is - the input stream containing the XML
Parameters:
  systemId - the URL of the stream.
public  voidparseDocument(QDocument doc, InputStream is, String systemId)
    
public  DocumentparseDocumentString(String string)
    
public  voidparseImpl(InputStream is, String systemId)
    
abstract  DocumentparseInt(ReadStream is)
     Parse the document from a read stream.
Parameters:
  is - read stream to parse from.
public  voidparseString(String string)
     SAX parsing from a string.
public  voidsetCoalescing(boolean isCoalescing)
     Set true if text and cdata nodes should be combined.
public  voidsetConfig(DocumentBuilderFactory factory)
     Sets the configuration for a document builder.
public  voidsetContentHandler(ContentHandler handler)
    
public  voidsetDTDHandler(DTDHandler handler)
    
public  voidsetDefaultEncoding(String encoding)
     Sets the default encoding if none is specified.
public  voidsetDocumentHandler(DocumentHandler handler)
     Configures the document handler callback.
public  voidsetEntitiesAsText(boolean entitiesAsText)
    
public  voidsetEntityResolver(EntityResolver resolver)
     Sets the callback object to find files.
public  voidsetErrorHandler(ErrorHandler handler)
    
public  voidsetExpandEntities(boolean expandEntities)
    
public  voidsetFeature(String name, boolean value)
    
public  voidsetLexicalHandler(LexicalHandler handler)
    
public  voidsetLocale(Locale locale)
    
public  voidsetNamespaceAware(boolean isNamespaceAware)
     Set true if the parsing is namespace aware.
public  voidsetNamespacePrefixes(boolean isNamespaces)
    
public  voidsetOwner(QDocument doc)
     Sets the owner.
public  voidsetProperty(String name, Object obj)
    
public  voidsetSAXNamespaces(boolean isNamespaces)
    
public  voidsetSkipComments(boolean skipComments)
     Set to true if comments should be skipped.
public  voidsetSkipWhitespace(boolean skipWhitespace)
     Set to true if ignorable-whitespace should be skipped.
public  voidsetValidating(boolean isValidating)
    

Field Detail
L
final static L10N L(Code)



_attrTypes
static Hashtable<String, String> _attrTypes(Code)



_builder
DOMBuilder _builder(Code)



_contentHandler
ContentHandler _contentHandler(Code)



_defaultEncoding
String _defaultEncoding(Code)



_dtd
QDocumentType _dtd(Code)



_dtdHandler
DTDHandler _dtdHandler(Code)



_entities
Entities _entities(Code)



_entitiesAsText
boolean _entitiesAsText(Code)



_entityResolver
EntityResolver _entityResolver(Code)



_errorHandler
ErrorHandler _errorHandler(Code)



_expandEntities
boolean _expandEntities(Code)



_filename
String _filename(Code)



_isCoalescing
boolean _isCoalescing(Code)



_isNamespaceAware
boolean _isNamespaceAware(Code)



_isNamespacePrefixes
boolean _isNamespacePrefixes(Code)



_isSAXNamespaces
boolean _isSAXNamespaces(Code)



_isStaticEncoding
boolean _isStaticEncoding(Code)



_isValidating
boolean _isValidating(Code)



_isXmlnsAttribute
boolean _isXmlnsAttribute(Code)



_isXmlnsPrefix
boolean _isXmlnsPrefix(Code)



_lexicalHandler
LexicalHandler _lexicalHandler(Code)



_line
int _line(Code)



_locale
Locale _locale(Code)



_optionalTags
boolean _optionalTags(Code)



_owner
QDocument _owner(Code)



_publicId
String _publicId(Code)



_searchPath
Path _searchPath(Code)



_singleTopElement
boolean _singleTopElement(Code)



_skipComments
boolean _skipComments(Code)



_skipWhitespace
boolean _skipWhitespace(Code)



_strictAttributes
boolean _strictAttributes(Code)



_strictCharacters
boolean _strictCharacters(Code)



_strictComments
boolean _strictComments(Code)



_strictXml
boolean _strictXml(Code)



_systemId
String _systemId(Code)



_xmlEntities
static Entities _xmlEntities(Code)



log
final static Logger log(Code)




Constructor Detail
AbstractParser
AbstractParser()(Code)
Creates a new parser with the XmlPolicy and a new dtd.



AbstractParser
AbstractParser(QDocumentType dtd)(Code)
Creates a new parser with a given policy and dtd.
Parameters:
  policy - the parsing policy, handling optional tags.
Parameters:
  dtd - the parser's dtd.




Method Detail
clear
void clear()(Code)



getContentHandler
public ContentHandler getContentHandler()(Code)



getDTDHandler
public DTDHandler getDTDHandler()(Code)



getDefaultEncoding
public String getDefaultEncoding()(Code)
Gets the default encoding if none is specified.



getEntitiesAsText
public boolean getEntitiesAsText()(Code)



getEntityResolver
public EntityResolver getEntityResolver()(Code)
Sets the callback object finding files from system ids. the resolver to find files.



getErrorHandler
public ErrorHandler getErrorHandler()(Code)



getFeature
public boolean getFeature(String name) throws SAXNotRecognizedException(Code)



getProperty
public Object getProperty(String name) throws SAXNotRecognizedException(Code)



getSkipComments
public boolean getSkipComments()(Code)



init
void init()(Code)



isCoalescing
public boolean isCoalescing()(Code)
Returns true if text and cdata nodes will be combined.



isNamespaceAware
public boolean isNamespaceAware()(Code)
Returns true if the parsing is namespace aware.



isNamespacePrefixes
public boolean isNamespacePrefixes()(Code)
Returns true if the parsing uses namespace prefixes



isSAXNamespaces
public boolean isSAXNamespaces()(Code)
Returns true if the parsing uses sax namespaces



isValidating
public boolean isValidating()(Code)
Returns true if the XML should be validated



openSource
protected InputStream openSource(InputSource source) throws IOException, SAXException(Code)
Opens the source



openStream
public InputStream openStream(String systemId, String publicId) throws IOException, SAXException(Code)
Looks up an input stream from the system id.



openStream
public InputStream openStream(String systemId, String publicId, EntityResolver entityResolver) throws IOException, SAXException(Code)
Looks up an input stream from the system id.



openStream
protected InputStream openStream(String systemId, String publicId, EntityResolver entityResolver, boolean isTop) throws IOException, SAXException(Code)
Looks up an input stream from the system id.



openTopStream
public InputStream openTopStream(String systemId, String publicId) throws IOException, SAXException(Code)
Looks up an input stream from the system id.



parse
public void parse(InputSource source) throws IOException, SAXException(Code)
SAX parsing from a SAX InputSource
Parameters:
  source - source containing the XML



parse
public void parse(InputStream is) throws IOException, SAXException(Code)
SAX parsing from an InputStream
Parameters:
  is - stream containing the XML



parse
public void parse(InputStream is, String systemId) throws IOException, SAXException(Code)
SAX parsing from an InputStream
Parameters:
  is - stream containing the XML



parse
public void parse(String systemId) throws IOException, SAXException(Code)
SAX parsing from a file path
Parameters:
  systemId - path to the file containing the XML



parse
public void parse(Path path) throws IOException, SAXException(Code)
SAX parsing from a VFS path



parseDocument
public Document parseDocument(InputSource source) throws IOException, SAXException(Code)
Parses a document from a SAX InputSource
Parameters:
  source - SAX InputSource containing the XML data.



parseDocument
public Document parseDocument(String systemId) throws IOException, SAXException(Code)
Parses a document from system path.
Parameters:
  systemId - path to the XML data.



parseDocument
public Document parseDocument(Path path) throws IOException, SAXException(Code)
Parses a document from a VFS path
Parameters:
  path - the VFS path containing the XML document.



parseDocument
public Document parseDocument(InputStream is) throws IOException, SAXException(Code)
Parses an input stream into a DOM document
Parameters:
  is - the input stream containing the XML the parsed document.



parseDocument
public Document parseDocument(InputStream is, String systemId) throws IOException, SAXException(Code)
Parses an input stream into a DOM document
Parameters:
  is - the input stream containing the XML
Parameters:
  systemId - the URL of the stream. the parsed document.



parseDocument
public void parseDocument(QDocument doc, InputStream is, String systemId) throws IOException, SAXException(Code)



parseDocumentString
public Document parseDocumentString(String string) throws IOException, SAXException(Code)
Parses a string into a DOM document
Parameters:
  string - the string containing the XML



parseImpl
public void parseImpl(InputStream is, String systemId) throws IOException, SAXException(Code)
SAX parsing from an InputStream
Parameters:
  is - stream containing the XML



parseInt
abstract Document parseInt(ReadStream is) throws IOException, SAXException(Code)
Parse the document from a read stream.
Parameters:
  is - read stream to parse from. The parsed document.



parseString
public void parseString(String string) throws IOException, SAXException(Code)
SAX parsing from a string.
Parameters:
  string - string containing the XML



setCoalescing
public void setCoalescing(boolean isCoalescing)(Code)
Set true if text and cdata nodes should be combined.



setConfig
public void setConfig(DocumentBuilderFactory factory)(Code)
Sets the configuration for a document builder.



setContentHandler
public void setContentHandler(ContentHandler handler)(Code)



setDTDHandler
public void setDTDHandler(DTDHandler handler)(Code)



setDefaultEncoding
public void setDefaultEncoding(String encoding)(Code)
Sets the default encoding if none is specified.
Parameters:
  encoding - the default encoding



setDocumentHandler
public void setDocumentHandler(DocumentHandler handler)(Code)
Configures the document handler callback.
Parameters:
  handler - the new document handler.



setEntitiesAsText
public void setEntitiesAsText(boolean entitiesAsText)(Code)



setEntityResolver
public void setEntityResolver(EntityResolver resolver)(Code)
Sets the callback object to find files.
Parameters:
  resolver - the object to find files.



setErrorHandler
public void setErrorHandler(ErrorHandler handler)(Code)



setExpandEntities
public void setExpandEntities(boolean expandEntities)(Code)



setFeature
public void setFeature(String name, boolean value) throws SAXNotSupportedException(Code)



setLexicalHandler
public void setLexicalHandler(LexicalHandler handler)(Code)



setLocale
public void setLocale(Locale locale)(Code)



setNamespaceAware
public void setNamespaceAware(boolean isNamespaceAware)(Code)
Set true if the parsing is namespace aware.



setNamespacePrefixes
public void setNamespacePrefixes(boolean isNamespaces)(Code)
Set true if the parsing uses sax namespaces



setOwner
public void setOwner(QDocument doc)(Code)
Sets the owner.



setProperty
public void setProperty(String name, Object obj) throws SAXNotSupportedException(Code)



setSAXNamespaces
public void setSAXNamespaces(boolean isNamespaces)(Code)
Set true if the parsing uses sax namespaces



setSkipComments
public void setSkipComments(boolean skipComments)(Code)
Set to true if comments should be skipped. If false events will be generated for the comments.



setSkipWhitespace
public void setSkipWhitespace(boolean skipWhitespace)(Code)
Set to true if ignorable-whitespace should be skipped.



setValidating
public void setValidating(boolean isValidating)(Code)
Set true if the XML should be validated



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.