Class sun.audio.AudioStreamSequence
All Packages Class Hierarchy This Package Previous Next Index
Class sun.audio.AudioStreamSequence
java.lang.Object
|
+----java.io.InputStream
|
+----sun.audio.AudioStreamSequence
- public class AudioStreamSequence
- extends InputStream
Convert a sequence of input streams into a single InputStream.
This class can be used to play two audio clips in sequence.
For example:
Vector v = new Vector();
v.addElement(audiostream1);
v.addElement(audiostream2);
AudioStreamSequence audiostream = new AudioStreamSequence(v.elements());
AudioPlayer.player.start(audiostream);
- Version:
- 1.10, 08/12/95
- Author:
- Arthur van Hoff
- See Also:
- AudioPlayer
-
AudioStreamSequence(Enumeration)
- Create an AudioStreamSequence given an
enumeration of streams.
-
read()
- Read, when reaching an EOF, flip to the next stream.
-
read(byte[], int, int)
- Read, when reaching an EOF, flip to the next stream.
AudioStreamSequence
public AudioStreamSequence(Enumeration e)
- Create an AudioStreamSequence given an
enumeration of streams.
read
public int read() throws IOException
- Read, when reaching an EOF, flip to the next stream.
- Overrides:
- read in class InputStream
read
public int read(byte buf[],
int pos,
int len) throws IOException
- Read, when reaching an EOF, flip to the next stream.
- Overrides:
- read in class InputStream
All Packages Class Hierarchy This Package Previous Next Index