Package groovy.text.markup
Class DelegatingIndentWriter
- java.lang.Object
- 
- java.io.Writer
- 
- groovy.text.markup.DelegatingIndentWriter
 
 
- 
- All Implemented Interfaces:
- Closeable,- Flushable,- Appendable,- AutoCloseable
 
 public class DelegatingIndentWriter extends Writer A writer which delegates to another writer and supports an additional indenting level.
- 
- 
Constructor SummaryConstructors Constructor Description DelegatingIndentWriter(Writer delegate)DelegatingIndentWriter(Writer delegate, String indentString)
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description Writerappend(char c)Writerappend(CharSequence csq)Writerappend(CharSequence csq, int start, int end)voidclose()voidflush()intnext()intprevious()voidwrite(char[] cbuf)voidwrite(char[] cbuf, int off, int len)voidwrite(int c)voidwrite(String str)voidwrite(String str, int off, int len)voidwriteIndent()- 
Methods inherited from class java.io.WriternullWriter
 
- 
 
- 
- 
- 
Field Detail- 
SPACESpublic static final String SPACES - See Also:
- Constant Field Values
 
 - 
TABpublic static final String TAB - See Also:
- Constant Field Values
 
 
- 
 - 
Method Detail- 
writepublic void write(int c) throws IOException- Overrides:
- writein class- Writer
- Throws:
- IOException
 
 - 
writepublic void write(char[] cbuf) throws IOException- Overrides:
- writein class- Writer
- Throws:
- IOException
 
 - 
writepublic void write(char[] cbuf, int off, int len) throws IOException- Specified by:
- writein class- Writer
- Throws:
- IOException
 
 - 
writepublic void write(String str) throws IOException - Overrides:
- writein class- Writer
- Throws:
- IOException
 
 - 
writepublic void write(String str, int off, int len) throws IOException - Overrides:
- writein class- Writer
- Throws:
- IOException
 
 - 
appendpublic Writer append(CharSequence csq) throws IOException - Specified by:
- appendin interface- Appendable
- Overrides:
- appendin class- Writer
- Throws:
- IOException
 
 - 
appendpublic Writer append(CharSequence csq, int start, int end) throws IOException - Specified by:
- appendin interface- Appendable
- Overrides:
- appendin class- Writer
- Throws:
- IOException
 
 - 
appendpublic Writer append(char c) throws IOException - Specified by:
- appendin interface- Appendable
- Overrides:
- appendin class- Writer
- Throws:
- IOException
 
 - 
flushpublic void flush() throws IOException- Specified by:
- flushin interface- Flushable
- Specified by:
- flushin class- Writer
- Throws:
- IOException
 
 - 
closepublic void close() throws IOException- Specified by:
- closein interface- AutoCloseable
- Specified by:
- closein interface- Closeable
- Specified by:
- closein class- Writer
- Throws:
- IOException
 
 - 
nextpublic int next() 
 - 
previouspublic int previous() 
 - 
writeIndentpublic void writeIndent() throws IOException- Throws:
- IOException
 
 
- 
 
-