javax.media.protocol
Class InputSourceStream
java.lang.Object
javax.media.protocol.InputSourceStream
- All Implemented Interfaces:
- Controls, PullSourceStream, SourceStream
public class InputSourceStream
- extends java.lang.Object
- implements PullSourceStream
Standard JMF class -- see this class in the JMF Javadoc.
Coding complete.
- Author:
- Ken Larson
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
stream
protected java.io.InputStream stream
eosReached
protected boolean eosReached
InputSourceStream
public InputSourceStream(java.io.InputStream s,
ContentDescriptor type)
getContentDescriptor
public ContentDescriptor getContentDescriptor()
- Specified by:
getContentDescriptor
in interface SourceStream
getContentLength
public long getContentLength()
- Specified by:
getContentLength
in interface SourceStream
willReadBlock
public boolean willReadBlock()
- Specified by:
willReadBlock
in interface PullSourceStream
read
public int read(byte[] buffer,
int offset,
int length)
throws java.io.IOException
- Specified by:
read
in interface PullSourceStream
- Throws:
java.io.IOException
close
public void close()
throws java.io.IOException
- Throws:
java.io.IOException
endOfStream
public boolean endOfStream()
- Specified by:
endOfStream
in interface SourceStream
getControls
public java.lang.Object[] getControls()
- Specified by:
getControls
in interface Controls
getControl
public java.lang.Object getControl(java.lang.String controlName)
- Specified by:
getControl
in interface Controls