|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
|
+--java.io.InputStream
|
+--local.media.MixerLine
MixerLine is a simple G711 mixer with N input lines (InputStream) and one output line (the MixerLine itself).
Each input line has an identifier (Object) used as key when adding or removing the line.
| Constructor Summary | |
MixerLine(java.lang.Object mixer_id)
Creates a new MixerLine. |
|
MixerLine(java.lang.Object mixer_id,
java.util.Hashtable input_lines)
Creates a new MixerLine. |
|
| Method Summary | |
void |
addLine(java.lang.Object id,
java.io.InputStream is)
Adds a new line. |
int |
available()
Returns the number of bytes that can be read (or skipped over) from this input stream without blocking by the next caller of a method for this input stream. |
void |
close()
Closes this input stream and releases any system resources associated with the stream. |
void |
mark(int readlimit)
Marks the current position in this input stream. |
boolean |
markSupported()
Tests if this input stream supports the mark and reset methods. |
int |
read()
Reads the next byte of data from the input stream. |
int |
read(byte[] b)
Reads some number of bytes from the input stream and stores them into the buffer array b. |
int |
read(byte[] b,
int off,
int len)
Reads up to len bytes of data from the input stream into an array of bytes. |
void |
removeLine(java.lang.Object id)
Removes a line. |
void |
reset()
Repositions this stream to the position at the time the mark method was last called on this input stream. |
long |
skip(long n)
Skips over and discards n bytes of data from this input stream. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public MixerLine(java.lang.Object mixer_id)
public MixerLine(java.lang.Object mixer_id,
java.util.Hashtable input_lines)
| Method Detail |
public void addLine(java.lang.Object id,
java.io.InputStream is)
public void removeLine(java.lang.Object id)
public int available()
throws java.io.IOException
available in class java.io.InputStream
public void close()
throws java.io.IOException
close in class java.io.InputStreampublic void mark(int readlimit)
mark in class java.io.InputStreampublic boolean markSupported()
markSupported in class java.io.InputStream
public int read()
throws java.io.IOException
read in class java.io.InputStream
public int read(byte[] b)
throws java.io.IOException
read in class java.io.InputStream
public int read(byte[] b,
int off,
int len)
throws java.io.IOException
read in class java.io.InputStream
public void reset()
throws java.io.IOException
reset in class java.io.InputStream
public long skip(long n)
throws java.io.IOException
skip in class java.io.InputStream
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||