javax.media.protocol
Interface PushSourceStream

All Superinterfaces:
Controls, SourceStream
All Known Implementing Classes:
InputStreamPushSourceStream, SimpleSocketInputStream, SocketInputStream

public interface PushSourceStream
extends SourceStream

Standard JMF class -- see this class in the JMF Javadoc. Complete.

Author:
Ken Larson

Field Summary
 
Fields inherited from interface javax.media.protocol.SourceStream
LENGTH_UNKNOWN
 
Method Summary
 int getMinimumTransferSize()
           
 int read(byte[] buffer, int offset, int length)
          According to API: Read from the stream without blocking.
 void setTransferHandler(SourceTransferHandler transferHandler)
           
 
Methods inherited from interface javax.media.protocol.SourceStream
endOfStream, getContentDescriptor, getContentLength
 
Methods inherited from interface javax.media.Controls
getControl, getControls
 

Method Detail

read

int read(byte[] buffer,
         int offset,
         int length)
         throws java.io.IOException
According to API: Read from the stream without blocking. Returns -1 when the end of the media is reached. This implies that it can return zero if there is no data available.

Throws:
java.io.IOException

getMinimumTransferSize

int getMinimumTransferSize()

setTransferHandler

void setTransferHandler(SourceTransferHandler transferHandler)