org.apache.bsf.util
Class IndentWriter
PrintWriter
org.apache.bsf.util.IndentWriter
public class IndentWriter
extends PrintWriter
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.
- Matthew J. Duftler
IndentWriter(OutputStream out) - Forwards its arguments to the
PrintWriter constructor
with the same signature.
|
IndentWriter(OutputStream out, boolean autoFlush) - Forwards its arguments to the
PrintWriter constructor
with the same signature.
|
IndentWriter(Writer out) - Forwards its arguments to the
PrintWriter constructor
with the same signature.
|
IndentWriter(Writer out, boolean autoFlush) - Forwards its arguments to the
PrintWriter constructor
with the same signature.
|
void | print(int numberOfSpaces, String text) - Print the text (indented the specified amount) without inserting a linefeed.
|
void | println(int numberOfSpaces, String text) - Print the text (indented the specified amount) and insert a linefeed.
|
IndentWriter
public IndentWriter(OutputStream out)
Forwards its arguments to the PrintWriter
constructor
with the same signature.
IndentWriter
public IndentWriter(OutputStream out,
boolean autoFlush)
Forwards its arguments to the PrintWriter
constructor
with the same signature.
IndentWriter
public IndentWriter(Writer out)
Forwards its arguments to the PrintWriter
constructor
with the same signature.
IndentWriter
public IndentWriter(Writer out,
boolean autoFlush)
Forwards its arguments to the PrintWriter
constructor
with the same signature.
print
public void print(int numberOfSpaces,
String text)
Print the text (indented the specified amount) without inserting a linefeed.
numberOfSpaces
- the number of spaces to indent the text.text
- the text to print.
println
public void println(int numberOfSpaces,
String text)
Print the text (indented the specified amount) and insert a linefeed.
numberOfSpaces
- the number of spaces to indent the text.text
- the text to print.