FileDocCategorySizeDatePackage
ReadOnlyLongArrayBuffer.javaAPI DocAndroid 1.5 API2846Wed May 06 22:41:04 BST 2009java.nio

ReadOnlyLongArrayBuffer

public final class ReadOnlyLongArrayBuffer extends LongArrayBuffer
LongArrayBuffer, ReadWriteLongArrayBuffer and ReadOnlyLongArrayBuffer compose the implementation of array based long buffers.

ReadOnlyLongArrayBuffer extends LongArrayBuffer with all the write methods throwing read only exception.

This class is marked final for runtime performance.

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

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

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

        throw new ReadOnlyBufferException();
    
static java.nio.ReadOnlyLongArrayBuffercopy(LongArrayBuffer other, int markOfOther)

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

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

        return true;
    
protected long[]protectedArray()

        throw new ReadOnlyBufferException();
    
protected intprotectedArrayOffset()

        throw new ReadOnlyBufferException();
    
protected booleanprotectedHasArray()

        return false;
    
public java.nio.LongBufferput(long c)

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

        throw new ReadOnlyBufferException();
    
public java.nio.LongBufferput(java.nio.LongBuffer buf)

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

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

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