All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class ejmf.toolkit.io.PushSourceInputStream

java.lang.Object
   |
   +----java.io.InputStream
           |
           +----ejmf.toolkit.io.PushSourceInputStream

public class PushSourceInputStream
extends InputStream
The PushSourceInputStream class wraps a java.io.InputStream around a javax.media.protocol.PushSourceStream, allowing conventional I/O to access media data.

See Also:
PullSourceStream

Constructor Index

 o PushSourceInputStream(PushSourceStream)
Constructs a PushSourceInputStream for the given PushSourceStream.

Method Index

 o getPushSourceStream()
Get the PushSourceStream for this PushSourceInputStream.
 o read()
Reads the next byte of data from this input stream.
 o read(byte[], int, int)
A standard implementation of the InputStream.read() method.

Constructors

 o PushSourceInputStream
 public PushSourceInputStream(PushSourceStream stream)
Constructs a PushSourceInputStream for the given PushSourceStream.

Methods

 o read
 public int read() throws IOException
Reads the next byte of data from this input stream. The value byte is returned as an int in the range 0 to 255. If no byte is available because the end of the stream has been reached, the value -1 is returned. This is directly from the InputStream API.

Returns:
The next byte of data, or -1 if the end of the stream is reached.
Throws: IOException
if an I/O error occurs.
Overrides:
read in class InputStream
 o read
 public int read(byte b[],
                 int off,
                 int len) throws IOException
A standard implementation of the InputStream.read() method.

Parameters:
b[] - The byte array into which to read data.
off - The offset in the array to begin writing data.
len - The number of bytes to read.
Returns:
The number of bytes read, or -1 if the end of the stream.
Throws: IOException
If an I/O error occurs while reading.
Overrides:
read in class InputStream
 o getPushSourceStream
 public PushSourceStream getPushSourceStream()
Get the PushSourceStream for this PushSourceInputStream.


All Packages  Class Hierarchy  This Package  Previous  Next  Index