Uses of Class
Defines buffers, which are containers for data, and provides an overview of the other NIO packages.
Modifier and TypeClassDescription
classA byte buffer.
classA char buffer.
classA double buffer.
classA float buffer.
classAn int buffer.
classA long buffer.
classA direct byte buffer whose content is a memory-mapped region of a file.
classA short buffer.Modifier and TypeMethodDescriptionBuffer.
()Clears this buffer.Buffer.
()Creates a new buffer that shares this buffer's content.Buffer.
()Flips this buffer.Buffer.
(int newLimit)Sets this buffer's limit.Buffer.
()Sets this buffer's mark at its position.Buffer.
(int newPosition)Sets this buffer's position.Buffer.
()Resets this buffer's position to the previously-marked position.Buffer.
()Rewinds this buffer.Buffer.
()Creates a new buffer whose content is a shared subsequence of this buffer's content.Buffer.
(int index, int length)Creates a new buffer whose content is a shared subsequence of this buffer's content.