Java Doc for InputEntity.java in  » 6.0-JDK-Modules » jaxb-xjc » com » sun » xml » dtdparser » 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 » 6.0 JDK Modules » jaxb xjc » com.sun.xml.dtdparser 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   com.sun.xml.dtdparser.InputEntity

InputEntity
public class InputEntity (Code)
This is how the parser talks to its input entities, of all kinds. The entities are in a stack.

For internal entities, the character arrays are referenced here, and read from as needed (they're read-only). External entities have mutable buffers, that are read into as needed.

Note: This maps CRLF (and CR) to LF without regard for whether it's in an external (parsed) entity or not. The XML 1.0 spec is inconsistent in explaining EOL handling; this is the sensible way.
author:
   David Brownell
author:
   Janet Koenig
version:
   1.4 00/08/05





Method Summary
public  voidclose()
    
public  intgetColumnNumber()
    
public  StringgetEncoding()
     Returns the name of the encoding in use, else null; the name returned is in as standard a form as we can get.
public static  InputEntitygetInputEntity(DTDEventListener h, Locale l)
    
public  intgetLineNumber()
    
public  StringgetName()
    
public  chargetNameChar()
     returns the next name char, or NUL ...
public  StringgetPublicId()
    
public  StringgetSystemId()
    
public  chargetc()
     gets the next Java character -- might be part of an XML text character represented by a surrogate pair, or be the end of the entity.
public  booleanignorableWhitespace(DTDEventListener handler)
    
public  voidinit(InputSource in, String name, InputEntity stack, boolean isPE)
    
public  voidinit(char b, String name, InputEntity stack, boolean isPE)
    
public  booleanisDocument()
    
public  booleanisEOF()
     returns true iff there's no more data to consume ...
public  booleanisInternal()
    
public  booleanisParameterEntity()
    
public  booleanmaybeWhitespace()
    
public  booleanparsedContent(DTDEventListener docHandler)
     normal content; whitespace in markup may be handled specially if the parser uses the content model.
public  booleanpeek(String next, char chars)
     returns false iff 'next' string isn't as provided, else skips that text and returns true.
public  booleanpeekc(char c)
    
public  InputEntitypop()
    
public  StringrememberText()
    
public  voidstartRemembering()
    
public  voidungetc()
    
public  booleanunparsedContent(DTDEventListener docHandler, boolean ignorableWhitespace, String whitespaceInvalidMessage)
     CDATA -- character data, terminated by "]]>" and optionally including unescaped markup delimiters (ampersand and left angle bracket).



Method Detail
close
public void close()(Code)



getColumnNumber
public int getColumnNumber()(Code)
returns -1; maintaining column numbers hurts performance



getEncoding
public String getEncoding()(Code)
Returns the name of the encoding in use, else null; the name returned is in as standard a form as we can get.



getInputEntity
public static InputEntity getInputEntity(DTDEventListener h, Locale l)(Code)



getLineNumber
public int getLineNumber()(Code)
Returns the current line number in this input source



getName
public String getName()(Code)



getNameChar
public char getNameChar() throws IOException, SAXException(Code)
returns the next name char, or NUL ... faster than getc(), and the common "name or nmtoken must be next" case won't need ungetc().



getPublicId
public String getPublicId()(Code)
Returns the public ID of this input source, if known



getSystemId
public String getSystemId()(Code)
Returns the system ID of this input source, if known



getc
public char getc() throws IOException, SAXException(Code)
gets the next Java character -- might be part of an XML text character represented by a surrogate pair, or be the end of the entity.



ignorableWhitespace
public boolean ignorableWhitespace(DTDEventListener handler) throws IOException, SAXException(Code)
whitespace in markup (flagged to app, discardable)

the document handler's ignorableWhitespace() method is called on all the whitespace found




init
public void init(InputSource in, String name, InputEntity stack, boolean isPE) throws IOException, SAXException(Code)



init
public void init(char b, String name, InputEntity stack, boolean isPE) throws SAXException(Code)



isDocument
public boolean isDocument()(Code)



isEOF
public boolean isEOF() throws IOException, SAXException(Code)
returns true iff there's no more data to consume ...



isInternal
public boolean isInternal()(Code)



isParameterEntity
public boolean isParameterEntity()(Code)



maybeWhitespace
public boolean maybeWhitespace() throws IOException, SAXException(Code)
optional grammatical whitespace (discarded)



parsedContent
public boolean parsedContent(DTDEventListener docHandler) throws IOException, SAXException(Code)
normal content; whitespace in markup may be handled specially if the parser uses the content model.

content terminates with markup delimiter characters, namely ampersand (&) and left angle bracket (<).

the document handler's characters() method is called on all the content found




peek
public boolean peek(String next, char chars) throws IOException, SAXException(Code)
returns false iff 'next' string isn't as provided, else skips that text and returns true.

NOTE: two alternative string representations are both passed in, since one is faster.




peekc
public boolean peekc(char c) throws IOException, SAXException(Code)
lookahead one character



pop
public InputEntity pop() throws IOException(Code)



rememberText
public String rememberText()(Code)



startRemembering
public void startRemembering()(Code)



ungetc
public void ungetc()(Code)
two character pushback is guaranteed



unparsedContent
public boolean unparsedContent(DTDEventListener docHandler, boolean ignorableWhitespace, String whitespaceInvalidMessage) throws IOException, SAXException(Code)
CDATA -- character data, terminated by "]]>" and optionally including unescaped markup delimiters (ampersand and left angle bracket). This should otherwise be exactly like character data, modulo differences in error report details.

The document handler's characters() or ignorableWhitespace() methods are invoked on all the character data found
Parameters:
  docHandler - gets callbacks for character data
Parameters:
  ignorableWhitespace - if true, whitespace characters willbe reported using docHandler.ignorableWhitespace(); implicitly,non-whitespace characters will cause validation errors
Parameters:
  whitespaceInvalidMessage - if true, ignorable whitespacecauses a validity error report as well as a callback




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.