All Packages  Class Hierarchy  This Package  Previous  Next  Index

Interface javax.media.protocol.SourceStream

public interface SourceStream
extends Controls
Abstracts a single stream of media data.

Stream Controls

A SourceStream might support an operation that is not part of the SourceStream definition. For example a stream might support seeking to a particular byte in the stream. Some operations are dependent on the stream data, and support cannot be determined until the stream is in use.

To obtain all of the objects that provide control over a stream use getControls. To determine if a particular kind of control is available, and obtain the object that implements the control use getControl.

Version:
1.12, 97/08/28.
See Also:
DataSource, PushSourceStream, PullSourceStream, Seekable

Variable Index

 o LENGTH_UNKNOWN

Method Index

 o endOfStream()
Find out if the end of the stream has been reached.
 o getContentDescriptor()
Get the current content type for this stream.
 o getContentLength()
Get the size, in bytes, of the content on this stream.

Variables

 o LENGTH_UNKNOWN
 public static final long LENGTH_UNKNOWN

Methods

 o getContentDescriptor
 public abstract ContentDescriptor getContentDescriptor()
Get the current content type for this stream.

Returns:
The current ContentDescriptor for this stream.
 o getContentLength
 public abstract long getContentLength()
Get the size, in bytes, of the content on this stream. LENGTH_UNKNOWN is returned if the length is not known.

Returns:
The content length in bytes.
 o endOfStream
 public abstract boolean endOfStream()
Find out if the end of the stream has been reached.

Returns:
Returns true if there is no more data.

All Packages  Class Hierarchy  This Package  Previous  Next  Index