FileDocCategorySizeDatePackage
ReadOnlyDoubleArrayBuffer.javaAPI DocAndroid 1.5 API2932Wed May 06 22:41:04 BST 2009java.nio

ReadOnlyDoubleArrayBuffer

public final class ReadOnlyDoubleArrayBuffer extends DoubleArrayBuffer
DoubleArrayBuffer, ReadWriteDoubleArrayBuffer and ReadOnlyDoubleArrayBuffer compose the implementation of array based double buffers.

ReadOnlyDoubleArrayBuffer extends DoubleArrayBuffer with all the write methods throwing read only exception.

This class is marked final for runtime performance.

Fields Summary
Constructors Summary
ReadOnlyDoubleArrayBuffer(int capacity, double[] backingArray, int arrayOffset)

        super(capacity, backingArray, arrayOffset);
    
Methods Summary
public java.nio.DoubleBufferasReadOnlyBuffer()

        return duplicate();
    
public java.nio.DoubleBuffercompact()

        throw new ReadOnlyBufferException();
    
static java.nio.ReadOnlyDoubleArrayBuffercopy(DoubleArrayBuffer other, int markOfOther)

        ReadOnlyDoubleArrayBuffer buf = new ReadOnlyDoubleArrayBuffer(other
                .capacity(), other.backingArray, other.offset);
        buf.limit = other.limit();
        buf.position = other.position();
        buf.mark = markOfOther;
        return buf;
    
public java.nio.DoubleBufferduplicate()

        return copy(this, mark);
    
public booleanisReadOnly()

        return true;
    
protected double[]protectedArray()

        throw new ReadOnlyBufferException();
    
protected intprotectedArrayOffset()

        throw new ReadOnlyBufferException();
    
protected booleanprotectedHasArray()

        return false;
    
public java.nio.DoubleBufferput(double c)

        throw new ReadOnlyBufferException();
    
public java.nio.DoubleBufferput(int index, double c)

        throw new ReadOnlyBufferException();
    
public final java.nio.DoubleBufferput(double[] src, int off, int len)

        throw new ReadOnlyBufferException();
    
public final java.nio.DoubleBufferput(java.nio.DoubleBuffer buf)

        throw new ReadOnlyBufferException();
    
public java.nio.DoubleBufferslice()

        return new ReadOnlyDoubleArrayBuffer(remaining(), backingArray, offset
                + position);