com.sun.tools.ws.processor.util
Class IndentingWriter
java.lang.Object
java.io.Writer
java.io.BufferedWriter
com.sun.tools.ws.processor.util.IndentingWriter
- All Implemented Interfaces:
- Closeable, Flushable, Appendable
public class IndentingWriter
- extends BufferedWriter
Method Summary |
protected boolean |
canEncode(String s)
Check if encode can handle the chars in this string. |
protected void |
checkWrite()
|
protected void |
indentIn()
|
protected void |
indentOut()
|
void |
newLine()
|
void |
p(Object o)
|
void |
p(String s)
|
void |
p(String s1,
String s2)
|
void |
p(String s1,
String s2,
String s3)
|
void |
p(String s1,
String s2,
String s3,
String s4)
|
void |
p(String s1,
String s2,
String s3,
String s4,
String s5)
|
void |
pF(String pattern,
Object[] arguments)
|
void |
pFln(String pattern,
Object[] arguments)
|
void |
pI()
|
void |
pI(int levels)
|
void |
pln()
|
void |
pln(Object o)
|
void |
pln(String s)
|
void |
pln(String s1,
String s2)
|
void |
pln(String s1,
String s2,
String s3)
|
void |
pln(String s1,
String s2,
String s3,
String s4)
|
void |
pln(String s1,
String s2,
String s3,
String s4,
String s5)
|
void |
plnI(Object o)
|
void |
plnI(String s)
|
void |
pM(String s)
|
void |
pMln(String s)
|
void |
pMlnI(String s)
|
void |
pMO(String s)
|
void |
pMOln(String s)
|
void |
pO()
|
void |
pO(int levels)
|
void |
pO(Object o)
|
void |
pO(String s)
|
void |
pOln(Object o)
|
void |
pOln(String s)
|
void |
pOlnI(Object o)
|
void |
pOlnI(String s)
|
void |
write(char[] cbuf,
int off,
int len)
|
void |
write(int c)
|
void |
write(String s,
int off,
int len)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
IndentingWriter
public IndentingWriter(Writer out)
IndentingWriter
public IndentingWriter(Writer out,
int step)
write
public void write(int c)
throws IOException
- Overrides:
write
in class BufferedWriter
- Throws:
IOException
write
public void write(char[] cbuf,
int off,
int len)
throws IOException
- Overrides:
write
in class BufferedWriter
- Throws:
IOException
write
public void write(String s,
int off,
int len)
throws IOException
- Overrides:
write
in class BufferedWriter
- Throws:
IOException
newLine
public void newLine()
throws IOException
- Overrides:
newLine
in class BufferedWriter
- Throws:
IOException
checkWrite
protected void checkWrite()
throws IOException
- Throws:
IOException
indentIn
protected void indentIn()
indentOut
protected void indentOut()
pI
public void pI()
pO
public void pO()
pI
public void pI(int levels)
pO
public void pO(int levels)
p
public void p(String s)
throws IOException
- Throws:
IOException
canEncode
protected boolean canEncode(String s)
- Check if encode can handle the chars in this string.
p
public void p(String s1,
String s2)
throws IOException
- Throws:
IOException
p
public void p(String s1,
String s2,
String s3)
throws IOException
- Throws:
IOException
p
public void p(String s1,
String s2,
String s3,
String s4)
throws IOException
- Throws:
IOException
p
public void p(String s1,
String s2,
String s3,
String s4,
String s5)
throws IOException
- Throws:
IOException
pln
public void pln()
throws IOException
- Throws:
IOException
pln
public void pln(String s)
throws IOException
- Throws:
IOException
pln
public void pln(String s1,
String s2)
throws IOException
- Throws:
IOException
pln
public void pln(String s1,
String s2,
String s3)
throws IOException
- Throws:
IOException
pln
public void pln(String s1,
String s2,
String s3,
String s4)
throws IOException
- Throws:
IOException
pln
public void pln(String s1,
String s2,
String s3,
String s4,
String s5)
throws IOException
- Throws:
IOException
plnI
public void plnI(String s)
throws IOException
- Throws:
IOException
pO
public void pO(String s)
throws IOException
- Throws:
IOException
pOln
public void pOln(String s)
throws IOException
- Throws:
IOException
pOlnI
public void pOlnI(String s)
throws IOException
- Throws:
IOException
p
public void p(Object o)
throws IOException
- Throws:
IOException
pln
public void pln(Object o)
throws IOException
- Throws:
IOException
plnI
public void plnI(Object o)
throws IOException
- Throws:
IOException
pO
public void pO(Object o)
throws IOException
- Throws:
IOException
pOln
public void pOln(Object o)
throws IOException
- Throws:
IOException
pOlnI
public void pOlnI(Object o)
throws IOException
- Throws:
IOException
pM
public void pM(String s)
throws IOException
- Throws:
IOException
pMln
public void pMln(String s)
throws IOException
- Throws:
IOException
pMlnI
public void pMlnI(String s)
throws IOException
- Throws:
IOException
pMO
public void pMO(String s)
throws IOException
- Throws:
IOException
pMOln
public void pMOln(String s)
throws IOException
- Throws:
IOException
pF
public void pF(String pattern,
Object[] arguments)
throws IOException
- Throws:
IOException
pFln
public void pFln(String pattern,
Object[] arguments)
throws IOException
- Throws:
IOException