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, flush
public IndentingWriter(Writer out)
public IndentingWriter(Writer out, int step)
public void write(int c) throws IOException
write
in class BufferedWriter
IOException
public void write(char[] cbuf, int off, int len) throws IOException
write
in class BufferedWriter
IOException
public void write(String s, int off, int len) throws IOException
write
in class BufferedWriter
IOException
public void newLine() throws IOException
newLine
in class BufferedWriter
IOException
protected void checkWrite() throws IOException
IOException
protected 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
IOException
protected boolean canEncode(String s)
public void p(String s1, String s2) throws IOException
IOException
public void p(String s1, String s2, String s3) throws IOException
IOException
public void p(String s1, String s2, String s3, String s4) throws IOException
IOException
public void p(String s1, String s2, String s3, String s4, String s5) throws IOException
IOException
public void pln() throws IOException
IOException
public void pln(String s) throws IOException
IOException
public void pln(String s1, String s2) throws IOException
IOException
public void pln(String s1, String s2, String s3) throws IOException
IOException
public void pln(String s1, String s2, String s3, String s4) throws IOException
IOException
public void pln(String s1, String s2, String s3, String s4, String s5) throws IOException
IOException
public void plnI(String s) throws IOException
IOException
public void pO(String s) throws IOException
IOException
public void pOln(String s) throws IOException
IOException
public void pOlnI(String s) throws IOException
IOException
public void p(Object o) throws IOException
IOException
public void pln(Object o) throws IOException
IOException
public void plnI(Object o) throws IOException
IOException
public void pO(Object o) throws IOException
IOException
public void pOln(Object o) throws IOException
IOException
public void pOlnI(Object o) throws IOException
IOException
public void pM(String s) throws IOException
IOException
public void pMln(String s) throws IOException
IOException
public void pMlnI(String s) throws IOException
IOException
public void pMO(String s) throws IOException
IOException
public void pMOln(String s) throws IOException
IOException
public void pF(String pattern, Object[] arguments) throws IOException
IOException
public void pFln(String pattern, Object[] arguments) throws IOException
IOException
Copyright © 2018 Oracle Corporation. All rights reserved.