org.apache.jasper.compiler
Class ServletWriter
public
class
ServletWriter
extends Object
This is what is used to generate servlets.
Author: Anil K. Vijendran Kin-man Chung
Method Summary |
void | close() |
int | getJavaLine() |
void | popIndent() |
void | print(char c)
Prints the given char.
|
void | print(int i)
Prints the given int. |
void | print(String s)
Prints the given string.
|
void | printComment(Mark start, Mark stop, char[] chars)
Print a standard comment for echo outputed chunk. |
void | printil(String s)
Prints the current indention, and then the string, and a '\n'. |
void | printin()
Prints the current indention |
void | printin(String s)
Prints the current indention, followed by the given string |
void | println(String s)
Prints the given string followed by '\n' |
void | println()
Prints a '\n' |
void | printMultiLn(String s)
Prints the given string.
|
void | pushIndent() |
public static String SPACES
public static int TAB_WIDTH
public ServletWriter(PrintWriter writer)
public void close()
public int getJavaLine()
public void popIndent()
public void print(char c)
Prints the given char.
Use println() to print a '\n'.
public void print(int i)
Prints the given int.
public void print(String s)
Prints the given string.
The string must not contain any '\n', otherwise the line count will be
off.
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.
public void printil(String s)
Prints the current indention, and then the string, and a '\n'.
public void printin()
Prints the current indention
public void printin(String s)
Prints the current indention, followed by the given string
public void println(String s)
Prints the given string followed by '\n'
public void println()
Prints a '\n'
public void printMultiLn(String s)
Prints the given string.
If the string spans multiple lines, the line count will be adjusted
accordingly.
public void pushIndent()
Copyright © 2000-2011 Apache Software Foundation. All Rights Reserved.