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, readclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitpublic 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 IOException
read in interface javax.media.protocol.PullBufferStreambuffer - Buffer to readIOException - if I/O errors occurred during read operationprotected int doRead(javax.media.Buffer buffer,
byte[] data,
int offset,
int length)
throws IOException
doRead in class BufferStreamAdapter<javax.media.protocol.PullSourceStream>buffer - data - byte array to readoffset - to start readinglength - length to readIOException - if I/O related errors occurred during read operationpublic boolean willReadBlock()
willReadBlock in interface javax.media.protocol.PullBufferStreamCopyright © 2022 jitsi.org. All rights reserved.