|
JSR-927 (Maintenance Release) | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
Abstracts a read interface that pushes data.
PushDataSource| Field Summary |
| Fields inherited from interface javax.media.protocol.SourceStream |
LENGTH_UNKNOWN |
| Method Summary | |
int |
getMinimumTransferSize()
Determine the size of the buffer needed for the data transfer. |
int |
read(byte[] buffer,
int offset,
int length)
Read from the stream without blocking. |
void |
setTransferHandler(SourceTransferHandler transferHandler)
Register an object to service data transfers to this stream. |
| Methods inherited from interface javax.media.protocol.SourceStream |
endOfStream, getContentDescriptor, getContentLength |
| Methods inherited from interface javax.media.protocol.Controls |
getControl, getControls |
| Method Detail |
public int read(byte[] buffer,
int offset,
int length)
buffer - The buffer to read bytes into.offset - The offset into the buffer at which to begin writing data.length - The number of bytes to read.
public int getMinimumTransferSize()
public void setTransferHandler(SourceTransferHandler transferHandler)
If a handler is already registered when
setTransferHandler is called,
the handler is replaced;
there can only be one handler at a time.
transferHandler - The handler to transfer data to.
|
JSR-927 (Maintenance Release) | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||