public class AppendableWriter extends Writer
Writer that adapts an Appendable.| Modifier and Type | Field and Description |
|---|---|
private Appendable |
appendable
The delegate.
|
| Constructor and Description |
|---|
AppendableWriter(Appendable appendable)
The constructor.
|
| Modifier and Type | Method and Description |
|---|---|
AppendableWriter |
append(char c) |
AppendableWriter |
append(CharSequence csq) |
AppendableWriter |
append(CharSequence csq,
int start,
int end) |
void |
close() |
void |
flush() |
Appendable |
getAppendable()
This method gets the
Appendable to delegate to. |
void |
write(char[] buffer) |
void |
write(char[] buffer,
int offset,
int length) |
void |
write(String string) |
void |
write(String string,
int offset,
int length) |
private final Appendable appendable
public AppendableWriter(Appendable appendable)
appendable - is the Appendable to adapt.public void close()
throws RuntimeIoException
close in interface Closeableclose in interface AutoCloseableclose in class WriterRuntimeIoExceptionpublic void flush()
throws RuntimeIoException
flush in interface Flushableflush in class WriterRuntimeIoExceptionpublic AppendableWriter append(char c) throws RuntimeIoException
append in interface Appendableappend in class WriterRuntimeIoExceptionpublic AppendableWriter append(CharSequence csq) throws RuntimeIoException
append in interface Appendableappend in class WriterRuntimeIoExceptionpublic AppendableWriter append(CharSequence csq, int start, int end) throws RuntimeIoException
append in interface Appendableappend in class WriterRuntimeIoExceptionpublic void write(char[] buffer)
throws RuntimeIoException
write in class WriterRuntimeIoExceptionpublic void write(String string) throws RuntimeIoException
write in class WriterRuntimeIoExceptionpublic void write(String string, int offset, int length) throws RuntimeIoException
write in class WriterRuntimeIoExceptionpublic void write(char[] buffer,
int offset,
int length)
throws RuntimeIoException
write in class WriterRuntimeIoExceptionpublic Appendable getAppendable()
Appendable to delegate to.Copyright © 2001–2016 mmm-Team. All rights reserved.