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

BAD_CERTIFICATE - A corrupt or unuseable certificate...

This is a simple symptom-cause-solution blog entry only. I hope these blogs will help fellow administrators.
Symptom
In wls_utc, when trying to test a webservice using SSL, the following error message is received: javax.net.ssl.SSLKeyException: FATAL Alert:BAD_CERTIFICATE - A corrupt or unuseable certificate was received.
If SSL debugging is enabled, the following error also appears in the logs: ExecuteThread: '4' for queue: 'weblogic.kernel.Default (self-tuning)' <1254822672320>>
verification failed because RSA key public exponent [3] is too small
Cause
The certificate encryption is of a weaker strength than expected by newer versions of Java.
Solution
Add the flag "-Dweblogic.security.SSL.allowSmallRSAExponent=true" to the server startup parameters.
References


None.

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 router to destination) is a kind of "catch…

BEASVC.EXE - WebLogic as a Windows Service

I remember the first time I had to work out why WebLogic wouldn't run as a service. It was a frustrating experience. There were no error messages. No Windows error dialog. No console output.

How do you troubleshoot something like this??!!

This short article will show you. For simplicity I'll talk about the node manager, but the same principles apply for running an admin or managed server as a service.

First Steps

First, you still have your server logs. Sure the console output is better, but it's a starting point. Check this log for errors and especially take note of the start up variables such as PATH and CLASSPATH. If the server log isn't being created, that tells you WebLogic probably isn't even being started. (Check that you have a license file if you haven't already.)

Ok, so the logs were no help. The next step is to look at how the service is trying to start WebLogic.

When you install WebLogic as a service, you're really setting up beasvc.exe as the service.…