public class ConsumingWriter extends Writer
| Constructor and Description |
|---|
ConsumingWriter(ConsumerWhichThrows<? super CharSequence,? extends IOException> consumer) |
| Modifier and Type | Method and Description |
|---|---|
Writer |
append(CharSequence csq) |
Writer |
append(CharSequence csq,
int start,
int end) |
void |
close() |
static Writer |
create(ConsumerWhichThrows<? super CharSequence,? extends IOException> consumer)
This method is sometimes more efficient than calling "
new ConsumingWriter()". |
void |
flush() |
void |
write(char[] cbuf,
int off,
int len) |
void |
write(String str,
int off,
int len) |
public ConsumingWriter(ConsumerWhichThrows<? super CharSequence,? extends IOException> consumer)
public static Writer create(ConsumerWhichThrows<? super CharSequence,? extends IOException> consumer)
new ConsumingWriter()".public void write(char[] cbuf,
int off,
int len)
throws IOException
write in class WriterIOExceptionpublic void write(String str, int off, int len) throws IOException
write in class WriterIOExceptionpublic void flush()
throws IOException
flush in interface Flushableflush in class WriterIOExceptionpublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableclose in class WriterIOExceptionpublic Writer append(CharSequence csq) throws IOException
append in interface Appendableappend in class WriterIOExceptionpublic Writer append(CharSequence csq, int start, int end) throws IOException
append in interface Appendableappend in class WriterIOExceptionCopyright © 2022 Arno Unkrig. All rights reserved.