private static final class Streams.AppendableWriter
extends java.io.Writer
Appendable so it can be passed anywhere a Writer
is used.| Modifier and Type | Class and Description |
|---|---|
(package private) static class |
Streams.AppendableWriter.CurrentWrite
A mutable char sequence pointing at a single char[].
|
| Modifier and Type | Field and Description |
|---|---|
private java.lang.Appendable |
appendable |
private Streams.AppendableWriter.CurrentWrite |
currentWrite |
| Constructor and Description |
|---|
AppendableWriter(java.lang.Appendable appendable) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
void |
flush() |
void |
write(char[] chars,
int offset,
int length) |
void |
write(int i) |
private final java.lang.Appendable appendable
private final Streams.AppendableWriter.CurrentWrite currentWrite
public void write(char[] chars,
int offset,
int length)
throws java.io.IOException
write in class java.io.Writerjava.io.IOExceptionpublic void write(int i)
throws java.io.IOException
write in class java.io.Writerjava.io.IOExceptionpublic void flush()
flush in interface java.io.Flushableflush in class java.io.Writerpublic void close()
close in interface java.io.Closeableclose in interface java.lang.AutoCloseableclose in class java.io.Writer