public class PushBufferStreamAdapter extends BufferStreamAdapter<javax.media.protocol.PushSourceStream> implements javax.media.protocol.PushBufferStream
stream
Constructor and Description |
---|
PushBufferStreamAdapter(javax.media.protocol.PushSourceStream stream,
javax.media.Format format)
Initializes a new PushBufferStreamAdapter instance which
reads its data from a specific PushSourceStream with a
specific Format
|
Modifier and Type | Method and Description |
---|---|
protected int |
doRead(javax.media.Buffer buffer,
byte[] data,
int offset,
int length)
Implements BufferStreamAdapter#doRead(Buffer, byte[], int, int).
|
void |
read(javax.media.Buffer buffer)
Implements PushBufferStream#read(Buffer).
|
void |
setTransferHandler(javax.media.protocol.BufferTransferHandler transferHandler)
Implements PushBufferStream#setTransferHandler(BufferTransferHandler).
|
endOfStream, getContentDescriptor, getContentLength, getControl, getControls, getFormat, getStream, read
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
public PushBufferStreamAdapter(javax.media.protocol.PushSourceStream stream, javax.media.Format format)
stream
- the PushSourceStream the new instance is to
read its data fromformat
- the Format of the specified input
stream and of the new instancepublic void read(javax.media.Buffer buffer) throws java.io.IOException
read
in interface javax.media.protocol.PushBufferStream
buffer
- the Buffer to readjava.io.IOException
- if I/O related errors occurred during read operationprotected int doRead(javax.media.Buffer buffer, byte[] data, int offset, int length) throws java.io.IOException
doRead
in class BufferStreamAdapter<javax.media.protocol.PushSourceStream>
buffer
- data
- byte array to readoffset
- offset to start readinglength
- length to readjava.io.IOException
- if I/O related errors occurred during read operationpublic void setTransferHandler(javax.media.protocol.BufferTransferHandler transferHandler)
setTransferHandler
in interface javax.media.protocol.PushBufferStream
transferHandler
- a BufferTransferHandler to set
Jitsi, the OpenSource Java VoIP and Instant Messaging client.
Distributable under Apache license.