Skip to main content

ReadOnlyBufferException

java.nio.ReadOnlyBufferException

ReadOnlyBufferException is described in the javadoc comments as:

Unchecked exception thrown when a content-mutation method such as put or compact is invoked upon a read-only buffer.
version: 1.14, 01/05/02 since: 1.4

Where is this exception thrown?

Following, is a list of exception messages cross-referenced to the source code responsible for throwing them. Click on the method link to view the code and see how the exception is thrown.

How is this exception thrown?

The following sub-sections identify where this exception is thrown, and how (or why) the code is throwing the exception.

Any source code quoted in this section is subject to the Java Research License unless stated otherwise.

java.nio.ByteBuffer.array()

/**
     * Returns the byte array that backs this
     * buffer  <i>(optional operation)</i>.
     *  Modifications to this buffer's content will cause the returned
     * array's content to be modified, and vice versa.
     *  Invoke the {@link #hasArray hasArray} method before invoking this
     * method in order to ensure that this buffer has an accessible backing
     * array.  
     * @return  The array that backs this buffer
     * @throws  ReadOnlyBufferException
     *          If this buffer is backed by an array but is read-only
     * @throws  UnsupportedOperationException
     *          If this buffer is not backed by an accessible array
     */
public final byte[] array() {
    if (hb == null) throw new UnsupportedOperationException();
    if (isReadOnly) throw new ReadOnlyBufferException();
    return hb;
}

Source: "Java SE Downloads: Java SE 6 JDK Source Code", at: http://www.oracle.com/technetwork/java/javase/downloads/index.html

java.nio.ByteBuffer.arrayOffset()

/**
     * Returns the offset within this buffer's backing array of the first
     * element of the buffer  <i>(optional operation)</i>.
     *  If this buffer is backed by an array then buffer position <i>p</i>
     * corresponds to array index <i>p</i> + <tt>arrayOffset()</tt>.
     *  Invoke the {@link #hasArray hasArray} method before invoking this
     * method in order to ensure that this buffer has an accessible backing
     * array.  
     * @return  The offset within this buffer's array
     *          of the first element of the buffer
     * @throws  ReadOnlyBufferException
     *          If this buffer is backed by an array but is read-only
     * @throws  UnsupportedOperationException
     *          If this buffer is not backed by an accessible array
     */
public final int arrayOffset() {
    if (hb == null) throw new UnsupportedOperationException();
    if (isReadOnly) throw new ReadOnlyBufferException();
    return offset;
}

Source: "Java SE Downloads: Java SE 6 JDK Source Code", at: http://www.oracle.com/technetwork/java/javase/downloads/index.html

java.nio.ByteBufferAsCharBufferRB.compact()

public CharBuffer compact() {
    throw new ReadOnlyBufferException();
}

Source: "Java SE Downloads: Java SE 6 JDK Source Code", at: http://www.oracle.com/technetwork/java/javase/downloads/index.html

java.nio.ByteBufferAsCharBufferRB.put(char)

public CharBuffer put(char x) {
    throw new ReadOnlyBufferException();
}

Source: "Java SE Downloads: Java SE 6 JDK Source Code", at: http://www.oracle.com/technetwork/java/javase/downloads/index.html

java.nio.ByteBufferAsCharBufferRB.put(int, char)

public CharBuffer put(int i, char x) {
    throw new ReadOnlyBufferException();
}

Source: "Java SE Downloads: Java SE 6 JDK Source Code", at: http://www.oracle.com/technetwork/java/javase/downloads/index.html

java.nio.ByteBufferAsCharBufferRL.compact()

public CharBuffer compact() {
    throw new ReadOnlyBufferException();
}

Source: "Java SE Downloads: Java SE 6 JDK Source Code", at: http://www.oracle.com/technetwork/java/javase/downloads/index.html

java.nio.ByteBufferAsCharBufferRL.put(char)

public CharBuffer put(char x) {
    throw new ReadOnlyBufferException();
}

Source: "Java SE Downloads: Java SE 6 JDK Source Code", at: http://www.oracle.com/technetwork/java/javase/downloads/index.html

java.nio.ByteBufferAsCharBufferRL.put(int, char)

public CharBuffer put(int i, char x) {
    throw new ReadOnlyBufferException();
}

Source: "Java SE Downloads: Java SE 6 JDK Source Code", at: http://www.oracle.com/technetwork/java/javase/downloads/index.html

java.nio.ByteBufferAsDoubleBufferRB.compact()

public DoubleBuffer compact() {
    throw new ReadOnlyBufferException();
}

Source: "Java SE Downloads: Java SE 6 JDK Source Code", at: http://www.oracle.com/technetwork/java/javase/downloads/index.html

java.nio.ByteBufferAsDoubleBufferRB.put(double)

public DoubleBuffer put(double x) {
    throw new ReadOnlyBufferException();
}

Source: "Java SE Downloads: Java SE 6 JDK Source Code", at: http://www.oracle.com/technetwork/java/javase/downloads/index.html

java.nio.ByteBufferAsDoubleBufferRB.put(int, double)

public DoubleBuffer put(int i, double x) {
    throw new ReadOnlyBufferException();
}

Source: "Java SE Downloads: Java SE 6 JDK Source Code", at: http://www.oracle.com/technetwork/java/javase/downloads/index.html

java.nio.ByteBufferAsDoubleBufferRL.compact()

public DoubleBuffer compact() {
    throw new ReadOnlyBufferException();
}

Source: "Java SE Downloads: Java SE 6 JDK Source Code", at: http://www.oracle.com/technetwork/java/javase/downloads/index.html

java.nio.ByteBufferAsDoubleBufferRL.put(double)

public DoubleBuffer put(double x) {
    throw new ReadOnlyBufferException();
}

Source: "Java SE Downloads: Java SE 6 JDK Source Code", at: http://www.oracle.com/technetwork/java/javase/downloads/index.html

java.nio.ByteBufferAsDoubleBufferRL.put(int, double)

public DoubleBuffer put(int i, double x) {
    throw new ReadOnlyBufferException();
}

Source: "Java SE Downloads: Java SE 6 JDK Source Code", at: http://www.oracle.com/technetwork/java/javase/downloads/index.html

java.nio.ByteBufferAsFloatBufferRB.compact()

public FloatBuffer compact() {
    throw new ReadOnlyBufferException();
}

Source: "Java SE Downloads: Java SE 6 JDK Source Code", at: http://www.oracle.com/technetwork/java/javase/downloads/index.html

java.nio.ByteBufferAsFloatBufferRB.put(float)

public FloatBuffer put(float x) {
    throw new ReadOnlyBufferException();
}

Source: "Java SE Downloads: Java SE 6 JDK Source Code", at: http://www.oracle.com/technetwork/java/javase/downloads/index.html

java.nio.ByteBufferAsFloatBufferRB.put(int, float)

public FloatBuffer put(int i, float x) {
    throw new ReadOnlyBufferException();
}

Source: "Java SE Downloads: Java SE 6 JDK Source Code", at: http://www.oracle.com/technetwork/java/javase/downloads/index.html

java.nio.ByteBufferAsFloatBufferRL.compact()

public FloatBuffer compact() {
    throw new ReadOnlyBufferException();
}

Source: "Java SE Downloads: Java SE 6 JDK Source Code", at: http://www.oracle.com/technetwork/java/javase/downloads/index.html

java.nio.ByteBufferAsFloatBufferRL.put(float)

public FloatBuffer put(float x) {
    throw new ReadOnlyBufferException();
}

Source: "Java SE Downloads: Java SE 6 JDK Source Code", at: http://www.oracle.com/technetwork/java/javase/downloads/index.html

java.nio.ByteBufferAsFloatBufferRL.put(int, float)

public FloatBuffer put(int i, float x) {
    throw new ReadOnlyBufferException();
}

Source: "Java SE Downloads: Java SE 6 JDK Source Code", at: http://www.oracle.com/technetwork/java/javase/downloads/index.html

java.nio.ByteBufferAsIntBufferRB.compact()

public IntBuffer compact() {
    throw new ReadOnlyBufferException();
}

Source: "Java SE Downloads: Java SE 6 JDK Source Code", at: http://www.oracle.com/technetwork/java/javase/downloads/index.html

java.nio.ByteBufferAsIntBufferRB.put(int)

public IntBuffer put(int x) {
    throw new ReadOnlyBufferException();
}

