java > java.nio > java.nio.bytebuffer >

Class: java.nio.ByteBuffer
    java.lang.Object
       java.nio.Buffer
               java.nio.ByteBuffer


public abstract class ByteBuffer extends Buffer implements Comparable


FIELDS:

CONSTRUCTORS:

METHODS:
public static ByteBuffer allocate(int capacity)
Throws: IllegalArgumentException

public static ByteBuffer allocateDirect(int capacity)
Throws: IllegalArgumentException

public final byte[] array()
Throws: ReadOnlyBufferException
Throws: UnsupportedOperationException
Overrides: Buffer

public final int arrayOffset()
Throws: ReadOnlyBufferException
Throws: UnsupportedOperationException
Overrides: Buffer

public abstract CharBuffer asCharBuffer()

public abstract DoubleBuffer asDoubleBuffer()

public abstract FloatBuffer asFloatBuffer()

public abstract IntBuffer asIntBuffer()

public abstract LongBuffer asLongBuffer()

public abstract ByteBuffer asReadOnlyBuffer()

public abstract ShortBuffer asShortBuffer()

public abstract ByteBuffer compact()
Throws: ReadOnlyBufferException

public int compareTo(ByteBuffer that)

public abstract ByteBuffer duplicate()

public boolean equals(Object ob)
Overrides: Object

public abstract byte get()
Throws: BufferUnderflowException

public ByteBuffer get(byte[] dst)
Throws: BufferUnderflowException

public ByteBuffer get(byte[] dst, int offset, int length)
Throws: BufferUnderflowException
Throws: IndexOutOfBoundsException

public abstract byte get(int index)
Throws: IndexOutOfBoundsException

public abstract char getChar()
Throws: BufferUnderflowException

public abstract char getChar(int index)
Throws: IndexOutOfBoundsException

public abstract double getDouble()
Throws: BufferUnderflowException

public abstract double getDouble(int index)
Throws: IndexOutOfBoundsException

public abstract float getFloat()
Throws: BufferUnderflowException

public abstract float getFloat(int index)
Throws: IndexOutOfBoundsException

public abstract int getInt()
Throws: BufferUnderflowException

public abstract int getInt(int index)
Throws: IndexOutOfBoundsException

public abstract long getLong()
Throws: BufferUnderflowException

public abstract long getLong(int index)
Throws: IndexOutOfBoundsException

public abstract short getShort()
Throws: BufferUnderflowException

public abstract short getShort(int index)
Throws: IndexOutOfBoundsException

public final boolean hasArray()
Overrides: Buffer

public int hashCode()
Overrides: Object

public abstract boolean isDirect()
Overrides: Buffer

public final ByteOrder order()

public final ByteBuffer order(ByteOrder bo)

public abstract ByteBuffer put(byte b)
Throws: BufferOverflowException
Throws: ReadOnlyBufferException

public final ByteBuffer put(byte[] src)
Throws: BufferOverflowException
Throws: ReadOnlyBufferException

public ByteBuffer put(byte[] src, int offset, int length)
Throws: BufferOverflowException
Throws: IndexOutOfBoundsException
Throws: ReadOnlyBufferException

public abstract ByteBuffer put(int index, byte b)
Throws: IndexOutOfBoundsException
Throws: ReadOnlyBufferException

public ByteBuffer put(ByteBuffer src)
Throws: BufferOverflowException
Throws: IllegalArgumentException
Throws: ReadOnlyBufferException

public abstract ByteBuffer putChar(char value)
Throws: BufferOverflowException
Throws: ReadOnlyBufferException

public abstract ByteBuffer putChar(int index, char value)
Throws: IndexOutOfBoundsException
Throws: ReadOnlyBufferException

public abstract ByteBuffer putDouble(double value)
Throws: BufferOverflowException
Throws: ReadOnlyBufferException

public abstract ByteBuffer putDouble(int index, double value)
Throws: IndexOutOfBoundsException
Throws: ReadOnlyBufferException

public abstract ByteBuffer putFloat(float value)
Throws: BufferOverflowException
Throws: ReadOnlyBufferException

public abstract ByteBuffer putFloat(int index, float value)
Throws: IndexOutOfBoundsException
Throws: ReadOnlyBufferException

public abstract ByteBuffer putInt(int value)
Throws: BufferOverflowException
Throws: ReadOnlyBufferException

public abstract ByteBuffer putInt(int index, int value)
Throws: IndexOutOfBoundsException
Throws: ReadOnlyBufferException

public abstract ByteBuffer putLong(int index, long value)
Throws: IndexOutOfBoundsException
Throws: ReadOnlyBufferException

public abstract ByteBuffer putLong(long value)
Throws: BufferOverflowException
Throws: ReadOnlyBufferException

public abstract ByteBuffer putShort(int index, short value)
Throws: IndexOutOfBoundsException
Throws: ReadOnlyBufferException

public abstract ByteBuffer putShort(short value)
Throws: BufferOverflowException
Throws: ReadOnlyBufferException

public abstract ByteBuffer slice()

public String toString()
Overrides: Object

public static ByteBuffer wrap(byte[] array)

public static ByteBuffer wrap(byte[] array, int offset, int length)
Throws: IndexOutOfBoundsException


INHERITED METHODS:
capacity(), position(), position(int), limit(), limit(int), mark(), reset(), clear(), flip(), rewind(), remaining(), hasRemaining(), isReadOnly(), hasArray(), array(), arrayOffset(), isDirect(), getClass(), hashCode(), equals(java.lang.Object), clone(), toString(), notify(), notifyAll(), wait(long), wait(long, int), wait(), finalize(),

SUBCLASSES:
MappedByteBuffer,





Yazilar kaynak gosterilmeden kopyalanamaz © www.kodcu.net