Module java.base
Package java.nio

# Class ByteBuffer

=
public abstract sealed class ByteBuffer
extends java.nio.Buffer
implements java.lang.Comparable<java.nio.ByteBuffer>
permits java.nio.HeapByteBuffer, java.nio.MappedByteBuffer

## Methods

- =
  public final java.nio.ByteBuffer alignedSlice(int arg0)
- =
  public final int alignmentOffset(int arg0, int arg1)
- =
  public static java.nio.ByteBuffer allocate(int arg0)
- =
  public static java.nio.ByteBuffer allocateDirect(int arg0)
- =
  public final byte[] array()
- =
  public final int arrayOffset()
- =
  public abstract java.nio.CharBuffer asCharBuffer()
- =
  public abstract java.nio.DoubleBuffer asDoubleBuffer()
- =
  public abstract java.nio.FloatBuffer asFloatBuffer()
- =
  public abstract java.nio.IntBuffer asIntBuffer()
- =
  public abstract java.nio.LongBuffer asLongBuffer()
- =
  public abstract java.nio.ByteBuffer asReadOnlyBuffer()
- =
  public abstract java.nio.ShortBuffer asShortBuffer()
- =
  public java.nio.ByteBuffer clear()
- =
  public abstract java.nio.ByteBuffer compact()
- =
  public int compareTo(java.nio.ByteBuffer arg0)
- =
  public abstract java.nio.ByteBuffer duplicate()
- =
  public boolean equals(java.lang.Object arg0)
- =
  public java.nio.ByteBuffer flip()
- =
  public abstract byte get()
- =
  public abstract byte get(int arg0)
- =
  public java.nio.ByteBuffer get(int arg0, byte[] arg1)
- =
  public java.nio.ByteBuffer get(int arg0, byte[] arg1, int arg2, int arg3)
- =
  public java.nio.ByteBuffer get(byte[] arg0)
- =
  public java.nio.ByteBuffer get(byte[] arg0, int arg1, int arg2)
- =
  public abstract char getChar()
- =
  public abstract char getChar(int arg0)
- =
  public abstract double getDouble()
- =
  public abstract double getDouble(int arg0)
- =
  public abstract float getFloat()
- =
  public abstract float getFloat(int arg0)
- =
  public abstract int getInt()
- =
  public abstract int getInt(int arg0)
- =
  public abstract long getLong()
- =
  public abstract long getLong(int arg0)
- =
  public abstract short getShort()
- =
  public abstract short getShort(int arg0)
- =
  public final boolean hasArray()
- =
  public int hashCode()
- =
  public abstract boolean isDirect()
- =
  public java.nio.ByteBuffer limit(int arg0)
- =
  public java.nio.ByteBuffer mark()
- =
  public int mismatch(java.nio.ByteBuffer arg0)
- =
  public final java.nio.ByteOrder order()
- =
  public final java.nio.ByteBuffer order(java.nio.ByteOrder arg0)
- =
  public java.nio.ByteBuffer position(int arg0)
- =
  public abstract java.nio.ByteBuffer put(byte arg0)
- =
  public abstract java.nio.ByteBuffer put(int arg0, byte arg1)
- =
  public java.nio.ByteBuffer put(int arg0, byte[] arg1)
- =
  public java.nio.ByteBuffer put(int arg0, byte[] arg1, int arg2, int arg3)
- =
  public java.nio.ByteBuffer put(int arg0, java.nio.ByteBuffer arg1, int arg2, int arg3)
- =
  public final java.nio.ByteBuffer put(byte[] arg0)
- =
  public java.nio.ByteBuffer put(byte[] arg0, int arg1, int arg2)
- =
  public java.nio.ByteBuffer put(java.nio.ByteBuffer arg0)
- =
  public abstract java.nio.ByteBuffer putChar(int arg0, char arg1)
- =
  public abstract java.nio.ByteBuffer putChar(char arg0)
- =
  public abstract java.nio.ByteBuffer putDouble(int arg0, double arg1)
- =
  public abstract java.nio.ByteBuffer putDouble(double arg0)
- =
  public abstract java.nio.ByteBuffer putFloat(int arg0, float arg1)
- =
  public abstract java.nio.ByteBuffer putFloat(float arg0)
- =
  public abstract java.nio.ByteBuffer putInt(int arg0)
- =
  public abstract java.nio.ByteBuffer putInt(int arg0, int arg1)
- =
  public abstract java.nio.ByteBuffer putLong(int arg0, long arg1)
- =
  public abstract java.nio.ByteBuffer putLong(long arg0)
- =
  public abstract java.nio.ByteBuffer putShort(short arg0)
- =
  public abstract java.nio.ByteBuffer putShort(int arg0, short arg1)
- =
  public java.nio.ByteBuffer reset()
- =
  public java.nio.ByteBuffer rewind()
- =
  public abstract java.nio.ByteBuffer slice()
- =
  public abstract java.nio.ByteBuffer slice(int arg0, int arg1)
- =
  public java.lang.String toString()
- =
  public static java.nio.ByteBuffer wrap(byte[] arg0)
- =
  public static java.nio.ByteBuffer wrap(byte[] arg0, int arg1, int arg2)

## Summary

No differences.