Uses of Class
java.nio.Buffer
| Package | Description |
|---|---|
| java.nio |
Defines buffers, which are containers for data, and provides an
overview of the other NIO packages.
|
-
Uses of Buffer in java.nio
Subclasses of Buffer in java.nio Modifier and Type Class Description classByteBufferA byte buffer.classCharBufferA char buffer.classDoubleBufferA double buffer.classFloatBufferA float buffer.classIntBufferAn int buffer.classLongBufferA long buffer.classMappedByteBufferA direct byte buffer whose content is a memory-mapped region of a file.classShortBufferA short buffer.Methods in java.nio that return Buffer Modifier and Type Method Description BufferBuffer. clear()Clears this buffer.abstract BufferBuffer. duplicate()Creates a new buffer that shares this buffer's content.BufferBuffer. flip()Flips this buffer.BufferBuffer. limit(int newLimit)Sets this buffer's limit.BufferBuffer. mark()Sets this buffer's mark at its position.BufferBuffer. position(int newPosition)Sets this buffer's position.BufferBuffer. reset()Resets this buffer's position to the previously-marked position.BufferBuffer. rewind()Rewinds this buffer.abstract BufferBuffer. slice()Creates a new buffer whose content is a shared subsequence of this buffer's content.abstract BufferBuffer. slice(int index, int length)Creates a new buffer whose content is a shared subsequence of this buffer's content.