FileDocCategorySizeDatePackage
SourceStream.javaAPI DocJMF 2.1.1e1911Mon May 12 12:20:42 BST 2003javax.media.protocol

SourceStream

public interface SourceStream implements 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. In that case, it should implement the Seekable interface. Some streams allow its output format to be changed. It should then implement the Formattable interface.

Many 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.

see
DataSource
see
PushSourceStream
see
PullSourceStream
see
Seekable
version
1.5, 02/08/21.

Fields Summary
public static final long
LENGTH_UNKNOWN
Constructors Summary
Methods Summary
public booleanendOfStream()
Find out if the end of the stream has been reached.

return
Returns true if there is no more data.

public javax.media.protocol.ContentDescriptorgetContentDescriptor()
Get the current content type for this stream.

return
The current ContentDescriptor for this stream.

public longgetContentLength()
Get the size, in bytes, of the content on this stream. LENGTH_UNKNOWN is returned if the length is not known.

return
The content length in bytes.