Package | Description |
---|---|
java.nio |
Defines buffers, which are containers for data, and provides an overview of the
other NIO packages.
|
Modifier and Type | Method and Description |
---|---|
static ByteBuffer |
ByteBuffer.allocateDirect(int capacity)
Allocates a new direct byte buffer.
|
ByteBuffer |
ByteBuffer.get(byte[] dst)
Relative bulk get method.
|
ByteBuffer |
ByteBuffer.get(byte[] dst,
int offset,
int length)
Relative bulk get method.
|
abstract ByteBuffer |
ByteBuffer.put(byte b)
Relative put method (optional
operation).
|
ByteBuffer |
ByteBuffer.put(byte[] src)
Relative bulk put method (optional operation).
|
ByteBuffer |
ByteBuffer.put(byte[] src,
int offset,
int length)
Relative bulk put method (optional
operation).
|
ByteBuffer |
ByteBuffer.put(ByteBuffer src)
Relative bulk put method (optional
operation).
|
abstract ByteBuffer |
ByteBuffer.put(int index,
byte b)
Absolute put method (optional operation).
|
abstract ByteBuffer |
ByteBuffer.putFloat(float value)
Relative put method for writing a float
value (optional operation).
|
abstract ByteBuffer |
ByteBuffer.putFloat(int index,
float value)
Absolute put method for writing a float
value (optional operation).
|
abstract ByteBuffer |
ByteBuffer.putInt(int value)
Relative put method for writing an int
value (optional operation).
|
abstract ByteBuffer |
ByteBuffer.putInt(int index,
int value)
Absolute put method for writing an int
value (optional operation).
|
abstract ByteBuffer |
ByteBuffer.putShort(int index,
short value)
Absolute put method for writing a short
value (optional operation).
|
abstract ByteBuffer |
ByteBuffer.putShort(short value)
Relative put method for writing a short
value (optional operation).
|
abstract ByteBuffer |
ByteBuffer.slice()
Creates a new byte buffer whose content is a shared
subsequence of this buffer's content.
|
static ByteBuffer |
ByteBuffer.wrap(byte[] array)
Wraps a byte array into a buffer.
|
static ByteBuffer |
ByteBuffer.wrap(byte[] array,
int offset,
int length)
Wraps a byte array into a buffer.
|
Modifier and Type | Method and Description |
---|---|
ByteBuffer |
ByteBuffer.put(ByteBuffer src)
Relative bulk put method (optional
operation).
|
Copyright © 2013, Oracle and/or its affiliates. All rights reserved.
Use is subject to License Terms. Your use of this web site or any of its contents or software indicates your agreement to be bound by these License Terms.