| java.lang.Object java.io.Writer java.io.PrintWriter org.apache.bsf.util.IndentWriter
IndentWriter | public class IndentWriter extends PrintWriter (Code) | | An IndentWriter object behaves the same as a
PrintWriter object, with the additional capability
of being able to print strings that are prepended with a specified
amount of spaces.
author: Matthew J. Duftler |
Constructor Summary | |
public | IndentWriter(OutputStream out) Forwards its arguments to the PrintWriter constructor
with the same signature. | public | IndentWriter(OutputStream out, boolean autoFlush) Forwards its arguments to the PrintWriter constructor
with the same signature. | public | IndentWriter(Writer out) Forwards its arguments to the PrintWriter constructor
with the same signature. | public | IndentWriter(Writer out, boolean autoFlush) Forwards its arguments to the PrintWriter constructor
with the same signature. |
Method Summary | |
public void | print(int numberOfSpaces, String text) Print the text (indented the specified amount) without inserting a linefeed. | public void | println(int numberOfSpaces, String text) Print the text (indented the specified amount) and insert a linefeed. |
IndentWriter | public IndentWriter(OutputStream out)(Code) | | Forwards its arguments to the PrintWriter constructor
with the same signature.
|
IndentWriter | public IndentWriter(OutputStream out, boolean autoFlush)(Code) | | Forwards its arguments to the PrintWriter constructor
with the same signature.
|
IndentWriter | public IndentWriter(Writer out)(Code) | | Forwards its arguments to the PrintWriter constructor
with the same signature.
|
IndentWriter | public IndentWriter(Writer out, boolean autoFlush)(Code) | | Forwards its arguments to the PrintWriter constructor
with the same signature.
|
print | public void print(int numberOfSpaces, String text)(Code) | | Print the text (indented the specified amount) without inserting a linefeed.
Parameters: numberOfSpaces - the number of spaces to indent the text. Parameters: text - the text to print. |
println | public void println(int numberOfSpaces, String text)(Code) | | Print the text (indented the specified amount) and insert a linefeed.
Parameters: numberOfSpaces - the number of spaces to indent the text. Parameters: text - the text to print. |
Methods inherited from java.io.PrintWriter | public PrintWriter append(CharSequence csq)(Code)(Java Doc) public PrintWriter append(CharSequence csq, int start, int end)(Code)(Java Doc) public PrintWriter append(char c)(Code)(Java Doc) public boolean checkError()(Code)(Java Doc) protected void clearError()(Code)(Java Doc) public void close()(Code)(Java Doc) public void flush()(Code)(Java Doc) public PrintWriter format(String format, Object... args)(Code)(Java Doc) public PrintWriter format(Locale l, String format, Object... args)(Code)(Java Doc) public void print(boolean b)(Code)(Java Doc) public void print(char c)(Code)(Java Doc) public void print(int i)(Code)(Java Doc) public void print(long l)(Code)(Java Doc) public void print(float f)(Code)(Java Doc) public void print(double d)(Code)(Java Doc) public void print(char s)(Code)(Java Doc) public void print(String s)(Code)(Java Doc) public void print(Object obj)(Code)(Java Doc) public PrintWriter printf(String format, Object... args)(Code)(Java Doc) public PrintWriter printf(Locale l, String format, Object... args)(Code)(Java Doc) public void println()(Code)(Java Doc) public void println(boolean x)(Code)(Java Doc) public void println(char x)(Code)(Java Doc) public void println(int x)(Code)(Java Doc) public void println(long x)(Code)(Java Doc) public void println(float x)(Code)(Java Doc) public void println(double x)(Code)(Java Doc) public void println(char x)(Code)(Java Doc) public void println(String x)(Code)(Java Doc) public void println(Object x)(Code)(Java Doc) protected void setError()(Code)(Java Doc) public void write(int c)(Code)(Java Doc) public void write(char buf, int off, int len)(Code)(Java Doc) public void write(char buf)(Code)(Java Doc) public void write(String s, int off, int len)(Code)(Java Doc) public void write(String s)(Code)(Java Doc)
|
|
|