Source: "Java SE Downloads: Java SE 6 JDK Source Code", at: http://www.oracle.com/technetwork/java/javase/downloads/index.html

java.nio.ByteBufferAsIntBufferRB.put(int, int)

public IntBuffer put(int i, int x) {
    throw new ReadOnlyBufferException();
}

Source: "Java SE Downloads: Java SE 6 JDK Source Code", at: http://www.oracle.com/technetwork/java/javase/downloads/index.html

java.nio.ByteBufferAsIntBufferRL.compact()

public IntBuffer compact() {
    throw new ReadOnlyBufferException();
}

Source: "Java SE Downloads: Java SE 6 JDK Source Code", at: http://www.oracle.com/technetwork/java/javase/downloads/index.html

java.nio.ByteBufferAsIntBufferRL.put(int)

public IntBuffer put(int x) {
    throw new ReadOnlyBufferException();
}

Source: "Java SE Downloads: Java SE 6 JDK Source Code", at: http://www.oracle.com/technetwork/java/javase/downloads/index.html

java.nio.ByteBufferAsIntBufferRL.put(int, int)

public IntBuffer put(int i, int x) {
    throw new ReadOnlyBufferException();
}

Source: "Java SE Downloads: Java SE 6 JDK Source Code", at: http://www.oracle.com/technetwork/java/javase/downloads/index.html

java.nio.ByteBufferAsLongBufferRB.compact()

public LongBuffer compact() {
    throw new ReadOnlyBufferException();
}

Source: "Java SE Downloads: Java SE 6 JDK Source Code", at: http://www.oracle.com/technetwork/java/javase/downloads/index.html

java.nio.ByteBufferAsLongBufferRB.put(int, long)

public LongBuffer put(int i, long x) {
    throw new ReadOnlyBufferException();
}

Source: "Java SE Downloads: Java SE 6 JDK Source Code", at: http://www.oracle.com/technetwork/java/javase/downloads/index.html

java.nio.ByteBufferAsLongBufferRB.put(long)

public LongBuffer put(long x) {
    throw new ReadOnlyBufferException();
}

Source: "Java SE Downloads: Java SE 6 JDK Source Code", at: http://www.oracle.com/technetwork/java/javase/downloads/index.html

java.nio.ByteBufferAsLongBufferRL.compact()

public LongBuffer compact() {
    throw new ReadOnlyBufferException();
}

Source: "Java SE Downloads: Java SE 6 JDK Source Code", at: http://www.oracle.com/technetwork/java/javase/downloads/index.html

java.nio.ByteBufferAsLongBufferRL.put(int, long)

public LongBuffer put(int i, long x) {
    throw new ReadOnlyBufferException();
}

Source: "Java SE Downloads: Java SE 6 JDK Source Code", at: http://www.oracle.com/technetwork/java/javase/downloads/index.html

java.nio.ByteBufferAsLongBufferRL.put(long)

public LongBuffer put(long x) {
    throw new ReadOnlyBufferException();
}

Source: "Java SE Downloads: Java SE 6 JDK Source Code", at: http://www.oracle.com/technetwork/java/javase/downloads/index.html

java.nio.ByteBufferAsShortBufferRB.compact()

public ShortBuffer compact() {
    throw new ReadOnlyBufferException();
}

Source: "Java SE Downloads: Java SE 6 JDK Source Code", at: http://www.oracle.com/technetwork/java/javase/downloads/index.html

java.nio.ByteBufferAsShortBufferRB.put(int, short)

public ShortBuffer put(int i, short x) {
    throw new ReadOnlyBufferException();
}

Source: "Java SE Downloads: Java SE 6 JDK Source Code", at: http://www.oracle.com/technetwork/java/javase/downloads/index.html

java.nio.ByteBufferAsShortBufferRB.put(short)

public ShortBuffer put(short x) {
    throw new ReadOnlyBufferException();
}

Source: "Java SE Downloads: Java SE 6 JDK Source Code", at: http://www.oracle.com/technetwork/java/javase/downloads/index.html

java.nio.ByteBufferAsShortBufferRL.compact()

public ShortBuffer compact() {
    throw new ReadOnlyBufferException();
}

Source: "Java SE Downloads: Java SE 6 JDK Source Code", at: http://www.oracle.com/technetwork/java/javase/downloads/index.html

java.nio.ByteBufferAsShortBufferRL.put(int, short)

public ShortBuffer put(int i, short x) {
    throw new ReadOnlyBufferException();
}

Source: "Java SE Downloads: Java SE 6 JDK Source Code", at: http://www.oracle.com/technetwork/java/javase/downloads/index.html

java.nio.ByteBufferAsShortBufferRL.put(short)

public ShortBuffer put(short x) {
    throw new ReadOnlyBufferException();
}

Source: "Java SE Downloads: Java SE 6 JDK Source Code", at: http://www.oracle.com/technetwork/java/javase/downloads/index.html

java.nio.CharBuffer.array()

/**
     * Returns the character array that backs this
     * buffer  <i>(optional operation)</i>.
     *  Modifications to this buffer's content will cause the returned
     * array's content to be modified, and vice versa.
     *  Invoke the {@link #hasArray hasArray} method before invoking this
     * method in order to ensure that this buffer has an accessible backing
     * array.  
     * @return  The array that backs this buffer
     * @throws  ReadOnlyBufferException
     *          If this buffer is backed by an array but is read-only
     * @throws  UnsupportedOperationException
     *          If this buffer is not backed by an accessible array
     */
public final char[] array() {
    if (hb == null) throw new UnsupportedOperationException();
    if (isReadOnly) throw new ReadOnlyBufferException();
    return hb;
}

Source: "Java SE Downloads: Java SE 6 JDK Source Code", at: http://www.oracle.com/technetwork/java/javase/downloads/index.html

java.nio.CharBuffer.arrayOffset()

/**
     * Returns the offset within this buffer's backing array of the first
     * element of the buffer  <i>(optional operation)</i>.
     *  If this buffer is backed by an array then buffer position <i>p</i>
     * corresponds to array index <i>p</i> + <tt>arrayOffset()</tt>.
     *  Invoke the {@link #hasArray hasArray} method before invoking this
     * method in order to ensure that this buffer has an accessible backing
     * array.  
     * @return  The offset within this buffer's array
     *          of the first element of the buffer
     * @throws  ReadOnlyBufferException
     *          If this buffer is backed by an array but is read-only
     * @throws  UnsupportedOperationException
     *          If this buffer is not backed by an accessible array
     */
public final int arrayOffset() {
    if (hb == null) throw new UnsupportedOperationException();
    if (isReadOnly) throw new ReadOnlyBufferException();
    return offset;
}

Source: "Java SE Downloads: Java SE 6 JDK Source Code", at: http://www.oracle.com/technetwork/java/javase/downloads/index.html

java.nio.DirectByteBufferR._put(int, byte)

void _put(int i, byte b) {
    throw new ReadOnlyBufferException();
}

Source: "Java SE Downloads: Java SE 6 JDK Source Code", at: http://www.oracle.com/technetwork/java/javase/downloads/index.html

java.nio.DirectByteBufferR.compact()

public ByteBuffer compact() {
    throw new ReadOnlyBufferException();
}

Source: "Java SE Downloads: Java SE 6 JDK Source Code", at: http://www.oracle.com/technetwork/java/javase/downloads/index.html

java.nio.DirectByteBufferR.put(ByteBuffer)

public ByteBuffer put(ByteBuffer src) {
    throw new ReadOnlyBufferException();
}

Source: "Java SE Downloads: Java SE 6 JDK Source Code", at: http://www.oracle.com/technetwork/java/javase/downloads/index.html

java.nio.DirectByteBufferR.put(byte)

public ByteBuffer put(byte x) {
    throw new ReadOnlyBufferException();
}

Source: "Java SE Downloads: Java SE 6 JDK Source Code", at: http://www.oracle.com/technetwork/java/javase/downloads/index.html

java.nio.DirectByteBufferR.put(byte[], int, int)

public ByteBuffer put(byte[] src, int offset, int length) {
    throw new ReadOnlyBufferException();
}

Source: "Java SE Downloads: Java SE 6 JDK Source Code", at: http://www.oracle.com/technetwork/java/javase/downloads/index.html

java.nio.DirectByteBufferR.put(int, byte)

public ByteBuffer put(int i, byte x) {
    throw new ReadOnlyBufferException();
}

