FileDocCategorySizeDatePackage
ReadOnlyIntArrayBuffer.javaAPI DocAndroid 1.5 API2818Wed May 06 22:41:04 BST 2009java.nio

ReadOnlyIntArrayBuffer

public final class ReadOnlyIntArrayBuffer extends IntArrayBuffer
IntArrayBuffer, ReadWriteIntArrayBuffer and ReadOnlyIntArrayBuffer compose the implementation of array based int buffers.

ReadOnlyIntArrayBuffer extends IntArrayBuffer with all the write methods throwing read only exception.

This class is marked final for runtime performance.

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

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

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

        throw new ReadOnlyBufferException();
    
static java.nio.ReadOnlyIntArrayBuffercopy(IntArrayBuffer other, int markOfOther)

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

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

        return true;
    
protected int[]protectedArray()

        throw new ReadOnlyBufferException();
    
protected intprotectedArrayOffset()

        throw new ReadOnlyBufferException();
    
protected booleanprotectedHasArray()

        return false;
    
public java.nio.IntBufferput(int c)

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

        throw new ReadOnlyBufferException();
    
public java.nio.IntBufferput(java.nio.IntBuffer buf)

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

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

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