public class ByteBufferContentProvider extends Object implements ContentProvider
ContentProvider
for ByteBuffer
s.
The position and limit of the ByteBuffer
s 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, wait
forEach, spliterator
public ByteBufferContentProvider(ByteBuffer... buffers)
public long getLength()
getLength
in interface ContentProvider
public Iterator<ByteBuffer> iterator()
iterator
in interface Iterable<ByteBuffer>
Copyright © 1995-2019 Mort Bay Consulting. All Rights Reserved.