Java Doc for ParseCharStream.java in  » Web-Server » Rimfaxe-Web-Server » com » rimfaxe » xml » xmlreader » 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 » com.rimfaxe.xml.xmlreader 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   com.rimfaxe.xml.xmlreader.ParseCharStream

ParseCharStream
class ParseCharStream implements ParseSource(Code)
An XML character stream that has been parsed into a DOM tree. This class encapsulates the Sparta XML parsing.
Copyright (C) 2002 Hewlett-Packard Company. This file is part of Sparta, an XML Parser, DOM, and XPath library. This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

See Also:    GNU Lesser General Public License
version:
   $Date: 2003/01/27 23:30:58 $ $Revision: 1.4 $
author:
   Eamonn O'Brien-Strain
author:
   Sergio Marti


Field Summary
final public static  intHISTORY_LENGTH
    
final static  char[]QUOTE_CHARS
    

Constructor Summary
public  ParseCharStream(String systemId, char[] xmlData, ParseLog log, String encoding, ParseHandler handler)
    
public  ParseCharStream(String systemId, Reader reader, ParseLog log, String encoding, ParseHandler handler)
    
public  ParseCharStream(String systemId, Reader reader, char[] xmlData, ParseLog log, String encoding, ParseHandler handler)
     Parse XML document from characters stream according to W3C grammar.

Method Summary
 StringgetHistory()
    
 intgetLastCharRead()
    
public  intgetLineNumber()
     Last line number read by parser.
 ParseLoggetLog()
    
public  StringgetSystemId()
    
 booleanisChar(char expected)
    
 booleanisChar(char[] expected)
    
 booleanisComment()
    
 booleanisEntityValue()
    
static  booleanisIn(char ch, char[] expected)
    
 booleanisPi()
    
 booleanisReference()
    
 booleanisS()
    
 booleanisSymbol(char[] expected)
    
 charpeekChar()
    
 charreadChar()
    
 voidreadChar(char expected)
    
 charreadChar(char[] expected)
    
 voidreadComment()
    
 ElementreadElement(Element parentElement)
     Parse element using stream in document.
 StringreadEntityValue()
    
 voidreadEq()
    
 StringreadName()
    
 voidreadPi()
    
 voidreadPubidLiteral()
    
 StringreadReference()
    
 voidreadS()
    
 voidreadSymbol(char[] expected)
    
 voidreadSystemLiteral()
    
public  StringtoString()
    

Field Detail
HISTORY_LENGTH
final public static int HISTORY_LENGTH(Code)



QUOTE_CHARS
final static char[] QUOTE_CHARS(Code)




Constructor Detail
ParseCharStream
public ParseCharStream(String systemId, char[] xmlData, ParseLog log, String encoding, ParseHandler handler) throws ParseException, EncodingMismatchException, IOException(Code)
Constructor used when passing in XML stored in a string



ParseCharStream
public ParseCharStream(String systemId, Reader reader, ParseLog log, String encoding, ParseHandler handler) throws ParseException, EncodingMismatchException, IOException(Code)
Constructor used when passing in XML from a character stream



ParseCharStream
public ParseCharStream(String systemId, Reader reader, char[] xmlData, ParseLog log, String encoding, ParseHandler handler) throws ParseException, EncodingMismatchException, IOException(Code)
Parse XML document from characters stream according to W3C grammar. [1] document ::= prolog element Misc*
See Also:    * http://www.w3.org/TR/2000/REC-xml-20001006 *




Method Detail
getHistory
String getHistory()(Code)



getLastCharRead
int getLastCharRead()(Code)



getLineNumber
public int getLineNumber()(Code)
Last line number read by parser.



getLog
ParseLog getLog()(Code)



getSystemId
public String getSystemId()(Code)



isChar
boolean isChar(char expected) throws ParseException, IOException(Code)



isChar
boolean isChar(char[] expected) throws ParseException, IOException(Code)



isComment
boolean isComment() throws ParseException, IOException(Code)



isEntityValue
boolean isEntityValue() throws ParseException, IOException(Code)



isIn
static boolean isIn(char ch, char[] expected)(Code)



isPi
boolean isPi() throws ParseException, IOException(Code)



isReference
boolean isReference() throws ParseException, IOException(Code)



isS
boolean isS() throws ParseException, IOException(Code)



isSymbol
boolean isSymbol(char[] expected) throws ParseException, IOException(Code)



peekChar
char peekChar() throws ParseException, IOException(Code)



readChar
char readChar() throws ParseException, IOException(Code)
[2] Char ::= #x9 | #xA | #xD | [#x20-#xD7FF] | [#xE000-#xFFFD] | [#x10000-#x10FFFF]



readChar
void readChar(char expected) throws ParseException, IOException(Code)



readChar
char readChar(char[] expected) throws ParseException, IOException(Code)



readComment
void readComment() throws ParseException, IOException(Code)
[15] Comment ::= ''



readElement
Element readElement(Element parentElement) throws ParseException, IOException(Code)
Parse element using stream in document. [39] element ::= EmptyElemTag | STag content ETag



readEntityValue
String readEntityValue() throws ParseException, IOException(Code)
[9] EntityValue ::= '"' ( [^%&"] | PEReference | Reference )* '"'



readEq
void readEq() throws ParseException, IOException(Code)
[25] Eq ::= S? '=' S?



readName
String readName() throws ParseException, IOException(Code)
[5] Name ::= (Letter | '_' | ':') (NameChar)* [84] Letter ::= BaseChar | Ideographic



readPi
void readPi() throws ParseException, IOException(Code)
[16] PI ::= '' Char*)))? '?>'



readPubidLiteral
void readPubidLiteral() throws ParseException, IOException(Code)
[12] PubidLiteral ::= '"' PubidChar* '"' | "'" (PubidChar - "'")* "'"



readReference
String readReference() throws ParseException, IOException(Code)
[67] Reference ::= EntityRef | CharRef



readS
void readS() throws ParseException, IOException(Code)
[3] S ::= (#x20 | #x9 | #xD | #xA)+



readSymbol
void readSymbol(char[] expected) throws ParseException, IOException(Code)



readSystemLiteral
void readSystemLiteral() throws ParseException, IOException(Code)
[11] SystemLiteral ::= ('"' [^"]* '"') | ("'" [^']* "'")



toString
public String toString()(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.