Class DelegatingSysoutWriter
- java.lang.Object
-
- java.io.Writer
-
- net.ssehub.easy.instantiation.core.model.common.DelegatingSysoutWriter
-
- All Implemented Interfaces:
java.io.Closeable,java.io.Flushable,java.lang.Appendable,java.lang.AutoCloseable
public class DelegatingSysoutWriter extends java.io.WriterA writer which writes to the original (delegate) Writer and to system out. This writer is intended for debugging.- Author:
- Holger Eichelberger
-
-
Field Summary
Fields Modifier and Type Field Description private java.io.Writerdelegate
-
Constructor Summary
Constructors Constructor Description DelegatingSysoutWriter(java.io.Writer delegate)Creates the delegating writer ondelegate.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()voidflush()voidwrite(char[] cbuf, int off, int len)
-
-
-
Method Detail
-
write
public void write(char[] cbuf, int off, int len) throws java.io.IOException- Specified by:
writein classjava.io.Writer- Throws:
java.io.IOException
-
flush
public void flush() throws java.io.IOException- Specified by:
flushin interfacejava.io.Flushable- Specified by:
flushin classjava.io.Writer- Throws:
java.io.IOException
-
close
public void close() throws java.io.IOException- Specified by:
closein interfacejava.lang.AutoCloseable- Specified by:
closein interfacejava.io.Closeable- Specified by:
closein classjava.io.Writer- Throws:
java.io.IOException
-
-