@Deprecated public abstract class ByteReadingListener extends ReadingListener
InputStream.| Constructor and Description |
|---|
ByteReadingListener(Representation source)
Deprecated.
Default constructor.
|
ByteReadingListener(Representation source,
int bufferSize)
Deprecated.
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
onContent(ByteBuffer byteBuffer)
Deprecated.
Callback invoked when new content is available.
|
protected abstract void |
onContent(InputStream inputStream)
Deprecated.
Callback invoked when new content is available.
|
onEnd, onError, onSelectedpublic ByteReadingListener(Representation source) throws IOException
IoUtils.BUFFER_SIZE
length.source - The source representation.IOExceptionpublic ByteReadingListener(Representation source, int bufferSize) throws IOException
source - The source byte channel.bufferSize - The byte buffer to use.IOExceptionprotected final void onContent(ByteBuffer byteBuffer)
onContent in class ReadingListenerbyteBuffer - The byte buffer filled with the new content (correctly
flip).protected abstract void onContent(InputStream inputStream)
inputStream - The input stream allowing to retrieve the new content.Copyright © 2005–2025. All rights reserved.