|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.io.Writer
edu.udo.cs.yale.tools.WriterMultiplier
public class WriterMultiplier
By using this multiplier all written content is multiplied to the given writers.
Field Summary | |
---|---|
private java.io.Writer[] |
writer
The writers to write the contents to. |
Fields inherited from class java.io.Writer |
---|
lock |
Constructor Summary | |
---|---|
WriterMultiplier(java.io.Writer[] writer)
Creates a new writer multiplier. |
Method Summary | |
---|---|
void |
close()
Closes all writers. |
void |
flush()
Flushes all writers. |
void |
write(char[] bytes,
int offset,
int length)
Implements the abstract method of the superclass. |
Methods inherited from class java.io.Writer |
---|
append, append, append, write, write, write, write |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private java.io.Writer[] writer
Constructor Detail |
---|
public WriterMultiplier(java.io.Writer[] writer)
Method Detail |
---|
public void write(char[] bytes, int offset, int length) throws java.io.IOException
write
in class java.io.Writer
java.io.IOException
public void close() throws java.io.IOException
close
in interface java.io.Closeable
close
in class java.io.Writer
java.io.IOException
public void flush() throws java.io.IOException
flush
in interface java.io.Flushable
flush
in class java.io.Writer
java.io.IOException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |