Package org.apache.ofbiz.base.util
Class IndentingWriter
java.lang.Object
java.io.Writer
java.io.FilterWriter
org.apache.ofbiz.base.util.IndentingWriter
- All Implemented Interfaces:
Closeable
,Flushable
,Appendable
,AutoCloseable
-
Field Summary
Fields inherited from class java.io.FilterWriter
out
-
Constructor Summary
ConstructorDescriptionIndentingWriter
(Writer out) IndentingWriter
(Writer out, boolean doSpace, boolean doNewline) -
Method Summary
Modifier and TypeMethodDescriptionstatic IndentingWriter
makeIndentingWriter
(Writer writer) newline()
Newline indenting writer.pop()
Pop indenting writer.push()
Push indenting writer.space()
Space indenting writer.void
write
(char[] buf) void
write
(char[] buf, int offset, int length) void
write
(int c) void
void
Methods inherited from class java.io.FilterWriter
close, flush
Methods inherited from class java.io.Writer
append, append, append, nullWriter
-
Constructor Details
-
IndentingWriter
-
IndentingWriter
-
-
Method Details
-
makeIndentingWriter
-
newline
Newline indenting writer.- Returns:
- the indenting writer
- Throws:
IOException
- the io exception
-
push
Push indenting writer.- Returns:
- the indenting writer
-
pop
Pop indenting writer.- Returns:
- the indenting writer
-
space
Space indenting writer.- Returns:
- the indenting writer
- Throws:
IOException
- the io exception
-
write
- Overrides:
write
in classWriter
- Throws:
IOException
-
write
- Overrides:
write
in classFilterWriter
- Throws:
IOException
-
write
- Overrides:
write
in classFilterWriter
- Throws:
IOException
-
write
- Overrides:
write
in classWriter
- Throws:
IOException
-
write
- Overrides:
write
in classFilterWriter
- Throws:
IOException
-