|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.io.OutputStream
edu.rice.cs.plt.io.DirectOutputStream
edu.rice.cs.plt.io.OutputStreamSplitter
public class OutputStreamSplitter
An output stream that allows sending the same data to an arbitrary number of streams.
| Field Summary |
|---|
| Fields inherited from class edu.rice.cs.plt.io.DirectOutputStream |
|---|
DEFAULT_BUFFER_SIZE |
| Constructor Summary | |
|---|---|
OutputStreamSplitter(java.lang.Iterable<? extends java.io.OutputStream> streams)
|
|
OutputStreamSplitter(java.io.OutputStream... streams)
|
|
| Method Summary | |
|---|---|
void |
close()
|
int |
compositeHeight()
Get the maximum path length from this node to a leaf. |
int |
compositeSize()
Get the number of nodes in the tree rooted at this node. |
void |
flush()
|
void |
write(byte[] bytes)
Delegate to the more general DirectOutputStream.write(byte[], int, int) method |
void |
write(byte[] bytes,
int off,
int len)
Subclasses are, at a minimum, required to implement this method. |
void |
write(int b)
Delegate to the more general DirectOutputStream.write(byte[], int, int) method |
| Methods inherited from class edu.rice.cs.plt.io.DirectOutputStream |
|---|
write, write, write, writeAll, writeAll, writeAll |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public OutputStreamSplitter(java.io.OutputStream... streams)
public OutputStreamSplitter(java.lang.Iterable<? extends java.io.OutputStream> streams)
| Method Detail |
|---|
public int compositeHeight()
Composite
compositeHeight in interface Compositepublic int compositeSize()
Composite
compositeSize in interface Composite
public void close()
throws java.io.IOException
close in interface java.io.Closeableclose in class java.io.OutputStreamjava.io.IOException
public void flush()
throws java.io.IOException
flush in interface java.io.Flushableflush in class java.io.OutputStreamjava.io.IOException
public void write(byte[] bytes)
throws java.io.IOException
DirectOutputStreamDirectOutputStream.write(byte[], int, int) method
write in class DirectOutputStreamjava.io.IOException
public void write(byte[] bytes,
int off,
int len)
throws java.io.IOException
DirectOutputStream
write in class DirectOutputStreamjava.io.IOException
public void write(int b)
throws java.io.IOException
DirectOutputStreamDirectOutputStream.write(byte[], int, int) method
write in class DirectOutputStreamjava.io.IOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||