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


java.lang.Object
   com.caucho.xml.AbstractParser
      com.caucho.xml.XmlParser

All known Subclasses:   com.caucho.xml.Html,  com.caucho.xml.LooseXml,  com.caucho.xml.LooseHtml,  com.caucho.xml.Xml,
XmlParser
public class XmlParser extends AbstractParser (Code)
A configurable XML parser. Loose versions of XML and HTML are supported by changing the Policy object.

Normally, applications will use Xml, LooseXml, Html, or LooseHtml.


Inner Class :public static class LocatorImpl implements ExtendedLocator

Field Summary
final static  QNameDOC_NAME
    
final static  QNameJSP_ATTRIBUTE_NAME
    
final static  QNameJSP_NAME
    
final static  QNameTEXT_NAME
    
final static  QNameWHITESPACE_NAME
    
final public static  StringXML
    
final public static  StringXMLNS
    
 QName_activeNode
    
 ArrayList<String>_attrNames
    
 ArrayList<String>_attrValues
    
 QAttributes_attributes
    
 CharBuffer_buf
    
 CharBuffer_cb
    
 int[]_elementLines
    
 QName[]_elementNames
    
 int_elementTop
    
 CharBuffer_eltName
    
 String_extPublicId
    
 String_extSystemId
    
 boolean_hasDoctype
    
 boolean_hasTopElement
    
 boolean_inDtd
    
 ReadStream_is
    
 boolean_isHtml
    
 boolean_isIgnorableWhitespace
    
 boolean_isJspText
    
 boolean_isTagStart
    
 Locator_locator
    
 MacroReader_macro
    
 char[]_macroBuffer
    
 int_macroIndex
    
 int_macroLength
    
 CharBuffer_name
    
 CharBuffer_nameBuffer
    
 NamespaceMap_namespaceMap
    
 NamespaceMap[]_namespaces
    
 QAttributes_nullAttributes
    
 XmlReader_reader
    
 boolean_stopOnIncludeEnd
    
 CharBuffer_text
    
 char[]_textBuffer
    
 int_textCapacity
    
 String_textFilename
    
 int_textLength
    
 int_textLine
    
 QName_topNamespaceNode
    

Constructor Summary
public  XmlParser()
    
 XmlParser(Policy policy, QDocumentType dtd)
     Creates a new parser with a given parsing policy and dtd.

Method Summary
static  StringbadChar(int ch)
     Returns a user-readable string for an error character.
 XmlParseExceptionerror(String text)
     Returns an error including the current line.
public  voidfree()
    
public  intgetColumnNumber()
    
public  StringgetFilename()
     Returns the current filename.
public  intgetLine()
     Returns the current line.
public  intgetLineNumber()
    
 intgetNodeLine()
     Returns the opening line of the current node.
public  StringgetPublicId()
     Returns the current public id being read.
public  StringgetSystemId()
     Returns the current system id being read.
 voidinit()
     Initialize the parser.
 DocumentparseInt(ReadStream is)
     Parse the document from a read stream.
Parameters:
  is - read stream to parse from.
public  voidpushNamespace(String prefix, String uri)
    
public  voidsetLine(int line)
    
public  voidsetReader(XmlReader reader)
    
public  voidunread(int ch)
    

Field Detail
DOC_NAME
final static QName DOC_NAME(Code)



JSP_ATTRIBUTE_NAME
final static QName JSP_ATTRIBUTE_NAME(Code)



JSP_NAME
final static QName JSP_NAME(Code)



TEXT_NAME
final static QName TEXT_NAME(Code)



WHITESPACE_NAME
final static QName WHITESPACE_NAME(Code)



XML
final public static String XML(Code)



XMLNS
final public static String XMLNS(Code)



_activeNode
QName _activeNode(Code)



_attrNames
ArrayList<String> _attrNames(Code)



_attrValues
ArrayList<String> _attrValues(Code)



_attributes
QAttributes _attributes(Code)



_buf
CharBuffer _buf(Code)



_cb
CharBuffer _cb(Code)



_elementLines
int[] _elementLines(Code)



_elementNames
QName[] _elementNames(Code)



_elementTop
int _elementTop(Code)



_eltName
CharBuffer _eltName(Code)



_extPublicId
String _extPublicId(Code)



_extSystemId
String _extSystemId(Code)



_hasDoctype
boolean _hasDoctype(Code)



_hasTopElement
boolean _hasTopElement(Code)



_inDtd
boolean _inDtd(Code)



_is
ReadStream _is(Code)



_isHtml
boolean _isHtml(Code)



_isIgnorableWhitespace
boolean _isIgnorableWhitespace(Code)



_isJspText
boolean _isJspText(Code)



_isTagStart
boolean _isTagStart(Code)



_locator
Locator _locator(Code)



_macro
MacroReader _macro(Code)



_macroBuffer
char[] _macroBuffer(Code)



_macroIndex
int _macroIndex(Code)



_macroLength
int _macroLength(Code)



_name
CharBuffer _name(Code)



_nameBuffer
CharBuffer _nameBuffer(Code)



_namespaceMap
NamespaceMap _namespaceMap(Code)



_namespaces
NamespaceMap[] _namespaces(Code)



_nullAttributes
QAttributes _nullAttributes(Code)



_reader
XmlReader _reader(Code)



_stopOnIncludeEnd
boolean _stopOnIncludeEnd(Code)



_text
CharBuffer _text(Code)



_textBuffer
char[] _textBuffer(Code)



_textCapacity
int _textCapacity(Code)



_textFilename
String _textFilename(Code)



_textLength
int _textLength(Code)



_textLine
int _textLine(Code)



_topNamespaceNode
QName _topNamespaceNode(Code)




Constructor Detail
XmlParser
public XmlParser()(Code)



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




Method Detail
badChar
static String badChar(int ch)(Code)
Returns a user-readable string for an error character.



error
XmlParseException error(String text)(Code)
Returns an error including the current line.
Parameters:
  text - the error message text.



free
public void free()(Code)



getColumnNumber
public int getColumnNumber()(Code)



getFilename
public String getFilename()(Code)
Returns the current filename.



getLine
public int getLine()(Code)
Returns the current line.



getLineNumber
public int getLineNumber()(Code)



getNodeLine
int getNodeLine()(Code)
Returns the opening line of the current node.



getPublicId
public String getPublicId()(Code)
Returns the current public id being read.



getSystemId
public String getSystemId()(Code)
Returns the current system id being read.



init
void init()(Code)
Initialize the parser.



parseInt
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.



pushNamespace
public void pushNamespace(String prefix, String uri)(Code)



setLine
public void setLine(int line)(Code)



setReader
public void setReader(XmlReader reader)(Code)



unread
public void unread(int ch)(Code)



Fields inherited from com.caucho.xml.AbstractParser
final static L10N L(Code)(Java Doc)
static Hashtable<String, String> _attrTypes(Code)(Java Doc)
DOMBuilder _builder(Code)(Java Doc)
ContentHandler _contentHandler(Code)(Java Doc)
String _defaultEncoding(Code)(Java Doc)
boolean _doResinInclude(Code)(Java Doc)
QDocumentType _dtd(Code)(Java Doc)
DTDHandler _dtdHandler(Code)(Java Doc)
Entities _entities(Code)(Java Doc)
boolean _entitiesAsText(Code)(Java Doc)
EntityResolver _entityResolver(Code)(Java Doc)
ErrorHandler _errorHandler(Code)(Java Doc)
boolean _expandEntities(Code)(Java Doc)
boolean _extraForgiving(Code)(Java Doc)
String _filename(Code)(Java Doc)
boolean _forgiving(Code)(Java Doc)
boolean _isCoalescing(Code)(Java Doc)
boolean _isJsp(Code)(Java Doc)
boolean _isNamespaceAware(Code)(Java Doc)
boolean _isNamespacePrefixes(Code)(Java Doc)
boolean _isSAXNamespaces(Code)(Java Doc)
boolean _isStaticEncoding(Code)(Java Doc)
boolean _isValidating(Code)(Java Doc)
boolean _isXmlnsAttribute(Code)(Java Doc)
boolean _isXmlnsPrefix(Code)(Java Doc)
LexicalHandler _lexicalHandler(Code)(Java Doc)
int _line(Code)(Java Doc)
Locale _locale(Code)(Java Doc)
boolean _normalizeWhitespace(Code)(Java Doc)
boolean _optionalTags(Code)(Java Doc)
QDocument _owner(Code)(Java Doc)
Policy _policy(Code)(Java Doc)
String _publicId(Code)(Java Doc)
Path _searchPath(Code)(Java Doc)
boolean _singleTopElement(Code)(Java Doc)
boolean _skipComments(Code)(Java Doc)
boolean _skipWhitespace(Code)(Java Doc)
boolean _strictAttributes(Code)(Java Doc)
boolean _strictCharacters(Code)(Java Doc)
boolean _strictComments(Code)(Java Doc)
boolean _strictXml(Code)(Java Doc)
boolean _switchToXml(Code)(Java Doc)
String _systemId(Code)(Java Doc)
static Entities _xmlEntities(Code)(Java Doc)
final static Logger log(Code)(Java Doc)