Source: "Java SE Downloads: Java SE 6 JDK Source Code", at: http://www.oracle.com/technetwork/java/javase/downloads/index.html

java.nio.DirectByteBufferR.putChar(char)

public ByteBuffer putChar(char x) {
    throw new ReadOnlyBufferException();
}

Source: "Java SE Downloads: Java SE 6 JDK Source Code", at: http://www.oracle.com/technetwork/java/javase/downloads/index.html

java.nio.DirectByteBufferR.putChar(int, char)

public ByteBuffer putChar(int i, char x) {
    throw new ReadOnlyBufferException();
}

Source: "Java SE Downloads: Java SE 6 JDK Source Code", at: http://www.oracle.com/technetwork/java/javase/downloads/index.html

java.nio.DirectByteBufferR.putChar(long, char)

private ByteBuffer putChar(long a, char x) {
    throw new ReadOnlyBufferException();
}

Source: "Java SE Downloads: Java SE 6 JDK Source Code", at: http://www.oracle.com/technetwork/java/javase/downloads/index.html

java.nio.DirectByteBufferR.putDouble(double)

public ByteBuffer putDouble(double x) {
    throw new ReadOnlyBufferException();
}

Source: "Java SE Downloads: Java SE 6 JDK Source Code", at: http://www.oracle.com/technetwork/java/javase/downloads/index.html

java.nio.DirectByteBufferR.putDouble(int, double)

public ByteBuffer putDouble(int i, double x) {
    throw new ReadOnlyBufferException();
}

Source: "Java SE Downloads: Java SE 6 JDK Source Code", at: http://www.oracle.com/technetwork/java/javase/downloads/index.html

java.nio.DirectByteBufferR.putDouble(long, double)

private ByteBuffer putDouble(long a, double x) {
    throw new ReadOnlyBufferException();
}

Source: "Java SE Downloads: Java SE 6 JDK Source Code", at: http://www.oracle.com/technetwork/java/javase/downloads/index.html

java.nio.DirectByteBufferR.putFloat(float)

public ByteBuffer putFloat(float x) {
    throw new ReadOnlyBufferException();
}

Source: "Java SE Downloads: Java SE 6 JDK Source Code", at: http://www.oracle.com/technetwork/java/javase/downloads/index.html

java.nio.DirectByteBufferR.putFloat(int, float)

public ByteBuffer putFloat(int i, float x) {
    throw new ReadOnlyBufferException();
}

Source: "Java SE Downloads: Java SE 6 JDK Source Code", at: http://www.oracle.com/technetwork/java/javase/downloads/index.html

java.nio.DirectByteBufferR.putFloat(long, float)

private ByteBuffer putFloat(long a, float x) {
    throw new ReadOnlyBufferException();
}

Source: "Java SE Downloads: Java SE 6 JDK Source Code", at: http://www.oracle.com/technetwork/java/javase/downloads/index.html

java.nio.DirectByteBufferR.putInt(int)

public ByteBuffer putInt(int x) {
    throw new ReadOnlyBufferException();
}

Source: "Java SE Downloads: Java SE 6 JDK Source Code", at: http://www.oracle.com/technetwork/java/javase/downloads/index.html

java.nio.DirectByteBufferR.putInt(int, int)

public ByteBuffer putInt(int i, int x) {
    throw new ReadOnlyBufferException();
}

Source: "Java SE Downloads: Java SE 6 JDK Source Code", at: http://www.oracle.com/technetwork/java/javase/downloads/index.html

java.nio.DirectByteBufferR.putInt(long, int)

private ByteBuffer putInt(long a, int x) {
    throw new ReadOnlyBufferException();
}

Source: "Java SE Downloads: Java SE 6 JDK Source Code", at: http://www.oracle.com/technetwork/java/javase/downloads/index.html

java.nio.DirectByteBufferR.putLong(int, long)

public ByteBuffer putLong(int i, long x) {
    throw new ReadOnlyBufferException();
}

Source: "Java SE Downloads: Java SE 6 JDK Source Code", at: http://www.oracle.com/technetwork/java/javase/downloads/index.html

java.nio.DirectByteBufferR.putLong(long)

public ByteBuffer putLong(long x) {
    throw new ReadOnlyBufferException();
}

Source: "Java SE Downloads: Java SE 6 JDK Source Code", at: http://www.oracle.com/technetwork/java/javase/downloads/index.html

java.nio.DirectByteBufferR.putLong(long, long)

private ByteBuffer putLong(long a, long x) {
    throw new ReadOnlyBufferException();
}

Source: "Java SE Downloads: Java SE 6 JDK Source Code", at: http://www.oracle.com/technetwork/java/javase/downloads/index.html

java.nio.DirectByteBufferR.putShort(int, short)

public ByteBuffer putShort(int i, short x) {
    throw new ReadOnlyBufferException();
}

Source: "Java SE Downloads: Java SE 6 JDK Source Code", at: http://www.oracle.com/technetwork/java/javase/downloads/index.html

java.nio.DirectByteBufferR.putShort(long, short)

private ByteBuffer putShort(long a, short x) {
    throw new ReadOnlyBufferException();
}

Source: "Java SE Downloads: Java SE 6 JDK Source Code", at: http://www.oracle.com/technetwork/java/javase/downloads/index.html

java.nio.DirectByteBufferR.putShort(short)

public ByteBuffer putShort(short x) {
    throw new ReadOnlyBufferException();
}

Source: "Java SE Downloads: Java SE 6 JDK Source Code", at: http://www.oracle.com/technetwork/java/javase/downloads/index.html

java.nio.DirectCharBufferRS.compact()

public CharBuffer compact() {
    throw new ReadOnlyBufferException();
}

Source: "Java SE Downloads: Java SE 6 JDK Source Code", at: http://www.oracle.com/technetwork/java/javase/downloads/index.html

java.nio.DirectCharBufferRS.put(CharBuffer)

public CharBuffer put(CharBuffer src) {
    throw new ReadOnlyBufferException();
}

Source: "Java SE Downloads: Java SE 6 JDK Source Code", at: http://www.oracle.com/technetwork/java/javase/downloads/index.html

java.nio.DirectCharBufferRS.put(char)

public CharBuffer put(char x) {
    throw new ReadOnlyBufferException();
}

Source: "Java SE Downloads: Java SE 6 JDK Source Code", at: http://www.oracle.com/technetwork/java/javase/downloads/index.html

java.nio.DirectCharBufferRS.put(char[], int, int)

public CharBuffer put(char[] src, int offset, int length) {
    throw new ReadOnlyBufferException();
}

Source: "Java SE Downloads: Java SE 6 JDK Source Code", at: http://www.oracle.com/technetwork/java/javase/downloads/index.html

java.nio.DirectCharBufferRS.put(int, char)

public CharBuffer put(int i, char x) {
    throw new ReadOnlyBufferException();
}

Source: "Java SE Downloads: Java SE 6 JDK Source Code", at: http://www.oracle.com/technetwork/java/javase/downloads/index.html

java.nio.DirectCharBufferRU.compact()

public CharBuffer compact() {
    throw new ReadOnlyBufferException();
}

Source: "Java SE Downloads: Java SE 6 JDK Source Code", at: http://www.oracle.com/technetwork/java/javase/downloads/index.html

java.nio.DirectCharBufferRU.put(CharBuffer)

public CharBuffer put(CharBuffer src) {
    throw new ReadOnlyBufferException();
}

Source: "Java SE Downloads: Java SE 6 JDK Source Code", at: http://www.oracle.com/technetwork/java/javase/downloads/index.html

java.nio.DirectCharBufferRU.put(char)

public CharBuffer put(char x) {
    throw new ReadOnlyBufferException();
}

Source: "Java SE Downloads: Java SE 6 JDK Source Code", at: http://www.oracle.com/technetwork/java/javase/downloads/index.html

java.nio.DirectCharBufferRU.put(char[], int, int)

public CharBuffer put(char[] src, int offset, int length) {
    throw new ReadOnlyBufferException();
}

Source: "Java SE Downloads: Java SE 6 JDK Source Code", at: http://www.oracle.com/technetwork/java/javase/downloads/index.html

java.nio.DirectCharBufferRU.put(int, char)

public CharBuffer put(int i, char x) {
    throw new ReadOnlyBufferException();
}

Source: "Java SE Downloads: Java SE 6 JDK Source Code", at: http://www.oracle.com/technetwork/java/javase/downloads/index.html

