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, readclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitpublic 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 IOException
read in interface javax.media.protocol.PushBufferStreambuffer - the Buffer to readIOException - if I/O related 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.PushSourceStream>buffer - data - byte array to readoffset - offset to start readinglength - length to readIOException - if I/O related errors occurred during read operationpublic void setTransferHandler(javax.media.protocol.BufferTransferHandler transferHandler)
setTransferHandler in interface javax.media.protocol.PushBufferStreamtransferHandler - a BufferTransferHandler to setCopyright © 2021 jitsi.org. All rights reserved.