Name

Package java.nio

Synopsis

This package defines buffer classes that are fundamental to the java.nio API. See Buffer for an overview of buffers, and see ByteBuffer (the most important of the buffer classes) for full documentation of byte buffers. The other type-specific buffer classes are close analogs to ByteBuffer and are documented in terms of that class. See the java.nio.channels package for classes that perform I/O operations on buffers.

Classes

public abstract class Buffer;
   public abstract class ByteBuffer extends Buffer 
   implements Comparable<ByteBuffer>;
      public abstract class MappedByteBuffer extends ByteBuffer;
   public abstract class CharBuffer extends Buffer 
      implements Comparable<CharBuffer>, Appendable, CharSequence, 
      Readable;
   public abstract class DoubleBuffer extends Buffer 
   implements Comparable<DoubleBuffer>;
   public abstract class FloatBuffer extends Buffer 
   implements Comparable<FloatBuffer>;
   public abstract class IntBuffer extends Buffer 
   implements Comparable<IntBuffer>;
   public abstract class LongBuffer extends Buffer 
   implements Comparable<LongBuffer>;
   public abstract class ShortBuffer extends Buffer 
   implements Comparable<ShortBuffer>;
public final class ByteOrder;

Exceptions

public class BufferOverflowException extends RuntimeException;
public class BufferUnderflowException extends RuntimeException;
public class InvalidMarkException extends IllegalStateException;
public class ReadOnlyBufferException extends UnsupportedOperationException;

Get Java in a Nutshell, 5th Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.