javax.media.protocol
Class InputSourceStream

java.lang.Object
  extended by 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

Field Summary
protected  boolean eosReached
           
protected  java.io.InputStream stream
           
 
Fields inherited from interface javax.media.protocol.SourceStream
LENGTH_UNKNOWN
 
Constructor Summary
InputSourceStream(java.io.InputStream s, ContentDescriptor type)
           
 
Method Summary
 void close()
           
 boolean endOfStream()
           
 ContentDescriptor getContentDescriptor()
           
 long getContentLength()
           
 java.lang.Object getControl(java.lang.String controlName)
           
 java.lang.Object[] getControls()
           
 int read(byte[] buffer, int offset, int length)
           
 boolean willReadBlock()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

stream

protected java.io.InputStream stream

eosReached

protected boolean eosReached
Constructor Detail

InputSourceStream

public InputSourceStream(java.io.InputStream s,
                         ContentDescriptor type)
Method Detail

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