Package com.sun.xml.rpc.processor.util
Class IndentingWriter
- java.lang.Object
-
- java.io.Writer
-
- java.io.BufferedWriter
-
- com.sun.xml.rpc.processor.util.IndentingWriter
-
- All Implemented Interfaces:
Closeable,Flushable,Appendable,AutoCloseable
public class IndentingWriter extends BufferedWriter
- Author:
- JAX-RPC Development Team
-
-
Constructor Summary
Constructors Constructor Description IndentingWriter(Writer out)IndentingWriter(Writer out, int step)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected booleancanEncode(String s)Check if encode can handle the chars in this string.protected voidcheckWrite()protected voidindentIn()protected voidindentOut()voidnewLine()voidp(Object o)voidp(String s)voidp(String s1, String s2)voidp(String s1, String s2, String s3)voidp(String s1, String s2, String s3, String s4)voidp(String s1, String s2, String s3, String s4, String s5)voidpF(String pattern, Object[] arguments)voidpFln(String pattern, Object[] arguments)voidpI()voidpI(int levels)voidpln()voidpln(Object o)voidpln(String s)voidpln(String s1, String s2)voidpln(String s1, String s2, String s3)voidpln(String s1, String s2, String s3, String s4)voidpln(String s1, String s2, String s3, String s4, String s5)voidplnI(Object o)voidplnI(String s)voidpM(String s)voidpMln(String s)voidpMlnI(String s)voidpMO(String s)voidpMOln(String s)voidpO()voidpO(int levels)voidpO(Object o)voidpO(String s)voidpOln(Object o)voidpOln(String s)voidpOlnI(Object o)voidpOlnI(String s)voidwrite(char[] cbuf, int off, int len)voidwrite(int c)voidwrite(String s, int off, int len)-
Methods inherited from class java.io.BufferedWriter
close, flush
-
-
-
-
Method Detail
-
write
public void write(int c) throws IOException- Overrides:
writein classBufferedWriter- Throws:
IOException
-
write
public void write(char[] cbuf, int off, int len) throws IOException- Overrides:
writein classBufferedWriter- Throws:
IOException
-
write
public void write(String s, int off, int len) throws IOException
- Overrides:
writein classBufferedWriter- Throws:
IOException
-
newLine
public void newLine() throws IOException- Overrides:
newLinein classBufferedWriter- 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
-
-