Example usage for Java org.springframework.core.io.buffer DataBuffer fields, constructors, methods, implement or subclass
The text is from its open source code.
byte | getByte(int index) Read a single byte at the given index from this data buffer. |
DataBuffer | read(byte[] destination) Read this buffer's data into the specified destination, starting at the current reading position of this buffer. |
int | readableByteCount() Return the number of bytes that can be read from this data buffer. |
int | readPosition() Return the position from which this buffer will read. |
DataBuffer | retainedSlice(int index, int length) Create a new DataBuffer whose contents is a shared, retained subsequence of this data buffer's content. |
DataBuffer | write(byte[] source, int offset, int length) Write at most length bytes of the given source into this buffer, starting at the current writing position of this buffer. |
int | writePosition() Return the position to which this buffer will write. |