mediaframe.mpeg1.audio.player
Class BigPipedOutputStream

java.lang.Object
  |
  +--mediaframe.mpeg1.audio.player.BigPipedOutputStream

public class BigPipedOutputStream
extends java.lang.Object

The BigPipedOutputStream represents the Piped Output Stream. It writes the data into the BigPipedInputStream using it's "receive" method when the client wants to write the data into the stream.

Version:
1.0 26.07.2002
Author:
Konstantin Belous

Field Summary
(package private)  BigPipedInputStream inputPipe
          The reference to the input stream in the pipe.
 
Constructor Summary
BigPipedOutputStream(BigPipedInputStream snk)
          Constructs a BigPipedOutputStream class with the specified BigPipedInputStream object in the pipe.
 
Method Summary
 void close()
          Closes the pipe.
 void connect(BigPipedInputStream snk)
          Connects this object with the specified BigPipedInputStream object in the pipe.
 void write(short[] b, int off, int len)
          Writes len bytes from the specified short array starting at offset off to this stream.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

inputPipe

BigPipedInputStream inputPipe
The reference to the input stream in the pipe.

Constructor Detail

BigPipedOutputStream

public BigPipedOutputStream(BigPipedInputStream snk)
Constructs a BigPipedOutputStream class with the specified BigPipedInputStream object in the pipe.

Parameters:
snk - the BigPipedInputStream object.
Method Detail

close

public void close()
Closes the pipe.


connect

public void connect(BigPipedInputStream snk)
Connects this object with the specified BigPipedInputStream object in the pipe.

Parameters:
snk - the BigPipedInputStream object.

write

public void write(short[] b,
                  int off,
                  int len)
           throws java.io.IOException
Writes len bytes from the specified short array starting at offset off to this stream.

Parameters:
b - the data.
off - the start offset in the data.
len - the number of bytes to write.
Throws:
java.io.IOException - raises if a error occurs.