public interface InputStreamBuffer
It works with the concept of a zero-base position. Each position represents one byte in the stream. Although this buffer tracks the position of each byte, it doesn't have a position itself. That means that pulling data from this buffer does not make any current position to be moved.
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Releases all the resources held by this buffer
|
ByteBuffer |
get(long position,
int length)
Returns a ByteBuffer with up to
length amount of bytes starting from the given
position. |
ByteBuffer get(long position, int length)
length amount of bytes starting from the given
position. The returned buffer may contain less information than requested.
If no information is available at all, then it returns nullposition - the stream position from which the data should be readlength - how many bytes to readByteBuffer with up to length bytes of information or null if no information
available at allvoid close()
Copyright © 2003–2017 MuleSoft, Inc.. All rights reserved.