Java Doc for JspReader.java in  » Portal » Open-Portal » com » sun » portal » providers » jsp » jasper3 » jasper » compiler » 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 » Portal » Open Portal » com.sun.portal.providers.jsp.jasper3.jasper.compiler 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   com.sun.portal.providers.jsp.jasper3.jasper.compiler.JspReader

JspReader
public class JspReader (Code)
JspReader is an input buffer for the JSP parser. It should allow unlimited lookahead and pushback. It also has a bunch of parsing utility methods for understanding htmlesque thingies.
author:
   Anil K. Vijendran
author:
   Anselm Baird-Smith
author:
   Harish Prabandham
author:
   Rajiv Mordani
author:
   Mandar Raje


Field Summary
 intcurrFileId
    
protected  Markcurrent
    
 StringdefEncoding
    
 Stringmaster
    
 intsize
    
 VectorsourceFiles
    

Constructor Summary
protected  JspReader(String file, JspCompilationContext ctx, String encoding)
    

Method Summary
public  voidadvance(int n)
    
public static  JspReadercreateJspReader(String file, JspCompilationContext ctx, String encoding)
    
 char[]getChars(Mark start, Mark stop)
    
public  StringgetFile(int fileid)
    
public  booleanhasMoreInput()
    
final  booleanisSpace()
    
public  Markmark()
    
public  booleanmatches(String string)
    
public  booleanmatchesIgnoreCase(String string)
    
public  intnextChar()
    
 StringnextContent()
     Gets Content until the next potential JSP element.
public  voidparseParamTag(Hashtable into)
     Parse PARAM tag attributes into the given hashtable.
public  voidparsePluginParamTag(Hashtable into)
     Parse jsp:param tag attributes into the given hashtable.
public  HashtableparseTagAttributes()
     Parse some tag attributes. The stream is assumed to be positioned right after the tag name.
public  HashtableparseTagAttributesBean()
     Parse some tag attributes for Beans. The stream is assumed to be positioned right after the tag name.
public  StringparseToken(boolean quoted)
     Parse a space delimited token.
public  intpeekChar()
    
public  booleanpopFile()
    
public  voidpushFile(String name, String encoding)
     Push a new file to be parsed onto the stack.
protected  intregisterSourceFile(String file)
     Register a new source file. This method is used to implement file inclusion.
public  voidreset(Mark mark)
    
public  intskipSpaces()
    
public  MarkskipUntil(String limit)
     Skip until the given string is matched in the stream. When returned, the context is positioned past the end of the match.
Parameters:
  s - The String to match.
protected  intunregisterSourceFile(String file)
     Unregister the source file. This method is used to implement file inclusion.

Field Detail
currFileId
int currFileId(Code)



current
protected Mark current(Code)



defEncoding
String defEncoding(Code)



master
String master(Code)



size
int size(Code)



sourceFiles
Vector sourceFiles(Code)




Constructor Detail
JspReader
protected JspReader(String file, JspCompilationContext ctx, String encoding) throws ParseException, FileNotFoundException(Code)




Method Detail
advance
public void advance(int n) throws ParseException(Code)



createJspReader
public static JspReader createJspReader(String file, JspCompilationContext ctx, String encoding) throws ParseException, FileNotFoundException(Code)



getChars
char[] getChars(Mark start, Mark stop) throws ParseException(Code)



getFile
public String getFile(int fileid)(Code)



hasMoreInput
public boolean hasMoreInput() throws ParseException(Code)



isSpace
final boolean isSpace()(Code)



mark
public Mark mark()(Code)



matches
public boolean matches(String string) throws ParseException(Code)



matchesIgnoreCase
public boolean matchesIgnoreCase(String string) throws ParseException(Code)



nextChar
public int nextChar() throws ParseException(Code)



nextContent
String nextContent()(Code)
Gets Content until the next potential JSP element. Because all elements begin with a '<' we can just move until we see the next one.



parseParamTag
public void parseParamTag(Hashtable into) throws ParseException(Code)
Parse PARAM tag attributes into the given hashtable. Parses the PARAM tag as defined by:
 <PARAM tag-attributes %gt;
 
Two special tag attributes are recognized here:
  1. The name attribute,
  2. The value attribute.
The resulting name, value pair is stored in the provided hash table.
Parameters:
  into - Storage for parameter values.



parsePluginParamTag
public void parsePluginParamTag(Hashtable into) throws ParseException(Code)
Parse jsp:param tag attributes into the given hashtable. Parses the jsp:param tag as defined by:
 <jsp:param tag-attributes %gt;
 
Two special tag attributes are recognized here:
  1. The name attribute,
  2. The value attribute.
The resulting name, value pair is stored in the provided hash table.
Parameters:
  into - Storage for parameter values.



parseTagAttributes
public Hashtable parseTagAttributes() throws ParseException(Code)
Parse some tag attributes. The stream is assumed to be positioned right after the tag name. The syntax recognized is:
 tag-attrs := empty | attr-list (">" | "-->" | %>)
 attr-list := empty | av spaces attr-list
 empty     := spaces 
 
Where av is defined by parseAttributeValue. A Hashtable mapping String instances (variable names) intoString instances (variable values).



parseTagAttributesBean
public Hashtable parseTagAttributesBean() throws ParseException(Code)
Parse some tag attributes for Beans. The stream is assumed to be positioned right after the tag name. The syntax recognized is:
 tag-attrs := empty | attr-list (">" | "-->" | %>)
 attr-list := empty | av spaces attr-list
 empty     := spaces 
 
Where av is defined by parseAttributeValue. A Hashtable mapping String instances (variable names) intoString instances (variable values).



parseToken
public String parseToken(boolean quoted) throws ParseException(Code)
Parse a space delimited token. If quoted the token will consume all characters up to a matching quote, otherwise, it consumes up to the first delimiter character.
Parameters:
  quoted - If true accept quoted strings.



peekChar
public int peekChar()(Code)



popFile
public boolean popFile() throws ParseException(Code)



pushFile
public void pushFile(String name, String encoding) throws ParseException, FileNotFoundException(Code)
Push a new file to be parsed onto the stack.
Parameters:
  inputFile - The fully qualified path of the file.
Parameters:
  encoding - Optional encoding to read the file.



registerSourceFile
protected int registerSourceFile(String file)(Code)
Register a new source file. This method is used to implement file inclusion. Each included file gets a uniq identifier (which is the index in the array of source files). The index of the now registered file.



reset
public void reset(Mark mark)(Code)



skipSpaces
public int skipSpaces() throws ParseException(Code)



skipUntil
public Mark skipUntil(String limit) throws ParseException(Code)
Skip until the given string is matched in the stream. When returned, the context is positioned past the end of the match.
Parameters:
  s - The String to match. A non-null Mark instance if found,null otherwise.



unregisterSourceFile
protected int unregisterSourceFile(String file)(Code)
Unregister the source file. This method is used to implement file inclusion. Each included file gets a uniq identifier (which is the index in the array of source files). The index of the now registered file.



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)

w_ww__.__j___a_va_2___s.c_o_m_ | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.