java.nio.DirectDoubleBufferRS.compact()

public DoubleBuffer compact() {
    throw new ReadOnlyBufferException();
}

Source: "Java SE Downloads: Java SE 6 JDK Source Code", at: http://www.oracle.com/technetwork/java/javase/downloads/index.html

java.nio.DirectDoubleBufferRS.put(DoubleBuffer)

public DoubleBuffer put(DoubleBuffer src) {
    throw new ReadOnlyBufferException();
}

Source: "Java SE Downloads: Java SE 6 JDK Source Code", at: http://www.oracle.com/technetwork/java/javase/downloads/index.html

java.nio.DirectDoubleBufferRS.put(double)

public DoubleBuffer put(double x) {
    throw new ReadOnlyBufferException();
}

Source: "Java SE Downloads: Java SE 6 JDK Source Code", at: http://www.oracle.com/technetwork/java/javase/downloads/index.html

java.nio.DirectDoubleBufferRS.put(double[], int, int)

public DoubleBuffer put(double[] src, int offset, int length) {
    throw new ReadOnlyBufferException();
}

Source: "Java SE Downloads: Java SE 6 JDK Source Code", at: http://www.oracle.com/technetwork/java/javase/downloads/index.html

java.nio.DirectDoubleBufferRS.put(int, double)

public DoubleBuffer put(int i, double x) {
    throw new ReadOnlyBufferException();
}

Source: "Java SE Downloads: Java SE 6 JDK Source Code", at: http://www.oracle.com/technetwork/java/javase/downloads/index.html

java.nio.DirectDoubleBufferRU.compact()

public DoubleBuffer compact() {
    throw new ReadOnlyBufferException();
}

Source: "Java SE Downloads: Java SE 6 JDK Source Code", at: http://www.oracle.com/technetwork/java/javase/downloads/index.html

java.nio.DirectDoubleBufferRU.put(DoubleBuffer)

public DoubleBuffer put(DoubleBuffer src) {
    throw new ReadOnlyBufferException();
}

Source: "Java SE Downloads: Java SE 6 JDK Source Code", at: http://www.oracle.com/technetwork/java/javase/downloads/index.html

java.nio.DirectDoubleBufferRU.put(double)

public DoubleBuffer put(double x) {
    throw new ReadOnlyBufferException();
}

Source: "Java SE Downloads: Java SE 6 JDK Source Code", at: http://www.oracle.com/technetwork/java/javase/downloads/index.html

java.nio.DirectDoubleBufferRU.put(double[], int, int)

public DoubleBuffer put(double[] src, int offset, int length) {
    throw new ReadOnlyBufferException();
}

Source: "Java SE Downloads: Java SE 6 JDK Source Code", at: http://www.oracle.com/technetwork/java/javase/downloads/index.html

java.nio.DirectDoubleBufferRU.put(int, double)

public DoubleBuffer put(int i, double x) {
    throw new ReadOnlyBufferException();
}

Source: "Java SE Downloads: Java SE 6 JDK Source Code", at: http://www.oracle.com/technetwork/java/javase/downloads/index.html

java.nio.DirectFloatBufferRS.compact()

public FloatBuffer compact() {
    throw new ReadOnlyBufferException();
}

Source: "Java SE Downloads: Java SE 6 JDK Source Code", at: http://www.oracle.com/technetwork/java/javase/downloads/index.html

java.nio.DirectFloatBufferRS.put(FloatBuffer)

public FloatBuffer put(FloatBuffer src) {
    throw new ReadOnlyBufferException();
}

Source: "Java SE Downloads: Java SE 6 JDK Source Code", at: http://www.oracle.com/technetwork/java/javase/downloads/index.html

java.nio.DirectFloatBufferRS.put(float)

public FloatBuffer put(float x) {
    throw new ReadOnlyBufferException();
}

Source: "Java SE Downloads: Java SE 6 JDK Source Code", at: http://www.oracle.com/technetwork/java/javase/downloads/index.html

java.nio.DirectFloatBufferRS.put(float[], int, int)

public FloatBuffer put(float[] src, int offset, int length) {
    throw new ReadOnlyBufferException();
}

Source: "Java SE Downloads: Java SE 6 JDK Source Code", at: http://www.oracle.com/technetwork/java/javase/downloads/index.html

java.nio.DirectFloatBufferRS.put(int, float)

public FloatBuffer put(int i, float x) {
    throw new ReadOnlyBufferException();
}

Source: "Java SE Downloads: Java SE 6 JDK Source Code", at: http://www.oracle.com/technetwork/java/javase/downloads/index.html

java.nio.DirectFloatBufferRU.compact()

public FloatBuffer compact() {
    throw new ReadOnlyBufferException();
}

Source: "Java SE Downloads: Java SE 6 JDK Source Code", at: http://www.oracle.com/technetwork/java/javase/downloads/index.html

java.nio.DirectFloatBufferRU.put(FloatBuffer)

public FloatBuffer put(FloatBuffer src) {
    throw new ReadOnlyBufferException();
}

Source: "Java SE Downloads: Java SE 6 JDK Source Code", at: http://www.oracle.com/technetwork/java/javase/downloads/index.html

java.nio.DirectFloatBufferRU.put(float)

public FloatBuffer put(float x) {
    throw new ReadOnlyBufferException();
}

Source: "Java SE Downloads: Java SE 6 JDK Source Code", at: http://www.oracle.com/technetwork/java/javase/downloads/index.html

java.nio.DirectFloatBufferRU.put(float[], int, int)

public FloatBuffer put(float[] src, int offset, int length) {
    throw new ReadOnlyBufferException();
}

Source: "Java SE Downloads: Java SE 6 JDK Source Code", at: http://www.oracle.com/technetwork/java/javase/downloads/index.html

java.nio.DirectFloatBufferRU.put(int, float)

public FloatBuffer put(int i, float x) {
    throw new ReadOnlyBufferException();
}

Source: "Java SE Downloads: Java SE 6 JDK Source Code", at: http://www.oracle.com/technetwork/java/javase/downloads/index.html

java.nio.DirectIntBufferRS.compact()

public IntBuffer compact() {
    throw new ReadOnlyBufferException();
}

Source: "Java SE Downloads: Java SE 6 JDK Source Code", at: http://www.oracle.com/technetwork/java/javase/downloads/index.html

java.nio.DirectIntBufferRS.put(IntBuffer)

public IntBuffer put(IntBuffer src) {
    throw new ReadOnlyBufferException();
}

Source: "Java SE Downloads: Java SE 6 JDK Source Code", at: http://www.oracle.com/technetwork/java/javase/downloads/index.html

java.nio.DirectIntBufferRS.put(int)

public IntBuffer put(int x) {
    throw new ReadOnlyBufferException();
}

Source: "Java SE Downloads: Java SE 6 JDK Source Code", at: http://www.oracle.com/technetwork/java/javase/downloads/index.html

java.nio.DirectIntBufferRS.put(int, int)

public IntBuffer put(int i, int x) {
    throw new ReadOnlyBufferException();
}

Source: "Java SE Downloads: Java SE 6 JDK Source Code", at: http://www.oracle.com/technetwork/java/javase/downloads/index.html

java.nio.DirectIntBufferRS.put(int[], int, int)

public IntBuffer put(int[] src, int offset, int length) {
    throw new ReadOnlyBufferException();
}

Source: "Java SE Downloads: Java SE 6 JDK Source Code", at: http://www.oracle.com/technetwork/java/javase/downloads/index.html

java.nio.DirectIntBufferRU.compact()

public IntBuffer compact() {
    throw new ReadOnlyBufferException();
}

Source: "Java SE Downloads: Java SE 6 JDK Source Code", at: http://www.oracle.com/technetwork/java/javase/downloads/index.html

java.nio.DirectIntBufferRU.put(IntBuffer)

public IntBuffer put(IntBuffer src) {
    throw new ReadOnlyBufferException();
}

Source: "Java SE Downloads: Java SE 6 JDK Source Code", at: http://www.oracle.com/technetwork/java/javase/downloads/index.html

java.nio.DirectIntBufferRU.put(int)

public IntBuffer put(int x) {
    throw new ReadOnlyBufferException();
}

Source: "Java SE Downloads: Java SE 6 JDK Source Code", at: http://www.oracle.com/technetwork/java/javase/downloads/index.html

java.nio.DirectIntBufferRU.put(int, int)

