public class ByteBufferContentProvider extends Object implements ContentProvider
ContentProvider for ByteBuffers.
The position and limit of the ByteBuffers passed to the constructor are not modified,
and each invocation of the iterator() method returns a slice
of the original ByteBuffer.| Constructor and Description |
|---|
ByteBufferContentProvider(ByteBuffer... buffers) |
| Modifier and Type | Method and Description |
|---|---|
long |
getLength() |
Iterator<ByteBuffer> |
iterator() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitforEach, spliteratorpublic ByteBufferContentProvider(ByteBuffer... buffers)
public long getLength()
getLength in interface ContentProviderpublic Iterator<ByteBuffer> iterator()
iterator in interface Iterable<ByteBuffer>Copyright © 1995-2023 Mort Bay Consulting. All Rights Reserved.