public interface SourceStream extends Controls
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.
DataSource,
PushSourceStream,
PullSourceStream,
Seekable| Modifier and Type | Field and Description |
|---|---|
static long |
LENGTH_UNKNOWN |
| Modifier and Type | Method and Description |
|---|---|
boolean |
endOfStream()
Find out if the end of the stream has been reached.
|
ContentDescriptor |
getContentDescriptor()
Get the current content type for this stream.
|
long |
getContentLength()
Get the size, in bytes, of the content on this stream.
|
getControl, getControlsstatic final long LENGTH_UNKNOWN
ContentDescriptor getContentDescriptor()
ContentDescriptor for this stream.long getContentLength()
boolean endOfStream()
true if there is no more data.Copyright © 2012 code4tv.com. All Rights Reserved.