public IntBuffer put(int i, int x) {
    throw new ReadOnlyBufferException();
}

Source: "Java SE Downloads: Java SE 6 JDK Source Code", at: http://www.oracle.com/technetwork/java/javase/downloads/index.html

java.nio.DirectIntBufferRU.put(int[], int, int)

public IntBuffer put(int[] src, int offset, int length) {
    throw new ReadOnlyBufferException();
}

Source: "Java SE Downloads: Java SE 6 JDK Source Code", at: http://www.oracle.com/technetwork/java/javase/downloads/index.html

java.nio.DirectLongBufferRS.compact()

public LongBuffer compact() {
    throw new ReadOnlyBufferException();
}

Source: "Java SE Downloads: Java SE 6 JDK Source Code", at: http://www.oracle.com/technetwork/java/javase/downloads/index.html

java.nio.DirectLongBufferRS.put(LongBuffer)

public LongBuffer put(LongBuffer src) {
    throw new ReadOnlyBufferException();
}

Source: "Java SE Downloads: Java SE 6 JDK Source Code", at: http://www.oracle.com/technetwork/java/javase/downloads/index.html

java.nio.DirectLongBufferRS.put(int, long)

public LongBuffer put(int i, long x) {
    throw new ReadOnlyBufferException();
}

Source: "Java SE Downloads: Java SE 6 JDK Source Code", at: http://www.oracle.com/technetwork/java/javase/downloads/index.html

java.nio.DirectLongBufferRS.put(long)

public LongBuffer put(long x) {
    throw new ReadOnlyBufferException();
}

Source: "Java SE Downloads: Java SE 6 JDK Source Code", at: http://www.oracle.com/technetwork/java/javase/downloads/index.html

java.nio.DirectLongBufferRS.put(long[], int, int)

public LongBuffer put(long[] src, int offset, int length) {
    throw new ReadOnlyBufferException();
}

Source: "Java SE Downloads: Java SE 6 JDK Source Code", at: http://www.oracle.com/technetwork/java/javase/downloads/index.html

java.nio.DirectLongBufferRU.compact()

public LongBuffer compact() {
    throw new ReadOnlyBufferException();
}

Source: "Java SE Downloads: Java SE 6 JDK Source Code", at: http://www.oracle.com/technetwork/java/javase/downloads/index.html

java.nio.DirectLongBufferRU.put(LongBuffer)

public LongBuffer put(LongBuffer src) {
    throw new ReadOnlyBufferException();
}

Source: "Java SE Downloads: Java SE 6 JDK Source Code", at: http://www.oracle.com/technetwork/java/javase/downloads/index.html

java.nio.DirectLongBufferRU.put(int, long)

public LongBuffer put(int i, long x) {
    throw new ReadOnlyBufferException();
}

Source: "Java SE Downloads: Java SE 6 JDK Source Code", at: http://www.oracle.com/technetwork/java/javase/downloads/index.html

java.nio.DirectLongBufferRU.put(long)

public LongBuffer put(long x) {
    throw new ReadOnlyBufferException();
}

Source: "Java SE Downloads: Java SE 6 JDK Source Code", at: http://www.oracle.com/technetwork/java/javase/downloads/index.html

java.nio.DirectLongBufferRU.put(long[], int, int)

public LongBuffer put(long[] src, int offset, int length) {
    throw new ReadOnlyBufferException();
}

Source: "Java SE Downloads: Java SE 6 JDK Source Code", at: http://www.oracle.com/technetwork/java/javase/downloads/index.html

java.nio.DirectShortBufferRS.compact()

public ShortBuffer compact() {
    throw new ReadOnlyBufferException();
}

Source: "Java SE Downloads: Java SE 6 JDK Source Code", at: http://www.oracle.com/technetwork/java/javase/downloads/index.html

java.nio.DirectShortBufferRS.put(ShortBuffer)

public ShortBuffer put(ShortBuffer src) {
    throw new ReadOnlyBufferException();
}

Source: "Java SE Downloads: Java SE 6 JDK Source Code", at: http://www.oracle.com/technetwork/java/javase/downloads/index.html

java.nio.DirectShortBufferRS.put(int, short)

public ShortBuffer put(int i, short x) {
    throw new ReadOnlyBufferException();
}

Source: "Java SE Downloads: Java SE 6 JDK Source Code", at: http://www.oracle.com/technetwork/java/javase/downloads/index.html

java.nio.DirectShortBufferRS.put(short)

public ShortBuffer put(short x) {
    throw new ReadOnlyBufferException();
}

Source: "Java SE Downloads: Java SE 6 JDK Source Code", at: http://www.oracle.com/technetwork/java/javase/downloads/index.html

java.nio.DirectShortBufferRS.put(short[], int, int)

public ShortBuffer put(short[] src, int offset, int length) {
    throw new ReadOnlyBufferException();
}

Source: "Java SE Downloads: Java SE 6 JDK Source Code", at: http://www.oracle.com/technetwork/java/javase/downloads/index.html

java.nio.DirectShortBufferRU.compact()

public ShortBuffer compact() {
    throw new ReadOnlyBufferException();
}

Source: "Java SE Downloads: Java SE 6 JDK Source Code", at: http://www.oracle.com/technetwork/java/javase/downloads/index.html

java.nio.DirectShortBufferRU.put(ShortBuffer)

public ShortBuffer put(ShortBuffer src) {
    throw new ReadOnlyBufferException();
}

Source: "Java SE Downloads: Java SE 6 JDK Source Code", at: http://www.oracle.com/technetwork/java/javase/downloads/index.html

java.nio.DirectShortBufferRU.put(int, short)

public ShortBuffer put(int i, short x) {
    throw new ReadOnlyBufferException();
}

Source: "Java SE Downloads: Java SE 6 JDK Source Code", at: http://www.oracle.com/technetwork/java/javase/downloads/index.html

java.nio.DirectShortBufferRU.put(short)

public ShortBuffer put(short x) {
    throw new ReadOnlyBufferException();
}

Source: "Java SE Downloads: Java SE 6 JDK Source Code", at: http://www.oracle.com/technetwork/java/javase/downloads/index.html

java.nio.DirectShortBufferRU.put(short[], int, int)

public ShortBuffer put(short[] src, int offset, int length) {
    throw new ReadOnlyBufferException();
}

Source: "Java SE Downloads: Java SE 6 JDK Source Code", at: http://www.oracle.com/technetwork/java/javase/downloads/index.html

java.nio.DoubleBuffer.array()

/**
     * Returns the double array that backs this
     * buffer  <i>(optional operation)</i>.
     *  Modifications to this buffer's content will cause the returned
     * array's content to be modified, and vice versa.
     *  Invoke the {@link #hasArray hasArray} method before invoking this
     * method in order to ensure that this buffer has an accessible backing
     * array.  
     * @return  The array that backs this buffer
     * @throws  ReadOnlyBufferException
     *          If this buffer is backed by an array but is read-only
     * @throws  UnsupportedOperationException
     *          If this buffer is not backed by an accessible array
     */
public final double[] array() {
    if (hb == null) throw new UnsupportedOperationException();
    if (isReadOnly) throw new ReadOnlyBufferException();
    return hb;
}

Source: "Java SE Downloads: Java SE 6 JDK Source Code", at: http://www.oracle.com/technetwork/java/javase/downloads/index.html

java.nio.DoubleBuffer.arrayOffset()

/**
     * Returns the offset within this buffer's backing array of the first
     * element of the buffer  <i>(optional operation)</i>.
     *  If this buffer is backed by an array then buffer position <i>p</i>
     * corresponds to array index <i>p</i> + <tt>arrayOffset()</tt>.
     *  Invoke the {@link #hasArray hasArray} method before invoking this
     * method in order to ensure that this buffer has an accessible backing
     * array.  
     * @return  The offset within this buffer's array
     *          of the first element of the buffer
     * @throws  ReadOnlyBufferException
     *          If this buffer is backed by an array but is read-only
     * @throws  UnsupportedOperationException
     *          If this buffer is not backed by an accessible array
     */
public final int arrayOffset() {
    if (hb == null) throw new UnsupportedOperationException();
    if (isReadOnly) throw new ReadOnlyBufferException();
    return offset;
}

Source: "Java SE Downloads: Java SE 6 JDK Source Code", at: http://www.oracle.com/technetwork/java/javase/downloads/index.html

java.nio.FloatBuffer.array()

