public class ByteBufferContentProvider extends AbstractTypedContentProvider
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
.ContentProvider.Typed
Constructor and Description |
---|
ByteBufferContentProvider(ByteBuffer... buffers) |
ByteBufferContentProvider(String contentType,
ByteBuffer... buffers) |
Modifier and Type | Method and Description |
---|---|
long |
getLength() |
Iterator<ByteBuffer> |
iterator() |
getContentType
public ByteBufferContentProvider(ByteBuffer... buffers)
public ByteBufferContentProvider(String contentType, ByteBuffer... buffers)
public long getLength()
public Iterator<ByteBuffer> iterator()
Copyright © 1995-2015 Webtide. All Rights Reserved.