Spec-Zone .ru
спецификации, руководства, описания, API
JavaTM 2 Platform
Std. Ed. v1.4.2

Uses of Class
java.nio.ByteBuffer

Packages that use ByteBuffer
java.nio Defines buffers, which are containers for data, and provides an overview of the other NIO packages. 
java.nio.channels Defines channels, which represent connections to entities that are capable of performing I/O operations, such as files and sockets; defines selectors, for multiplexed, non-blocking I/O operations. 
java.nio.charset Defines charsets, decoders, and encoders, for translating between bytes and Unicode characters. 
 

Uses of ByteBuffer in java.nio
 

Subclasses of ByteBuffer in java.nio
 class MappedByteBuffer
          A direct byte buffer whose content is a memory-mapped region of a file.
 

Methods in java.nio that return ByteBuffer
static ByteBuffer ByteBuffer.allocateDirect(int capacity)
          Allocates a new direct byte buffer.
static ByteBuffer ByteBuffer.allocate(int capacity)
          Allocates a new byte buffer.
static ByteBuffer ByteBuffer.wrap(byte[] array, int offset, int length)
          Wraps a byte array into a buffer.
static ByteBuffer ByteBuffer.wrap(byte[] array)
          Wraps a byte array into a buffer.
abstract  ByteBuffer ByteBuffer.slice()
          Creates a new byte buffer whose content is a shared subsequence of this buffer's content.
abstract  ByteBuffer ByteBuffer.duplicate()
          Creates a new byte buffer that shares this buffer's content.
abstract  ByteBuffer ByteBuffer.asReadOnlyBuffer()
          Creates a new, read-only byte buffer that shares this buffer's content.
abstract  ByteBuffer ByteBuffer.put(byte b)
          Relative put method  (optional operation).