/**
     * Returns the float array that backs this
     * buffer  <i>(optional operation)</i>.
     *  Modifications to this buffer's content will cause the returned
     * array's content to be modified, and vice versa.
     *  Invoke the {@link #hasArray hasArray} method before invoking this
     * method in order to ensure that this buffer has an accessible backing
     * array.  
     * @return  The array that backs this buffer
     * @throws  ReadOnlyBufferException
     *          If this buffer is backed by an array but is read-only
     * @throws  UnsupportedOperationException
     *          If this buffer is not backed by an accessible array
     */
public final float[] array() {
    if (hb == null) throw new UnsupportedOperationException();
    if (isReadOnly) throw new ReadOnlyBufferException();
    return hb;
}

Source: "Java SE Downloads: Java SE 6 JDK Source Code", at: http://www.oracle.com/technetwork/java/javase/downloads/index.html

java.nio.FloatBuffer.arrayOffset()

/**
     * Returns the offset within this buffer's backing array of the first
     * element of the buffer  <i>(optional operation)</i>.
     *  If this buffer is backed by an array then buffer position <i>p</i>
     * corresponds to array index <i>p</i> + <tt>arrayOffset()</tt>.
     *  Invoke the {@link #hasArray hasArray} method before invoking this
     * method in order to ensure that this buffer has an accessible backing
     * array.  
     * @return  The offset within this buffer's array
     *          of the first element of the buffer
     * @throws  ReadOnlyBufferException
     *          If this buffer is backed by an array but is read-only
     * @throws  UnsupportedOperationException
     *          If this buffer is not backed by an accessible array
     */
public final int arrayOffset() {
    if (hb == null) throw new UnsupportedOperationException();
    if (isReadOnly) throw new ReadOnlyBufferException();
    return offset;
}

Source: "Java SE Downloads: Java SE 6 JDK Source Code", at: http://www.oracle.com/technetwork/java/javase/downloads/index.html

java.nio.HeapByteBufferR._put(int, byte)

void _put(int i, byte b) {
    throw new ReadOnlyBufferException();
}

Source: "Java SE Downloads: Java SE 6 JDK Source Code", at: http://www.oracle.com/technetwork/java/javase/downloads/index.html

java.nio.HeapByteBufferR.compact()

public ByteBuffer compact() {
    throw new ReadOnlyBufferException();
}

Source: "Java SE Downloads: Java SE 6 JDK Source Code", at: http://www.oracle.com/technetwork/java/javase/downloads/index.html

java.nio.HeapByteBufferR.put(ByteBuffer)

public ByteBuffer put(ByteBuffer src) {
    throw new ReadOnlyBufferException();
}

Source: "Java SE Downloads: Java SE 6 JDK Source Code", at: http://www.oracle.com/technetwork/java/javase/downloads/index.html

java.nio.HeapByteBufferR.put(byte)

public ByteBuffer put(byte x) {
    throw new ReadOnlyBufferException();
}

Source: "Java SE Downloads: Java SE 6 JDK Source Code", at: http://www.oracle.com/technetwork/java/javase/downloads/index.html

java.nio.HeapByteBufferR.put(byte[], int, int)

public ByteBuffer put(byte[] src, int offset, int length) {
    throw new ReadOnlyBufferException();
}

Source: "Java SE Downloads: Java SE 6 JDK Source Code", at: http://www.oracle.com/technetwork/java/javase/downloads/index.html

java.nio.HeapByteBufferR.put(int, byte)

public ByteBuffer put(int i, byte x) {
    throw new ReadOnlyBufferException();
}

Source: "Java SE Downloads: Java SE 6 JDK Source Code", at: http://www.oracle.com/technetwork/java/javase/downloads/index.html

java.nio.HeapByteBufferR.putChar(char)

public ByteBuffer putChar(char x) {
    throw new ReadOnlyBufferException();
}

Source: "Java SE Downloads: Java SE 6 JDK Source Code", at: http://www.oracle.com/technetwork/java/javase/downloads/index.html

java.nio.HeapByteBufferR.putChar(int, char)

public ByteBuffer putChar(int i, char x) {
    throw new ReadOnlyBufferException();
}

Source: "Java SE Downloads: Java SE 6 JDK Source Code", at: http://www.oracle.com/technetwork/java/javase/downloads/index.html

java.nio.HeapByteBufferR.putDouble(double)

public ByteBuffer putDouble(double x) {
    throw new ReadOnlyBufferException();
}

Source: "Java SE Downloads: Java SE 6 JDK Source Code", at: http://www.oracle.com/technetwork/java/javase/downloads/index.html

java.nio.HeapByteBufferR.putDouble(int, double)

public ByteBuffer putDouble(int i, double x) {
    throw new ReadOnlyBufferException();
}

Source: "Java SE Downloads: Java SE 6 JDK Source Code", at: http://www.oracle.com/technetwork/java/javase/downloads/index.html

java.nio.HeapByteBufferR.putFloat(float)

public ByteBuffer putFloat(float x) {
    throw new ReadOnlyBufferException();
}

Source: "Java SE Downloads: Java SE 6 JDK Source Code", at: http://www.oracle.com/technetwork/java/javase/downloads/index.html

java.nio.HeapByteBufferR.putFloat(int, float)

public ByteBuffer putFloat(int i, float x) {
    throw new ReadOnlyBufferException();
}

Source: "Java SE Downloads: Java SE 6 JDK Source Code", at: http://www.oracle.com/technetwork/java/javase/downloads/index.html

java.nio.HeapByteBufferR.putInt(int)

public ByteBuffer putInt(int x) {
    throw new ReadOnlyBufferException();
}

Source: "Java SE Downloads: Java SE 6 JDK Source Code", at: http://www.oracle.com/technetwork/java/javase/downloads/index.html

java.nio.HeapByteBufferR.putInt(int, int)

public ByteBuffer putInt(int i, int x) {
    throw new ReadOnlyBufferException();
}

Source: "Java SE Downloads: Java SE 6 JDK Source Code", at: http://www.oracle.com/technetwork/java/javase/downloads/index.html

java.nio.HeapByteBufferR.putLong(int, long)

public ByteBuffer putLong(int i, long x) {
    throw new ReadOnlyBufferException();
}

Source: "Java SE Downloads: Java SE 6 JDK Source Code", at: http://www.oracle.com/technetwork/java/javase/downloads/index.html

java.nio.HeapByteBufferR.putLong(long)

public ByteBuffer putLong(long x) {
    throw new ReadOnlyBufferException();
}

Source: "Java SE Downloads: Java SE 6 JDK Source Code", at: http://www.oracle.com/technetwork/java/javase/downloads/index.html

java.nio.HeapByteBufferR.putShort(int, short)

public ByteBuffer putShort(int i, short x) {
    throw new ReadOnlyBufferException();
}

Source: "Java SE Downloads: Java SE 6 JDK Source Code", at: http://www.oracle.com/technetwork/java/javase/downloads/index.html

java.nio.HeapByteBufferR.putShort(short)

public ByteBuffer putShort(short x) {
    throw new ReadOnlyBufferException();
}

Source: "Java SE Downloads: Java SE 6 JDK Source Code", at: http://www.oracle.com/technetwork/java/javase/downloads/index.html

java.nio.HeapCharBufferR.compact()

public CharBuffer compact() {
    throw new ReadOnlyBufferException();
}

Source: "Java SE Downloads: Java SE 6 JDK Source Code", at: http://www.oracle.com/technetwork/java/javase/downloads/index.html

java.nio.HeapCharBufferR.put(CharBuffer)

public CharBuffer put(CharBuffer src) {
    throw new ReadOnlyBufferException();
}

Source: "Java SE Downloads: Java SE 6 JDK Source Code", at: http://www.oracle.com/technetwork/java/javase/downloads/index.html

java.nio.HeapCharBufferR.put(char)

public CharBuffer put(char x) {
    throw new ReadOnlyBufferException();
}

Source: "Java SE Downloads: Java SE 6 JDK Source Code", at: http://www.oracle.com/technetwork/java/javase/downloads/index.html

java.nio.HeapCharBufferR.put(char[], int, int)

public CharBuffer put(char[] src, int offset, int length) {
    throw new ReadOnlyBufferException();
}

Source: "Java SE Downloads: Java SE 6 JDK Source Code", at: http://www.oracle.com/technetwork/java/javase/downloads/index.html

java.nio.HeapCharBufferR.put(int, char)

