fr.opensagres.xdocreport.core.io
Class MultiWriter
java.lang.Object
java.io.Writer
fr.opensagres.xdocreport.core.io.MultiWriter
- All Implemented Interfaces:
- StreamCancelable, Closeable, Flushable, Appendable
public class MultiWriter
- extends Writer
- implements StreamCancelable
Multiple writer used to write for several writer.
Constructor Summary |
MultiWriter(Writer... writers)
New MultiWriter for specified writers. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MultiWriter
public MultiWriter(Writer... writers)
- New MultiWriter for specified writers. Note that flush is only done on explicit call.
write
public void write(char[] cbuf,
int off,
int len)
throws IOException
- Specified by:
write
in class Writer
- Throws:
IOException
flush
public void flush()
throws IOException
- Specified by:
flush
in interface Flushable
- Specified by:
flush
in class Writer
- Throws:
IOException
close
public void close()
throws IOException
- Specified by:
close
in interface Closeable
- Specified by:
close
in class Writer
- Throws:
IOException
cancel
public void cancel()
- Specified by:
cancel
in interface StreamCancelable
getWriter
public Writer getWriter(int index)
- Returns writer by index.
- Parameters:
index
-
- Returns:
Copyright © 2013. All rights reserved.