PushSourceStreampublic interface PushSourceStream implements SourceStreamAbstracts a read interface that pushes data. |
Methods Summary |
---|
public int | getMinimumTransferSize()Determine the size of the buffer needed for the data transfer.
This method is provided so that a transfer handler
can determine how much data, at a minimum, will be
available to transfer from the source.
Overflow and data loss is likely to occur if this much
data isn't read at transfer time.
| public int | read(byte[] buffer, int offset, int length)Read from the stream without blocking.
Returns -1 when the end of the media
is reached.
| public void | setTransferHandler(javax.media.protocol.SourceTransferHandler transferHandler)Register an object to service data transfers to this stream.
If a handler is already registered when
setTransferHandler is called,
the handler is replaced;
there can only be one handler at a time.
|
|