public CharBuffer put(int i, char x) {
    throw new ReadOnlyBufferException();
}

Source: "Java SE Downloads: Java SE 6 JDK Source Code", at: http://www.oracle.com/technetwork/java/javase/downloads/index.html

java.nio.HeapDoubleBufferR.compact()

public DoubleBuffer compact() {
    throw new ReadOnlyBufferException();
}

Source: "Java SE Downloads: Java SE 6 JDK Source Code", at: http://www.oracle.com/technetwork/java/javase/downloads/index.html

java.nio.HeapDoubleBufferR.put(DoubleBuffer)

public DoubleBuffer put(DoubleBuffer src) {
    throw new ReadOnlyBufferException();
}

Source: "Java SE Downloads: Java SE 6 JDK Source Code", at: http://www.oracle.com/technetwork/java/javase/downloads/index.html

java.nio.HeapDoubleBufferR.put(double)

public DoubleBuffer put(double x) {
    throw new ReadOnlyBufferException();
}

Source: "Java SE Downloads: Java SE 6 JDK Source Code", at: http://www.oracle.com/technetwork/java/javase/downloads/index.html

java.nio.HeapDoubleBufferR.put(double[], int, int)

public DoubleBuffer put(double[] src, int offset, int length) {
    throw new ReadOnlyBufferException();
}

Source: "Java SE Downloads: Java SE 6 JDK Source Code", at: http://www.oracle.com/technetwork/java/javase/downloads/index.html

java.nio.HeapDoubleBufferR.put(int, double)

public DoubleBuffer put(int i, double x) {
    throw new ReadOnlyBufferException();
}

Source: "Java SE Downloads: Java SE 6 JDK Source Code", at: http://www.oracle.com/technetwork/java/javase/downloads/index.html

java.nio.HeapFloatBufferR.compact()

public FloatBuffer compact() {
    throw new ReadOnlyBufferException();
}

Source: "Java SE Downloads: Java SE 6 JDK Source Code", at: http://www.oracle.com/technetwork/java/javase/downloads/index.html

java.nio.HeapFloatBufferR.put(FloatBuffer)

public FloatBuffer put(FloatBuffer src) {
    throw new ReadOnlyBufferException();
}

Source: "Java SE Downloads: Java SE 6 JDK Source Code", at: http://www.oracle.com/technetwork/java/javase/downloads/index.html

java.nio.HeapFloatBufferR.put(float)

public FloatBuffer put(float x) {
    throw new ReadOnlyBufferException();
}

Source: "Java SE Downloads: Java SE 6 JDK Source Code", at: http://www.oracle.com/technetwork/java/javase/downloads/index.html

java.nio.HeapFloatBufferR.put(float[], int, int)

public FloatBuffer put(float[] src, int offset, int length) {
    throw new ReadOnlyBufferException();
}

Source: "Java SE Downloads: Java SE 6 JDK Source Code", at: http://www.oracle.com/technetwork/java/javase/downloads/index.html

java.nio.HeapFloatBufferR.put(int, float)

public FloatBuffer put(int i, float x) {
    throw new ReadOnlyBufferException();
}

Source: "Java SE Downloads: Java SE 6 JDK Source Code", at: http://www.oracle.com/technetwork/java/javase/downloads/index.html

java.nio.HeapIntBufferR.compact()

public IntBuffer compact() {
    throw new ReadOnlyBufferException();
}

Source: "Java SE Downloads: Java SE 6 JDK Source Code", at: http://www.oracle.com/technetwork/java/javase/downloads/index.html

java.nio.HeapIntBufferR.put(IntBuffer)

public IntBuffer put(IntBuffer src) {
    throw new ReadOnlyBufferException();
}

Source: "Java SE Downloads: Java SE 6 JDK Source Code", at: http://www.oracle.com/technetwork/java/javase/downloads/index.html

java.nio.HeapIntBufferR.put(int)

public IntBuffer put(int x) {
    throw new ReadOnlyBufferException();
}

Source: "Java SE Downloads: Java SE 6 JDK Source Code", at: http://www.oracle.com/technetwork/java/javase/downloads/index.html

java.nio.HeapIntBufferR.put(int, int)

public IntBuffer put(int i, int x) {
    throw new ReadOnlyBufferException();
}

Source: "Java SE Downloads: Java SE 6 JDK Source Code", at: http://www.oracle.com/technetwork/java/javase/downloads/index.html

java.nio.HeapIntBufferR.put(int[], int, int)

public IntBuffer put(int[] src, int offset, int length) {
    throw new ReadOnlyBufferException();
}

Source: "Java SE Downloads: Java SE 6 JDK Source Code", at: http://www.oracle.com/technetwork/java/javase/downloads/index.html

java.nio.HeapLongBufferR.compact()

public LongBuffer compact() {
    throw new ReadOnlyBufferException();
}

Source: "Java SE Downloads: Java SE 6 JDK Source Code", at: http://www.oracle.com/technetwork/java/javase/downloads/index.html

java.nio.HeapLongBufferR.put(LongBuffer)

public LongBuffer put(LongBuffer src) {
    throw new ReadOnlyBufferException();
}

Source: "Java SE Downloads: Java SE 6 JDK Source Code", at: http://www.oracle.com/technetwork/java/javase/downloads/index.html

java.nio.HeapLongBufferR.put(int, long)

public LongBuffer put(int i, long x) {
    throw new ReadOnlyBufferException();
}

Source: "Java SE Downloads: Java SE 6 JDK Source Code", at: http://www.oracle.com/technetwork/java/javase/downloads/index.html

java.nio.HeapLongBufferR.put(long)

public LongBuffer put(long x) {
    throw new ReadOnlyBufferException();
}

Source: "Java SE Downloads: Java SE 6 JDK Source Code", at: http://www.oracle.com/technetwork/java/javase/downloads/index.html

java.nio.HeapLongBufferR.put(long[], int, int)

public LongBuffer put(long[] src, int offset, int length) {
    throw new ReadOnlyBufferException();
}

Source: "Java SE Downloads: Java SE 6 JDK Source Code", at: http://www.oracle.com/technetwork/java/javase/downloads/index.html

java.nio.HeapShortBufferR.compact()

public ShortBuffer compact() {
    throw new ReadOnlyBufferException();
}

Source: "Java SE Downloads: Java SE 6 JDK Source Code", at: http://www.oracle.com/technetwork/java/javase/downloads/index.html

java.nio.HeapShortBufferR.put(ShortBuffer)

public ShortBuffer put(ShortBuffer src) {
    throw new ReadOnlyBufferException();
}

Source: "Java SE Downloads: Java SE 6 JDK Source Code", at: http://www.oracle.com/technetwork/java/javase/downloads/index.html

java.nio.HeapShortBufferR.put(int, short)

public ShortBuffer put(int i, short x) {
    throw new ReadOnlyBufferException();
}

Source: "Java SE Downloads: Java SE 6 JDK Source Code", at: http://www.oracle.com/technetwork/java/javase/downloads/index.html

java.nio.HeapShortBufferR.put(short)

public ShortBuffer put(short x) {
    throw new ReadOnlyBufferException();
}

Source: "Java SE Downloads: Java SE 6 JDK Source Code", at: http://www.oracle.com/technetwork/java/javase/downloads/index.html

java.nio.HeapShortBufferR.put(short[], int, int)

public ShortBuffer put(short[] src, int offset, int length) {
    throw new ReadOnlyBufferException();
}

Source: "Java SE Downloads: Java SE 6 JDK Source Code", at: http://www.oracle.com/technetwork/java/javase/downloads/index.html

java.nio.IntBuffer.array()

/**
     * Returns the int array that backs this
     * buffer  <i>(optional operation)</i>.
     *  Modifications to this buffer's content will cause the returned
     * array's content to be modified, and vice versa.
     *  Invoke the {@link #hasArray hasArray} method before invoking this
     * method in order to ensure that this buffer has an accessible backing
     * array.  
     * @return  The array that backs this buffer
     * @throws  ReadOnlyBufferException
     *          If this buffer is backed by an array but is read-only
     * @throws  UnsupportedOperationException
     *          If this buffer is not backed by an accessible array
     */
public final int[] array() {
    if (hb == null) throw new UnsupportedOperationException();
    if (isReadOnly) throw new ReadOnlyBufferException();
    return hb;
}

Source: "Java SE Downloads: Java SE 6 JDK Source Code", at: http://www.oracle.com/technetwork/java/javase/downloads/index.html

