| Modifier and Type | Field and Description |
|---|---|
| private boolean | collectingIndent
whether indent spaces are currently being collected |
| private int | column
|
| private int | indent
|
| private final int | maxIndent
|
| private final String | prefix
|
| private final int | width
|
| Access | Constructor and Description |
|---|---|
| public | IndentingWriter(Writer
non-null; writer to send final output to>= 0; the maximum output width (not including
prefix), or 0 for no maximumnon-null; the prefix for each lineConstructs an instance. |
| public | IndentingWriter(Writer
non-null; writer to send final output to>= 0; the maximum output width (not including
prefix), or 0 for no maximumConstructs a no-prefix instance. |
| Modifier and Type | Method and Description |
|---|---|
| private void | |
| public void | write(int
int specifying a character to be written c)Overrides java. |
| public void | write(char[]
Buffer of characters to be written cbuf, int Offset from which to start reading characters off, int Number of characters to be written len)Overrides java. |
| public void | write(String
String to be written str, int Offset from which to start reading characters off, int Number of characters to be written len)Overrides java. |
| collectingIndent | back to summary |
|---|---|
| private boolean collectingIndent whether indent spaces are currently being collected | |
| column | back to summary |
|---|---|
| private int column
| |
| indent | back to summary |
|---|---|
| private int indent
| |
| maxIndent | back to summary |
|---|---|
| private final int maxIndent
| |
| prefix | back to summary |
|---|---|
| private final String prefix
| |
| width | back to summary |
|---|---|
| private final int width
| |
| IndentingWriter | back to summary |
|---|---|
| public IndentingWriter(Writer out, int width, String prefix) Constructs an instance. | |
| IndentingWriter | back to summary |
|---|---|
| public IndentingWriter(Writer out, int width) Constructs a no-prefix instance.
| |
| bol | back to summary |
|---|---|
| private void bol() Indicates that output is at the beginning of a line. | |
| write | back to summary |
|---|---|
| public void write(int c) throws IOException Overrides java. Doc from java. Writes a single character.
| |
| write | back to summary |
|---|---|
| public void write(char[] cbuf, int off, int len) throws IOException Overrides java. Doc from java. Writes a portion of an array of characters.
| |
| write | back to summary |
|---|---|
| public void write(String str, int off, int len) throws IOException Overrides java. Doc from java. Writes a portion of a string.
| |