Java Doc for JspReader.java in  » Sevlet-Container » apache-tomcat-6.0.14 » org » apache » 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 » Sevlet Container » apache tomcat 6.0.14 » org.apache.jasper.compiler 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.apache.jasper.compiler.JspReader

JspReader
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
author:
   Danno Ferrin
author:
   Kin-man Chung
author:
   Shawn Bayern
author:
   Mark Roth



Constructor Summary
public  JspReader(JspCompilationContext ctxt, String fname, String encoding, JarFile jarFile, ErrorDispatcher err)
     Constructor.
Parameters:
  ctxt - The compilation context
Parameters:
  fname - The file name
Parameters:
  encoding - The file encoding
Parameters:
  jarFile - ?
Parameters:
  err - The error dispatcher
throws:
  JasperException - If a Jasper-internal error occurs
throws:
  FileNotFoundException - If the JSP file is not found (or is unreadable)
throws:
  IOException - If an IO-level error occurs, e.g.
public  JspReader(JspCompilationContext ctxt, String fname, String encoding, InputStreamReader reader, ErrorDispatcher err)
     Constructor: same as above constructor but with initialized reader to the file given.

Method Summary
 StringgetFile(int fileid)
     Returns the file at the given position in the list.
 JspCompilationContextgetJspCompilationContext()
    
 URLgetResource(String path)
     Gets the URL for the given path name.
 StringgetText(Mark start, Mark stop)
    
 booleanhasMoreInput()
     Checks if the current file has more input.
final  booleanisSpace()
    
 Markmark()
    
 booleanmatches(String string)
    
 booleanmatchesETag(String tagName)
    
 booleanmatchesETagWithoutLessThan(String tagName)
    
 booleanmatchesIgnoreCase(String string)
    
 booleanmatchesOptionalSpacesFollowedBy(String s)
     Looks ahead to see if there are optional spaces followed by the given String.
 intnextChar()
    
 StringparseToken(boolean quoted)
     Parse a space delimited token.
 intpeekChar()
    
 voidpushChar()
     Back up the current cursor by one char, assumes current.cursor > 0, and that the char to be pushed back is not '\n'.
 voidreset(Mark mark)
    
 voidsetSingleFile(boolean val)
    
 intskipSpaces()
    
 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.
 MarkskipUntilETag(String tag)
     Skip until the given end tag is matched in the stream. When returned, the context is positioned past the end of the tag.
Parameters:
  tag - The name of the tag whose ETag () to match.
 MarkskipUntilIgnoreEsc(String limit)
     Skip until the given string is matched in the stream, but ignoring chars initially escaped by a '\'. When returned, the context is positioned past the end of the match.
Parameters:
  s - The String to match.


Constructor Detail
JspReader
public JspReader(JspCompilationContext ctxt, String fname, String encoding, JarFile jarFile, ErrorDispatcher err) throws JasperException, FileNotFoundException, IOException(Code)
Constructor.
Parameters:
  ctxt - The compilation context
Parameters:
  fname - The file name
Parameters:
  encoding - The file encoding
Parameters:
  jarFile - ?
Parameters:
  err - The error dispatcher
throws:
  JasperException - If a Jasper-internal error occurs
throws:
  FileNotFoundException - If the JSP file is not found (or is unreadable)
throws:
  IOException - If an IO-level error occurs, e.g. reading the file



JspReader
public JspReader(JspCompilationContext ctxt, String fname, String encoding, InputStreamReader reader, ErrorDispatcher err) throws JasperException, FileNotFoundException(Code)
Constructor: same as above constructor but with initialized reader to the file given.




Method Detail
getFile
String getFile(int fileid)(Code)
Returns the file at the given position in the list.
Parameters:
  fileid - The file position in the list The file at that position, if found, null otherwise



getJspCompilationContext
JspCompilationContext getJspCompilationContext()(Code)
JSP compilation context with which this JspReader is associated



getResource
URL getResource(String path) throws MalformedURLException(Code)
Gets the URL for the given path name.
Parameters:
  path - Path name URL for the given path name.
exception:
  MalformedURLException - if the path name is not given in the correct form



getText
String getText(Mark start, Mark stop) throws JasperException(Code)



hasMoreInput
boolean hasMoreInput() throws JasperException(Code)
Checks if the current file has more input. True if more reading is possible
throws:
  JasperException - if an error occurs



isSpace
final boolean isSpace() throws JasperException(Code)



mark
Mark mark()(Code)



matches
boolean matches(String string) throws JasperException(Code)
search the stream for a match to a string
Parameters:
  string - The string to match true is one is found, the current positionin stream is positioned after the search string, false otherwise, position in stream unchanged.



matchesETag
boolean matchesETag(String tagName) throws JasperException(Code)



matchesETagWithoutLessThan
boolean matchesETagWithoutLessThan(String tagName) throws JasperException(Code)



matchesIgnoreCase
boolean matchesIgnoreCase(String string) throws JasperException(Code)



matchesOptionalSpacesFollowedBy
boolean matchesOptionalSpacesFollowedBy(String s) throws JasperException(Code)
Looks ahead to see if there are optional spaces followed by the given String. If so, true is returned and those spaces and characters are skipped. If not, false is returned and the position is restored to where we were before.



nextChar
int nextChar() throws JasperException(Code)



parseToken
String parseToken(boolean quoted) throws JasperException(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
int peekChar() throws JasperException(Code)



pushChar
void pushChar()(Code)
Back up the current cursor by one char, assumes current.cursor > 0, and that the char to be pushed back is not '\n'.



reset
void reset(Mark mark)(Code)



setSingleFile
void setSingleFile(boolean val)(Code)



skipSpaces
int skipSpaces() throws JasperException(Code)



skipUntil
Mark skipUntil(String limit) throws JasperException(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 (positioned immediatelybefore the search string) if found, nullotherwise.



skipUntilETag
Mark skipUntilETag(String tag) throws JasperException(Code)
Skip until the given end tag is matched in the stream. When returned, the context is positioned past the end of the tag.
Parameters:
  tag - The name of the tag whose ETag () to match. A non-null Mark instance (positioned immediatelybefore the ETag) if found, null otherwise.



skipUntilIgnoreEsc
Mark skipUntilIgnoreEsc(String limit) throws JasperException(Code)
Skip until the given string is matched in the stream, but ignoring chars initially escaped by a '\'. When returned, the context is positioned past the end of the match.
Parameters:
  s - The String to match. A non-null Mark instance (positioned immediatelybefore the search string) if found, nullotherwise.



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.