abstract  ByteBuffer ByteBuffer.put(int index, byte b)
          Absolute put method  (optional operation).
 ByteBuffer ByteBuffer.get(byte[] dst, int offset, int length)
          Relative bulk get method.
 ByteBuffer ByteBuffer.get(byte[] dst)
          Relative bulk get method.
 ByteBuffer ByteBuffer.put(ByteBuffer 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(byte[] src)
          Relative bulk put method  (optional operation).
abstract  ByteBuffer ByteBuffer.compact()
          Compacts this buffer  (optional operation).
 ByteBuffer ByteBuffer.order(ByteOrder bo)
          Modifies this buffer's byte order.
abstract  ByteBuffer ByteBuffer.putChar(char value)
          Relative put method for writing a char value  (optional operation).
abstract  ByteBuffer ByteBuffer.putChar(int index, char value)
          Absolute put method for writing a char value  (optional operation).
abstract  ByteBuffer ByteBuffer.putShort(short value)
          Relative put method for writing a short value  (optional operation).
abstract  ByteBuffer ByteBuffer.putShort(int index, short value)
          Absolute put method for writing a short 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.putLong(long value)
          Relative put method for writing a long value  (optional operation).
abstract  ByteBuffer ByteBuffer.putLong(int index, long value)
          Absolute put method for writing a long value  (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.putDouble(double value)
          Relative put method for writing a double value  (optional operation).
abstract  ByteBuffer ByteBuffer.putDouble(int index, double value)
          Absolute put method for writing a double value  (optional operation).
 

Methods in java.nio with parameters of type ByteBuffer
 ByteBuffer ByteBuffer.put(ByteBuffer src)
          Relative bulk put method  (optional operation).
 

Uses of ByteBuffer in java.nio.channels
 

Methods in java.nio.channels with parameters of type ByteBuffer
abstract  int SocketChannel.read(ByteBuffer dst)
           
abstract  long SocketChannel.read(ByteBuffer[] dsts, int offset, int length)
           
 long SocketChannel.read(ByteBuffer[] dsts)
           
abstract  int SocketChannel.write(ByteBuffer src)
           
abstract  long SocketChannel.write(ByteBuffer[] srcs, int offset, int length)
           
 long SocketChannel.write(ByteBuffer[] srcs)
           
abstract  SocketAddress DatagramChannel.receive(ByteBuffer dst)
          Receives a datagram via this channel.
abstract  int DatagramChannel.send(ByteBuffer src, SocketAddress target)
          Sends a datagram via this channel.
abstract  int DatagramChannel.read(ByteBuffer dst)
          Reads a datagram from this channel.
abstract  long DatagramChannel.read(ByteBuffer[] dsts, int offset, int length)
          Reads a datagram from this channel.
 long DatagramChannel.read(ByteBuffer[] dsts)
          Reads a datagram from this channel.
abstract  int DatagramChannel.write(ByteBuffer src)
          Writes a datagram to this channel.
abstract  long DatagramChannel.write(ByteBuffer[] srcs, int offset, int length)
          Writes a datagram to this channel.
 long DatagramChannel.write(ByteBuffer[] srcs)
          Writes a datagram to this channel.
 long ScatteringByteChannel.read(ByteBuffer[] dsts, int offset, int length)
          Reads a sequence of bytes from this channel into a subsequence of the given buffers.
 long ScatteringByteChannel.read(ByteBuffer[] dsts)
          Reads a sequence of bytes from this channel into the given buffers.
 long GatheringByteChannel.write(ByteBuffer[] srcs, int offset, int length)
          Writes a sequence of bytes to this channel from a subsequence of the given buffers.
 long GatheringByteChannel.write(ByteBuffer[] srcs)
          Writes a sequence of bytes to this channel from the given buffers.
 int ReadableByteChannel.read(ByteBuffer dst)
          Reads a sequence of bytes from this channel into the given buffer.
abstract  int FileChannel.read(ByteBuffer dst)
          Reads a sequence of bytes from this channel into the given buffer.
abstract  long FileChannel.read(ByteBuffer[] dsts, int offset, int length)
          Reads a sequence of bytes from this channel into a subsequence of the given buffers.
 long FileChannel.read(ByteBuffer[] dsts)
          Reads a sequence of bytes from this channel into the given buffers.
abstract  int FileChannel.write(ByteBuffer src)
          Writes a sequence of bytes to this channel from the given buffer.
abstract  long FileChannel.write(ByteBuffer[] srcs, int offset, int length)
          Writes a sequence of bytes to this channel from a subsequence of the given buffers.
 long FileChannel.write(ByteBuffer[] srcs)
          Writes a sequence of bytes to this channel from the given buffers.
abstract  int FileChannel.read(ByteBuffer dst, long position)
          Reads a sequence of bytes from this channel into the given buffer, starting at the given file position.
abstract  int FileChannel.write(ByteBuffer src, long position)
          Writes a sequence of bytes to this channel from the given buffer, starting at the given file position.
 int WritableByteChannel.write(ByteBuffer src)
          Writes a sequence of bytes to this channel from the given buffer.
 

Uses of ByteBuffer in java.nio.charset
 

Methods in java.nio.charset that return ByteBuffer
 ByteBuffer CharsetEncoder.encode(CharBuffer in)
          Convenience method that encodes the remaining content of a single input character buffer into a newly-allocated byte buffer.
 ByteBuffer Charset.encode(CharBuffer cb)
          Convenience method that encodes Unicode characters into bytes in this charset.
 ByteBuffer Charset.encode(String str)
          Convenience method that encodes a string into bytes in this charset.
 

Methods in java.nio.charset with parameters of type ByteBuffer
 CoderResult CharsetDecoder.decode(ByteBuffer in, CharBuffer out, boolean endOfInput)
          Decodes as many bytes as possible from the given input buffer, writing the results to the given output buffer.
protected abstract  CoderResult CharsetDecoder.decodeLoop(ByteBuffer in, CharBuffer out)
          Decodes one or more bytes into one or more characters.
 CharBuffer CharsetDecoder.decode(ByteBuffer in)
          Convenience method that decodes the remaining content of a single input byte buffer into a newly-allocated character buffer.
 CoderResult CharsetEncoder.encode(CharBuffer in, ByteBuffer out, boolean endOfInput)
          Encodes as many characters as possible from the given input buffer, writing the results to the given output buffer.
 CoderResult CharsetEncoder.flush(ByteBuffer out)
          Flushes this encoder.
protected  CoderResult CharsetEncoder.implFlush(ByteBuffer out)
          Flushes this encoder.
protected abstract  CoderResult CharsetEncoder.encodeLoop(CharBuffer in, ByteBuffer out)
          Encodes one or more characters into one or more bytes.
 CharBuffer Charset.decode(ByteBuffer bb)
          Convenience method that decodes bytes in this charset into Unicode characters.
 


JavaTM 2 Platform
Std. Ed. v1.4.2

Submit a bug or feature
For further API reference and developer documentation, see Java 2 SDK SE Developer Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.

Copyright 2003 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms. Also see the documentation redistribution policy.

free hit counter