org.apache.jasper.compiler
Class ServletWriter
java.lang.Object
|
+--org.apache.jasper.compiler.ServletWriter
- public class ServletWriter
- extends java.lang.Object
This is what is used to generate servlets.
- Author:
- Anil K. Vijendran
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TAB_WIDTH
public static int TAB_WIDTH
SPACES
public static java.lang.String SPACES
ServletWriter
public ServletWriter(java.io.PrintWriter writer)
close
public void close()
throws java.io.IOException
java.io.IOException
getJavaLine
public int getJavaLine()
setLineMap
public void setLineMap(JspLineMap map)
getLineMap
public JspLineMap getLineMap()
pushIndent
public void pushIndent()
popIndent
public void popIndent()
printComment
public void printComment(Mark start,
Mark stop,
char[] chars)
- Print a standard comment for echo outputed chunk.
- Parameters:
start
- The starting position of the JSP chunk being processed.stop
- The ending position of the JSP chunk being processed.
quoteString
public java.lang.String quoteString(java.lang.String s)
- Quote the given string to make it appear in a chunk of java code.
- Parameters:
s
- The string to quote.
- Returns:
- The quoted string.
println
public void println(java.lang.String line)
println
public void println()
indent
public void indent()
print
public void print(java.lang.String s)
printMultiLn
public void printMultiLn(java.lang.String multiline)
Copyright © 2000 Apache Software Foundation. All Rights Reserved.