public class PullBufferStreamAdapter extends BufferStreamAdapter<javax.media.protocol.PullSourceStream> implements javax.media.protocol.PullBufferStream
stream
Constructor and Description |
---|
PullBufferStreamAdapter(javax.media.protocol.PullSourceStream stream,
javax.media.Format format)
Initializes a new PullBufferStreamAdapter instance which
reads its data from a specific PullSourceStream 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 PullBufferStream#read(Buffer).
|
boolean |
willReadBlock()
Implements PullBufferStream#willReadBlock().
|
endOfStream, getContentDescriptor, getContentLength, getControl, getControls, getFormat, getStream, read
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
public PullBufferStreamAdapter(javax.media.protocol.PullSourceStream stream, javax.media.Format format)
stream
- the PullSourceStream 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.PullBufferStream
buffer
- Buffer to readjava.io.IOException
- if I/O 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.PullSourceStream>
buffer
- data
- byte array to readoffset
- to start readinglength
- length to readjava.io.IOException
- if I/O related errors occurred during read operationpublic boolean willReadBlock()
willReadBlock
in interface javax.media.protocol.PullBufferStream
Jitsi, the OpenSource Java VoIP and Instant Messaging client.
Distributable under Apache license.