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 Closeable
close
in interface AutoCloseable
close
in class Writer
RuntimeIoException
public void flush() throws RuntimeIoException
flush
in interface Flushable
flush
in class Writer
RuntimeIoException
public AppendableWriter append(char c) throws RuntimeIoException
append
in interface Appendable
append
in class Writer
RuntimeIoException
public AppendableWriter append(CharSequence csq) throws RuntimeIoException
append
in interface Appendable
append
in class Writer
RuntimeIoException
public AppendableWriter append(CharSequence csq, int start, int end) throws RuntimeIoException
append
in interface Appendable
append
in class Writer
RuntimeIoException
public void write(char[] buffer) throws RuntimeIoException
write
in class Writer
RuntimeIoException
public void write(String string) throws RuntimeIoException
write
in class Writer
RuntimeIoException
public void write(String string, int offset, int length) throws RuntimeIoException
write
in class Writer
RuntimeIoException
public void write(char[] buffer, int offset, int length) throws RuntimeIoException
write
in class Writer
RuntimeIoException
public Appendable getAppendable()
Appendable
to delegate to.Copyright © 2001–2016 mmm-Team. All rights reserved.