java.nio.IntBuffer.arrayOffset()

/**
     * Returns the offset within this buffer's backing array of the first
     * element of the buffer  <i>(optional operation)</i>.
     *  If this buffer is backed by an array then buffer position <i>p</i>
     * corresponds to array index <i>p</i> + <tt>arrayOffset()</tt>.
     *  Invoke the {@link #hasArray hasArray} method before invoking this
     * method in order to ensure that this buffer has an accessible backing
     * array.  
     * @return  The offset within this buffer's array
     *          of the first element of the buffer
     * @throws  ReadOnlyBufferException
     *          If this buffer is backed by an array but is read-only
     * @throws  UnsupportedOperationException
     *          If this buffer is not backed by an accessible array
     */
public final int arrayOffset() {
    if (hb == null) throw new UnsupportedOperationException();
    if (isReadOnly) throw new ReadOnlyBufferException();
    return offset;
}

Source: "Java SE Downloads: Java SE 6 JDK Source Code", at: http://www.oracle.com/technetwork/java/javase/downloads/index.html

java.nio.LongBuffer.array()

/**
     * Returns the long array that backs this
     * buffer  <i>(optional operation)</i>.
     *  Modifications to this buffer's content will cause the returned
     * array's content to be modified, and vice versa.
     *  Invoke the {@link #hasArray hasArray} method before invoking this
     * method in order to ensure that this buffer has an accessible backing
     * array.  
     * @return  The array that backs this buffer
     * @throws  ReadOnlyBufferException
     *          If this buffer is backed by an array but is read-only
     * @throws  UnsupportedOperationException
     *          If this buffer is not backed by an accessible array
     */
public final long[] array() {
    if (hb == null) throw new UnsupportedOperationException();
    if (isReadOnly) throw new ReadOnlyBufferException();
    return hb;
}

Source: "Java SE Downloads: Java SE 6 JDK Source Code", at: http://www.oracle.com/technetwork/java/javase/downloads/index.html

java.nio.LongBuffer.arrayOffset()

/**
     * Returns the offset within this buffer's backing array of the first
     * element of the buffer  <i>(optional operation)</i>.
     *  If this buffer is backed by an array then buffer position <i>p</i>
     * corresponds to array index <i>p</i> + <tt>arrayOffset()</tt>.
     *  Invoke the {@link #hasArray hasArray} method before invoking this
     * method in order to ensure that this buffer has an accessible backing
     * array.  
     * @return  The offset within this buffer's array
     *          of the first element of the buffer
     * @throws  ReadOnlyBufferException
     *          If this buffer is backed by an array but is read-only
     * @throws  UnsupportedOperationException
     *          If this buffer is not backed by an accessible array
     */
public final int arrayOffset() {
    if (hb == null) throw new UnsupportedOperationException();
    if (isReadOnly) throw new ReadOnlyBufferException();
    return offset;
}

Source: "Java SE Downloads: Java SE 6 JDK Source Code", at: http://www.oracle.com/technetwork/java/javase/downloads/index.html

java.nio.ShortBuffer.array()

/**
     * Returns the short array that backs this
     * buffer  <i>(optional operation)</i>.
     *  Modifications to this buffer's content will cause the returned
     * array's content to be modified, and vice versa.
     *  Invoke the {@link #hasArray hasArray} method before invoking this
     * method in order to ensure that this buffer has an accessible backing
     * array.  
     * @return  The array that backs this buffer
     * @throws  ReadOnlyBufferException
     *          If this buffer is backed by an array but is read-only
     * @throws  UnsupportedOperationException
     *          If this buffer is not backed by an accessible array
     */
public final short[] array() {
    if (hb == null) throw new UnsupportedOperationException();
    if (isReadOnly) throw new ReadOnlyBufferException();
    return hb;
}

Source: "Java SE Downloads: Java SE 6 JDK Source Code", at: http://www.oracle.com/technetwork/java/javase/downloads/index.html

java.nio.ShortBuffer.arrayOffset()

/**
     * Returns the offset within this buffer's backing array of the first
     * element of the buffer  <i>(optional operation)</i>.
     *  If this buffer is backed by an array then buffer position <i>p</i>
     * corresponds to array index <i>p</i> + <tt>arrayOffset()</tt>.
     *  Invoke the {@link #hasArray hasArray} method before invoking this
     * method in order to ensure that this buffer has an accessible backing
     * array.  
     * @return  The offset within this buffer's array
     *          of the first element of the buffer
     * @throws  ReadOnlyBufferException
     *          If this buffer is backed by an array but is read-only
     * @throws  UnsupportedOperationException
     *          If this buffer is not backed by an accessible array
     */
public final int arrayOffset() {
    if (hb == null) throw new UnsupportedOperationException();
    if (isReadOnly) throw new ReadOnlyBufferException();
    return offset;
}

Source: "Java SE Downloads: Java SE 6 JDK Source Code", at: http://www.oracle.com/technetwork/java/javase/downloads/index.html

java.nio.StringCharBuffer.compact()

public final CharBuffer compact() {
    throw new ReadOnlyBufferException();
}

Source: "Java SE Downloads: Java SE 6 JDK Source Code", at: http://www.oracle.com/technetwork/java/javase/downloads/index.html

java.nio.StringCharBuffer.put(char)

public final CharBuffer put(char c) {
    throw new ReadOnlyBufferException();
}

Source: "Java SE Downloads: Java SE 6 JDK Source Code", at: http://www.oracle.com/technetwork/java/javase/downloads/index.html

java.nio.StringCharBuffer.put(int, char)

public final CharBuffer put(int index, char c) {
    throw new ReadOnlyBufferException();
}

Source: "Java SE Downloads: Java SE 6 JDK Source Code", at: http://www.oracle.com/technetwork/java/javase/downloads/index.html

Comments

Popular posts from this blog

NullPointerException

java.lang.NullPointerException NullPointerException is described in the javadoc comments as: Thrown when an application attempts to use null in a case where an object is required. These include: Calling the instance method of a null object. Accessing or modifying the field of a null object. Taking the length of null as if it were an array. Accessing or modifying the slots of null as if it were an array. Throwing null as if it were a Throwable value. Applications should throw instances of this class to indicate other illegal uses of the null object. author: unascribed version: 1.19, 12/19/03 since: JDK1.0 Where is this exception thrown? Following, is a list of exception messages cross-referenced to the source code responsible for throwing them. Click on the method link to view the code and see how the exception is thrown. The message ' java.lang.NullPointerException: ' is thrown within the method: com.sun.corba.se.impl.interceptors.ClientRequestInfoImpl.get_r

Connection refused: No available router to destination

This is a simple symptom-cause-solution blog entry only. I hope these blogs will help fellow administrators. Symptom The following exception occurs in WebLogic server logs. Most likely to occur during WebLogic server start-up, but similar exceptions may occur at other times. java.net.ConnectException: t3://myserver:8000: Destination unreachable; nested exception is: java.net.ConnectException: Connection refused: connect; No available router to destination] at weblogic.jndi.internal.ExceptionTranslator.toNamingException(ExceptionTranslator.java:49) at weblogic.jndi.WLInitialContextFactoryDelegate.toNamingException(WLInitialContextFactoryDelegate.java:773) at weblogic.jndi.WLInitialContextFactoryDelegate.getInitialContext(WLInitialContextFactoryDelegate.java:363) at weblogic.jndi.Environment.getContext(Environment.java:307) at weblogic.jndi.Environment.getContext(Environment.java:277) Cause This message (Connection refused: connect; No available

Recovering WebLogic Passwords

In one of my previous articles ( here ) I explained that the SerializedSystemIni.dat file in WebLogic contains the key used to encrypt and decrypt passwords. If you're not currently keeping this file secure I suggest you do, as with it someone can (to name a few things): Decrypt the WebLogic admin username and password from boot.properties. Recover database passwords, if JDBC Connection pools are configured, from config.xml. Recover the keystore passwords from config.xml and obtain SSL certificates stored in the jks keystores. Essentially, they can do whatever they want, so if you don't know who can read your SerializedSystemIni.dat files, look... now. In this article I will show how easy it is for this file to be used to recover lost passwords via a simple WLST script. The Script The script I use to decrypt passwords is incredibly short, and it works with WebLogic 8, 9 and 10 (probably for version 7 too). To use it, just create a new file called decryptpwd.py and paste the fol