|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.io.Writer
java.io.PrintWriter
jd.io.TabWriter
A PrintWriter to write pretty indented files.
Field Summary |
Fields inherited from class java.io.PrintWriter |
out |
Fields inherited from class java.io.Writer |
lock |
Constructor Summary | |
TabWriter(Writer out)
Create a TabWriter. |
|
TabWriter(Writer out,
boolean autoFlush)
Create a TabWriter. |
|
TabWriter(Writer out,
boolean autoFlush,
int bufferSize)
Create a new TabWriter. |
Method Summary | |
boolean |
checkError()
Flush the stream and check its error state. |
void |
close()
Close the stream. |
void |
decreaseTab()
Decrease the tab. |
void |
flush()
Flush the stream. |
protected int |
getBufferUsed()
|
int |
getTabCount()
Return the number of tabs. |
void |
increaseTab()
Increase the tab. |
boolean |
newLineStarted()
|
void |
print(char c)
|
void |
println()
|
void |
println(boolean x)
|
void |
println(char x)
|
void |
println(char[] x)
|
void |
println(double x)
|
void |
println(float x)
|
void |
println(int x)
|
void |
println(long x)
|
void |
println(Object x)
|
void |
println(String x)
|
protected void |
resetBuffer()
|
protected void |
setError()
Indicate that an error has occurred. |
void |
setLineSeparator(String s)
Set characters used to separate lines. |
void |
setTabChars(String chars)
Set the string used for a tab. |
void |
write(char[] buf,
int off,
int len)
Write a portion of an array of characters. |
void |
write(int c)
Write a single character. |
void |
write(int c1,
int c2)
Write two characters. |
void |
write(String s)
Write a string. |
void |
write(String s,
int off,
int length)
Write a portion of a string. |
protected void |
writeNewLineTab()
|
Methods inherited from class java.io.PrintWriter |
print, print, print, print, print, print, print, print, write |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public TabWriter(Writer out)
out
- a Writerpublic TabWriter(Writer out, boolean autoFlush)
out
- a WriterautoFlush
- - a boolean; if true, the println() methods will flush
the output bufferpublic TabWriter(Writer out, boolean autoFlush, int bufferSize)
out
- a WriterautoFlush
- - a boolean; if true, the println() methods will flush
the output bufferbufferSize
- the size of the internal bufferMethod Detail |
public void setTabChars(String chars)
public void setLineSeparator(String s)
public void increaseTab()
public void decreaseTab()
public int getTabCount()
protected void writeNewLineTab()
public boolean newLineStarted()
public void close()
public void flush()
public boolean checkError()
protected void setError()
public void write(int c)
public void write(int c1, int c2)
public void write(char[] buf, int off, int len)
public void write(String s, int off, int length)
public void write(String s)
public void print(char c)
public void println()
public void println(boolean x)
public void println(char x)
public void println(int x)
public void println(long x)
public void println(float x)
public void println(double x)
public void println(char[] x)
public void println(String x)
public void println(Object x)
protected void resetBuffer()
protected int getBufferUsed()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |