public class DelegatingIndentWriter
extends Writer
A writer which delegates to another writer and supports an additional indenting level.
| Constructor and description |
|---|
DelegatingIndentWriter(Writer delegate)Creates an indenting writer that uses SPACES for each indentation level. |
DelegatingIndentWriter(Writer delegate, String indentString)Creates an indenting writer that delegates output to another writer. |
| Type Params | Return Type | Name and description |
|---|---|---|
|
public Writer |
append(CharSequence csq){@inheritDoc} |
|
public Writer |
append(CharSequence csq, int start, int end){@inheritDoc} |
|
public Writer |
append(char c){@inheritDoc} |
|
public void |
close(){@inheritDoc} |
|
public void |
flush(){@inheritDoc} |
|
public int |
next()Increases the current indentation level. |
|
public int |
previous()Decreases the current indentation level. |
|
public void |
write(int c){@inheritDoc} |
|
public void |
write(char[] cbuf){@inheritDoc} |
|
public void |
write(char[] cbuf, int off, int len){@inheritDoc} |
|
public void |
write(String str){@inheritDoc} |
|
public void |
write(String str, int off, int len){@inheritDoc} |
|
public void |
writeIndent()Writes the current indentation prefix to the delegate writer. |
Four-space indentation unit.
Tab indentation unit.
Creates an indenting writer that uses SPACES for each indentation level.
delegate - writer that receives the rendered output{@inheritDoc}
{@inheritDoc}
{@inheritDoc}
{@inheritDoc}
{@inheritDoc}
Increases the current indentation level.
Decreases the current indentation level.
{@inheritDoc}
{@inheritDoc}
{@inheritDoc}
{@inheritDoc}
{@inheritDoc}
Writes the current indentation prefix to the delegate writer.
Copyright © 2003-2026 The Apache Software Foundation. All rights reserved.