FileDocCategorySizeDatePackage
ReadOnlyFloatArrayBuffer.javaAPI DocAndroid 1.5 API2874Wed May 06 22:41:04 BST 2009java.nio

ReadOnlyFloatArrayBuffer

public final class ReadOnlyFloatArrayBuffer extends FloatArrayBuffer
FloatArrayBuffer, ReadWriteFloatArrayBuffer and ReadOnlyFloatArrayBuffer compose the implementation of array based float buffers.

ReadOnlyFloatArrayBuffer extends FloatArrayBuffer with all the write methods throwing read only exception.

This class is marked final for runtime performance.

Fields Summary
Constructors Summary
ReadOnlyFloatArrayBuffer(int capacity, float[] backingArray, int arrayOffset)

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

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

        throw new ReadOnlyBufferException();
    
static java.nio.ReadOnlyFloatArrayBuffercopy(FloatArrayBuffer other, int markOfOther)

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

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

        return true;
    
protected float[]protectedArray()

        throw new ReadOnlyBufferException();
    
protected intprotectedArrayOffset()

        throw new ReadOnlyBufferException();
    
protected booleanprotectedHasArray()

        return false;
    
public java.nio.FloatBufferput(float c)

        throw new ReadOnlyBufferException();
    
public java.nio.FloatBufferput(int index, float c)

        throw new ReadOnlyBufferException();
    
public java.nio.FloatBufferput(java.nio.FloatBuffer buf)

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

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

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