Package 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,AutoCloseable
Multiple writer used to write for several writer.
-
Constructor Details
-
MultiWriter
New MultiWriter for specified writers. Note that flush is only done on explicit call.
-
-
Method Details
-
write
- Specified by:
writein classWriter- Throws:
IOException
-
flush
- Specified by:
flushin interfaceFlushable- Specified by:
flushin classWriter- Throws:
IOException
-
close
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Specified by:
closein classWriter- Throws:
IOException
-
cancel
public void cancel()- Specified by:
cancelin interfaceStreamCancelable
-
getWriter
Returns writer by index.- Parameters:
index-- Returns:
-