public class ServletWriter extends Object
Modifier and Type | Field and Description |
---|---|
static String |
SPACES |
static int |
TAB_WIDTH |
Constructor and Description |
---|
ServletWriter(PrintWriter writer) |
Modifier and Type | Method and Description |
---|---|
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 |
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()
Prints a '\n'
|
void |
println(String s)
Prints the given string followed by '\n'
|
void |
printMultiLn(String s)
Prints the given string.
|
void |
pushIndent() |
public static final int TAB_WIDTH
public static final String SPACES
public ServletWriter(PrintWriter writer)
public void close()
public int getJavaLine()
public void pushIndent()
public void popIndent()
public void println(String s)
s
- The stringpublic void println()
public void printin()
public void printin(String s)
s
- The stringpublic void printil(String s)
s
- The stringpublic void print(char c)
c
- The charpublic void print(int i)
i
- The intpublic void print(String s)
s
- The stringpublic void printMultiLn(String s)
s
- The stringCopyright © 2000-2021 Apache Software Foundation. All Rights Reserved.