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) |
public ByteBufferContentProvider(ByteBuffer... buffers)
public long getLength()
getLength in interface ContentProviderpublic Iterator<ByteBuffer> iterator()
iterator in interface Iterable<ByteBuffer>Copyright © 1995-2014 Mort Bay Consulting. All Rights Reserved.