public class ByteBufferContentProvider extends AbstractTypedContentProvider
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.
ContentProvider.Typed| Constructor and Description |
|---|
ByteBufferContentProvider(java.nio.ByteBuffer... buffers) |
ByteBufferContentProvider(java.lang.String contentType,
java.nio.ByteBuffer... buffers) |
| Modifier and Type | Method and Description |
|---|---|
long |
getLength() |
java.util.Iterator<java.nio.ByteBuffer> |
iterator() |
getContentTypeCopyright © 1995–2017 Webtide. All rights reserved.