public class MultiWriter extends java.io.Writer implements StreamCancelable
| Constructor and Description |
|---|
MultiWriter(java.io.Writer... writers)
New MultiWriter for specified writers.
|
| Modifier and Type | Method and Description |
|---|---|
void |
cancel() |
void |
close() |
void |
flush() |
java.io.Writer |
getWriter(int index)
Returns writer by index.
|
void |
write(char[] cbuf,
int off,
int len) |
public MultiWriter(java.io.Writer... writers)
public void write(char[] cbuf,
int off,
int len)
throws java.io.IOException
write in class java.io.Writerjava.io.IOExceptionpublic void flush()
throws java.io.IOException
flush in interface java.io.Flushableflush in class java.io.Writerjava.io.IOExceptionpublic void close()
throws java.io.IOException
close in interface java.io.Closeableclose in interface java.lang.AutoCloseableclose in class java.io.Writerjava.io.IOExceptionpublic void cancel()
cancel in interface StreamCancelablepublic java.io.Writer getWriter(int index)
index - Copyright © 2019. All Rights Reserved.