Package | Description |
---|---|
java.nio |
Defines buffers, which are containers for data, and provides an
overview of the other NIO packages.
|
Modifier and Type | Class | Description |
---|---|---|
class |
ByteBuffer |
A byte buffer.
|
class |
CharBuffer |
A char buffer.
|
class |
DoubleBuffer |
A double buffer.
|
class |
FloatBuffer |
A float buffer.
|
class |
IntBuffer |
An int buffer.
|
class |
LongBuffer |
A long buffer.
|
class |
MappedByteBuffer |
A direct byte buffer whose content is a memory-mapped region of a file.
|
class |
ShortBuffer |
A short buffer.
|
Modifier and Type | Method | Description |
---|---|---|
Buffer |
Buffer.clear() |
Clears this buffer.
|
abstract Buffer |
Buffer.duplicate() |
Creates a new buffer that shares this buffer's content.
|
Buffer |
Buffer.flip() |
Flips this buffer.
|
Buffer |
Buffer.limit(int newLimit) |
Sets this buffer's limit.
|
Buffer |
Buffer.mark() |
Sets this buffer's mark at its position.
|
Buffer |
Buffer.position(int newPosition) |
Sets this buffer's position.
|
Buffer |
Buffer.reset() |
Resets this buffer's position to the previously-marked position.
|
Buffer |
Buffer.rewind() |
Rewinds this buffer.
|
abstract Buffer |
Buffer.slice() |
Creates a new buffer whose content is a shared subsequence of
this buffer's content.
|
Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 1993, 2017, Oracle and/or its affiliates. 500 Oracle Parkway
Redwood Shores, CA 94065 USA. All rights reserved.
DRAFT 9-internal+0-adhoc.mlchung.jdk9-jdeps