java.lang.Iterable<java.nio.ByteBuffer>
, ContentProvider
, ContentProvider.Typed
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 | Description |
---|---|
ByteBufferContentProvider(java.lang.String contentType,
java.nio.ByteBuffer... buffers) |
|
ByteBufferContentProvider(java.nio.ByteBuffer... buffers) |
Modifier and Type | Method | Description |
---|---|---|
long |
getLength() |
|
java.util.Iterator<java.nio.ByteBuffer> |
iterator() |
getContentType
Copyright © 1995–2018 Webtide. All rights reserved.