|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
|
+--java.io.OutputStream
|
+--local.media.SplitterLine
SplitterLine is a simple splitter with one input line (the SplitterLine itself) and N output lines (OutputStreams).
Each output line has an identifier (Object) used as key when adding or removing the line.
| Constructor Summary | |
SplitterLine(java.lang.Object splitter_id)
Creates a new SplitterLine. |
|
SplitterLine(java.lang.Object splitter_id,
java.util.Hashtable output_lines)
Creates a new SplitterLine. |
|
| Method Summary | |
void |
addLine(java.lang.Object id,
java.io.OutputStream os)
Adds a new line. |
void |
close()
Closes this output stream and releases any system resources associated with this stream. |
void |
flush()
Flushes this output stream and forces any buffered output bytes to be written out. |
void |
removeLine(java.lang.Object id)
Removes a line. |
void |
write(byte[] b)
Writes b.length bytes from the specified byte array to this output stream. |
void |
write(byte[] b,
int off,
int len)
Writes len bytes from the specified byte array starting at offset off to this output stream. |
void |
write(int b)
Writes the specified byte to this output stream. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public SplitterLine(java.lang.Object splitter_id)
public SplitterLine(java.lang.Object splitter_id,
java.util.Hashtable output_lines)
| Method Detail |
public void addLine(java.lang.Object id,
java.io.OutputStream os)
public void removeLine(java.lang.Object id)
public void close()
throws java.io.IOException
close in class java.io.OutputStream
public void flush()
throws java.io.IOException
flush in class java.io.OutputStream
public void write(byte[] b)
throws java.io.IOException
write in class java.io.OutputStream
public void write(byte[] b,
int off,
int len)
throws java.io.IOException
write in class java.io.OutputStream
public void write(int b)
throws java.io.IOException
write in class java.io.OutputStream
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||