Package | Description |
---|---|
java.nio |
Defines buffers, which are containers for data, and provides an
overview of the other NIO packages.
|
Modifier and Type | Method | Description |
---|---|---|
static ShortBuffer |
ShortBuffer.allocate(int capacity) |
Allocates a new short buffer.
|
abstract ShortBuffer |
ShortBuffer.asReadOnlyBuffer() |
Creates a new, read-only short buffer that shares this buffer's
content.
|
abstract ShortBuffer |
ByteBuffer.asShortBuffer() |
Creates a view of this byte buffer as a short buffer.
|
ShortBuffer |
ShortBuffer.clear() |
Clears this buffer.
|
abstract ShortBuffer |
ShortBuffer.compact() |
Compacts this buffer (optional operation).
|
abstract ShortBuffer |
ShortBuffer.duplicate() |
Creates a new short buffer that shares this buffer's content.
|
ShortBuffer |
ShortBuffer.flip() |
Flips this buffer.
|
ShortBuffer |
ShortBuffer.get(short[] dst) |
Relative bulk get method.
|
ShortBuffer |
ShortBuffer.get(short[] dst,
int offset,
int length) |
Relative bulk get method.
|
ShortBuffer |
ShortBuffer.limit(int newLimit) |
Sets this buffer's limit.
|
ShortBuffer |
ShortBuffer.mark() |
Sets this buffer's mark at its position.
|
ShortBuffer |
ShortBuffer.position(int newPosition) |
Sets this buffer's position.
|
abstract ShortBuffer |
ShortBuffer.put(int index,
short s) |
Absolute put method (optional operation).
|
abstract ShortBuffer |
ShortBuffer.put(short s) |
Relative put method (optional operation).
|
ShortBuffer |
ShortBuffer.put(short[] src) |
Relative bulk put method (optional operation).
|
ShortBuffer |
ShortBuffer.put(short[] src,
int offset,
int length) |
Relative bulk put method (optional operation).
|
ShortBuffer |
ShortBuffer.put(ShortBuffer src) |
Relative bulk put method (optional operation).
|
ShortBuffer |
ShortBuffer.reset() |
Resets this buffer's position to the previously-marked position.
|
ShortBuffer |
ShortBuffer.rewind() |
Rewinds this buffer.
|
abstract ShortBuffer |
ShortBuffer.slice() |
Creates a new short buffer whose content is a shared subsequence of
this buffer's content.
|
static ShortBuffer |
ShortBuffer.wrap(short[] array) |
Wraps a short array into a buffer.
|
static ShortBuffer |
ShortBuffer.wrap(short[] array,
int offset,
int length) |
Wraps a short array into a buffer.
|
Modifier and Type | Method | Description |
---|---|---|
int |
ShortBuffer.compareTo(ShortBuffer that) |
Compares this buffer to another.
|
ShortBuffer |
ShortBuffer.put(ShortBuffer src) |
Relative bulk put method (optional operation).
|
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