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