public class IndentWriter extends Writer
| Constructor and Description |
|---|
IndentWriter()
Constructor
|
IndentWriter(Writer w) |
IndentWriter(Writer w,
boolean dontclose) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
void |
dec() |
void |
flush() |
void |
forceNewline() |
static IndentWriter |
getStdoutWriter() |
Writer |
getWriter() |
void |
inc() |
void |
indent()
Output as many spaces as needed to reach the current indent level.
|
void |
init(Writer w,
int indentlevel) |
boolean |
isIndentEnabled() |
void |
print(String s) |
void |
println() |
void |
println(String s) |
void |
setInd(int i) |
void |
setIndentEnabled(boolean indentEnabled) |
void |
setSpacesPerIndent(int spi) |
void |
write(char[] buf,
int off,
int len) |
void |
write(String str) |
void |
writeRaw(char[] buf,
int off,
int len) |
void |
writeRaw(String s) |
void |
writeRaw(String buf,
int off,
int len) |
public IndentWriter()
public IndentWriter(Writer w)
public IndentWriter(Writer w, boolean dontclose)
public void init(Writer w, int indentlevel)
public boolean isIndentEnabled()
public void setIndentEnabled(boolean indentEnabled)
public void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableclose in class WriterIOExceptionpublic void flush()
throws IOException
flush in interface Flushableflush in class WriterIOExceptionpublic void setInd(int i)
public void setSpacesPerIndent(int spi)
public void writeRaw(String s) throws IOException
IOExceptionpublic void writeRaw(char[] buf,
int off,
int len)
throws IOException
IOExceptionpublic void writeRaw(String buf, int off, int len) throws IOException
IOExceptionpublic void indent()
throws IOException
IOExceptionpublic void write(char[] buf,
int off,
int len)
throws IOException
write in class WriterIOExceptionpublic void write(String str) throws IOException
write in class WriterIOExceptionpublic void inc()
public void dec()
public void forceNewline()
throws IOException
IOExceptionpublic void println()
throws IOException
IOExceptionpublic void print(String s) throws IOException
IOExceptionpublic void println(String s) throws IOException
IOExceptionpublic Writer getWriter()
public static IndentWriter getStdoutWriter()
Copyright © 2017 etc.to. All rights reserved.