public class IndentWriter
extends java.io.PrintWriter
Constructor and Description |
---|
IndentWriter(java.io.File file) |
IndentWriter(java.io.OutputStream stream) |
IndentWriter(java.io.Writer writer) |
Modifier and Type | Method and Description |
---|---|
void |
eol() |
int |
getIndent() |
java.lang.String |
getMargin() |
void |
indent() |
void |
indent(int n)
Set depth += n
|
void |
margin() |
void |
marginPrint(java.lang.String text) |
void |
marginPrintf(java.lang.String fmt,
java.lang.Object... args) |
void |
marginPrintln() |
void |
marginPrintln(java.lang.String text) |
void |
outdent() |
void |
outdent(int n) |
void |
pop() |
void |
push() |
void |
setIndent(int n)
Set depth = n
|
append, append, append, checkError, clearError, close, flush, format, format, print, print, print, print, print, print, print, print, print, printf, printf, println, println, println, println, println, println, println, println, println, println, setError, write, write, write, write, write
public IndentWriter(java.io.File file) throws java.io.FileNotFoundException
java.io.FileNotFoundException
public IndentWriter(java.io.Writer writer)
public IndentWriter(java.io.OutputStream stream)
public void indent()
public void outdent()
public void outdent(int n)
public void indent(int n)
n
- depth increment/decrement(if neg)public void setIndent(int n)
n
- absolute depthpublic void margin()
public java.lang.String getMargin()
public int getIndent()
public void push()
public void pop()
public void eol()
public void marginPrintln(java.lang.String text)
public void marginPrintln()
public void marginPrint(java.lang.String text)
public void marginPrintf(java.lang.String fmt, java.lang.Object... args)