Java org.springframework.core.io.buffer DataBuffer fields, constructors, methods, implement or subclass

Example usage for Java org.springframework.core.io.buffer DataBuffer fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for org.springframework.core.io.buffer DataBuffer.

The text is from its open source code.

Method

bytegetByte(int index)
Read a single byte at the given index from this data buffer.
DataBufferread(byte[] destination)
Read this buffer's data into the specified destination, starting at the current reading position of this buffer.
intreadableByteCount()
Return the number of bytes that can be read from this data buffer.
intreadPosition()
Return the position from which this buffer will read.
DataBufferretainedSlice(int index, int length)
Create a new DataBuffer whose contents is a shared, retained subsequence of this data buffer's content.
DataBufferwrite(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.
intwritePosition()
Return the position to which this buffer will write.