Methods inherited from com.caucho.xml.AbstractParser
void clear()(Code)(Java Doc)
public ContentHandler getContentHandler()(Code)(Java Doc)
public DTDHandler getDTDHandler()(Code)(Java Doc)
public String getDefaultEncoding()(Code)(Java Doc)
public boolean getEntitiesAsText()(Code)(Java Doc)
public EntityResolver getEntityResolver()(Code)(Java Doc)
public ErrorHandler getErrorHandler()(Code)(Java Doc)
public boolean getFeature(String name) throws SAXNotRecognizedException(Code)(Java Doc)
public boolean getForgiving()(Code)(Java Doc)
public boolean getJsp()(Code)(Java Doc)
public Object getProperty(String name) throws SAXNotRecognizedException(Code)(Java Doc)
public boolean getResinInclude()(Code)(Java Doc)
public Path getSearchPath()(Code)(Java Doc)
public boolean getSkipComments()(Code)(Java Doc)
void init()(Code)(Java Doc)
public boolean isCoalescing()(Code)(Java Doc)
public boolean isNamespaceAware()(Code)(Java Doc)
public boolean isNamespacePrefixes()(Code)(Java Doc)
public boolean isSAXNamespaces()(Code)(Java Doc)
public boolean isValidating()(Code)(Java Doc)
protected InputStream openSource(InputSource source) throws IOException, SAXException(Code)(Java Doc)
public InputStream openStream(String systemId, String publicId) throws IOException, SAXException(Code)(Java Doc)
public InputStream openStream(String systemId, String publicId, EntityResolver entityResolver) throws IOException, SAXException(Code)(Java Doc)
protected InputStream openStream(String systemId, String publicId, EntityResolver entityResolver, boolean isTop) throws IOException, SAXException(Code)(Java Doc)
public InputStream openTopStream(String systemId, String publicId) throws IOException, SAXException(Code)(Java Doc)
public void parse(InputSource source) throws IOException, SAXException(Code)(Java Doc)
public void parse(InputStream is) throws IOException, SAXException(Code)(Java Doc)
public void parse(InputStream is, String systemId) throws IOException, SAXException(Code)(Java Doc)
public void parse(String systemId) throws IOException, SAXException(Code)(Java Doc)
public void parse(Path path) throws IOException, SAXException(Code)(Java Doc)
public Document parseDocument(InputSource source) throws IOException, SAXException(Code)(Java Doc)
public Document parseDocument(String systemId) throws IOException, SAXException(Code)(Java Doc)
public Document parseDocument(Path path) throws IOException, SAXException(Code)(Java Doc)
public Document parseDocument(InputStream is) throws IOException, SAXException(Code)(Java Doc)
public Document parseDocument(InputStream is, String systemId) throws IOException, SAXException(Code)(Java Doc)
public void parseDocument(QDocument doc, InputStream is, String systemId) throws IOException, SAXException(Code)(Java Doc)
public Document parseDocumentString(String string) throws IOException, SAXException(Code)(Java Doc)
public void parseImpl(InputStream is, String systemId) throws IOException, SAXException(Code)(Java Doc)
abstract Document parseInt(ReadStream is) throws IOException, SAXException(Code)(Java Doc)
public void parseString(String string) throws IOException, SAXException(Code)(Java Doc)
public void setAutodetectXml(boolean autodetectXml)(Code)(Java Doc)
public void setCoalescing(boolean isCoalescing)(Code)(Java Doc)
public void setConfig(DocumentBuilderFactory factory)(Code)(Java Doc)
public void setContentHandler(ContentHandler handler)(Code)(Java Doc)
public void setDTDHandler(DTDHandler handler)(Code)(Java Doc)
public void setDefaultEncoding(String encoding)(Code)(Java Doc)
public void setDocumentHandler(DocumentHandler handler)(Code)(Java Doc)
public void setEntitiesAsText(boolean entitiesAsText)(Code)(Java Doc)
public void setEntityResolver(EntityResolver resolver)(Code)(Java Doc)
public void setErrorHandler(ErrorHandler handler)(Code)(Java Doc)
public void setExpandEntities(boolean expandEntities)(Code)(Java Doc)
public void setFeature(String name, boolean value) throws SAXNotSupportedException(Code)(Java Doc)
public void setFilename(String filename)(Code)(Java Doc)
public void setForgiving(boolean forgiving)(Code)(Java Doc)
public void setJsp(boolean isJsp)(Code)(Java Doc)
public void setLexicalHandler(LexicalHandler handler)(Code)(Java Doc)
public void setLocale(Locale locale)(Code)(Java Doc)
public void setNamespaceAware(boolean isNamespaceAware)(Code)(Java Doc)
public void setNamespacePrefixes(boolean isNamespaces)(Code)(Java Doc)
public void setOwner(QDocument doc)(Code)(Java Doc)
public void setProperty(String name, Object obj) throws SAXNotSupportedException(Code)(Java Doc)
public void setResinInclude(boolean doResinInclude)(Code)(Java Doc)
public void setSAXNamespaces(boolean isNamespaces)(Code)(Java Doc)
public void setSearchPath(Path path)(Code)(Java Doc)
public void setSkipComments(boolean skipComments)(Code)(Java Doc)
public void setSkipWhitespace(boolean skipWhitespace)(Code)(Java Doc)
public void setToLower(boolean toLower)(Code)(Java Doc)
public void setValidating(boolean isValidating)(Code)(Java Doc)

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.