public class YWayWriter
extends java.io.FilterWriter
Constructor and Description |
---|
YWayWriter(java.io.Writer out)
Constructor specifying only the underlying ouput stream.
|
YWayWriter(java.io.Writer out,
java.io.Writer yway)
Constructor specifying the underlying ouput stream and the output stream
where incoming data should also be written to.
|
Modifier and Type | Method and Description |
---|---|
void |
close()
Overrides the corresponding inherited method in FilterWriter.
|
void |
flush()
Overrides the corresponding inherited method in FilterWriter.
|
void |
write(char[] cbuf,
int off,
int len)
Overrides the corresponding inherited method in FilterWriter.
|
void |
write(int c)
Overrides the corresponding inherited method in FilterWriter.
|
void |
write(java.lang.String str,
int off,
int len)
Overrides the corresponding inherited method in FilterWriter.
|
public YWayWriter(java.io.Writer out)
public YWayWriter(java.io.Writer out, java.io.Writer yway)
public void write(int c) throws java.io.IOException
write
in class java.io.FilterWriter
java.io.IOException
public void write(char[] cbuf, int off, int len) throws java.io.IOException
write
in class java.io.FilterWriter
java.io.IOException
public void write(java.lang.String str, int off, int len) throws java.io.IOException
write
in class java.io.FilterWriter
java.io.IOException
public void close() throws java.io.IOException
close
in interface java.io.Closeable
close
in interface java.lang.AutoCloseable
close
in class java.io.FilterWriter
java.io.IOException
public void flush() throws java.io.IOException
flush
in interface java.io.Flushable
flush
in class java.io.FilterWriter
java.io.IOException