public class IndentingWriter extends BufferedWriter
| Constructor and Description |
|---|
IndentingWriter(Writer out) |
IndentingWriter(Writer out,
int step) |
| Modifier and Type | Method and Description |
|---|---|
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) |
close, flushpublic IndentingWriter(Writer out)
public IndentingWriter(Writer out, int step)
public void write(int c)
throws IOException
write in class BufferedWriterIOExceptionpublic void write(char[] cbuf,
int off,
int len)
throws IOException
write in class BufferedWriterIOExceptionpublic void write(String s, int off, int len) throws IOException
write in class BufferedWriterIOExceptionpublic void newLine()
throws IOException
newLine in class BufferedWriterIOExceptionprotected void checkWrite()
throws IOException
IOExceptionprotected void indentIn()
protected void indentOut()
public void pI()
public void pO()
public void pI(int levels)
public void pO(int levels)
public void p(String s) throws IOException
IOExceptionprotected boolean canEncode(String s)
public void p(String s1, String s2) throws IOException
IOExceptionpublic void p(String s1, String s2, String s3) throws IOException
IOExceptionpublic void p(String s1, String s2, String s3, String s4) throws IOException
IOExceptionpublic void p(String s1, String s2, String s3, String s4, String s5) throws IOException
IOExceptionpublic void pln()
throws IOException
IOExceptionpublic void pln(String s) throws IOException
IOExceptionpublic void pln(String s1, String s2) throws IOException
IOExceptionpublic void pln(String s1, String s2, String s3) throws IOException
IOExceptionpublic void pln(String s1, String s2, String s3, String s4) throws IOException
IOExceptionpublic void pln(String s1, String s2, String s3, String s4, String s5) throws IOException
IOExceptionpublic void plnI(String s) throws IOException
IOExceptionpublic void pO(String s) throws IOException
IOExceptionpublic void pOln(String s) throws IOException
IOExceptionpublic void pOlnI(String s) throws IOException
IOExceptionpublic void p(Object o) throws IOException
IOExceptionpublic void pln(Object o) throws IOException
IOExceptionpublic void plnI(Object o) throws IOException
IOExceptionpublic void pO(Object o) throws IOException
IOExceptionpublic void pOln(Object o) throws IOException
IOExceptionpublic void pOlnI(Object o) throws IOException
IOExceptionpublic void pM(String s) throws IOException
IOExceptionpublic void pMln(String s) throws IOException
IOExceptionpublic void pMlnI(String s) throws IOException
IOExceptionpublic void pMO(String s) throws IOException
IOExceptionpublic void pMOln(String s) throws IOException
IOExceptionpublic void pF(String pattern, Object[] arguments) throws IOException
IOExceptionpublic void pFln(String pattern, Object[] arguments) throws IOException
IOExceptionCopyright (c) 1997-2012 Oracle and/or its affiliates. All rights reserved.