|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--java.io.Writer | +--sdsu.io.SplitWriter
This class acts like an N way split in a writer stream. N different writers can be connected to the end of a SplitWriter. These N writers are not chained together. What ever is writen on the SplitWriter is copied and written to each of the N writers. The following shows a SplitWriter with three writers.
|-->---- ---->---|-->---- |-->----
Constructor Summary | |
SplitWriter()
Create an empty SplitWriter. |
|
SplitWriter(java.io.Writer output)
Create SplitWriter on the given Writer |
Method Summary | |
void |
add(java.io.OutputStream output)
Add an outputStream to the end of the SplitWriter. |
void |
add(java.io.Writer output)
Add a writer to the end of the SplitWriter. |
void |
close()
Close the stream, flushing it first. |
void |
flush()
Flush the stream. |
void |
remove(java.io.Writer output)
Removes a writer from the SplitWriter. |
void |
write(char[] charBuffer,
int offset,
int length)
Write a portion of an array of characters. |
Methods inherited from class java.io.Writer |
write,
write,
write,
write |
Methods inherited from class java.lang.Object |
equals,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Constructor Detail |
public SplitWriter(java.io.Writer output)
public SplitWriter()
Method Detail |
public void add(java.io.Writer output)
public void add(java.io.OutputStream output)
public void remove(java.io.Writer output)
public void flush() throws java.io.IOException
public void close() throws java.io.IOException
public void write(char[] charBuffer, int offset, int length) throws java.io.IOException
charBuffer
- Array of charactersoffset
- Offset from which to start writing characterslength
- Number of characters to write
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |