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 |
Modifier | Constructor and Description |
---|---|
private |
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.Writer
java.io.IOException
public void write(int i) throws java.io.IOException
write
in class java.io.Writer
java.io.IOException
public void flush()
flush
in interface java.io.Flushable
flush
in class java.io.Writer
public void close()
close
in interface java.io.Closeable
close
in interface java.lang.AutoCloseable
close
in class java.io.Writer