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

ReadOnlyShortArrayBuffer

public final class ReadOnlyShortArrayBuffer extends ShortArrayBuffer
ShortArrayBuffer, ReadWriteShortArrayBuffer and ReadOnlyShortArrayBuffer compose the implementation of array based short buffers.

ReadOnlyShortArrayBuffer extends ShortArrayBuffer with all the write methods throwing read only exception.

This class is marked final for runtime performance.

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

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

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

        throw new ReadOnlyBufferException();
    
static java.nio.ReadOnlyShortArrayBuffercopy(ShortArrayBuffer other, int markOfOther)

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

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

        return true;
    
protected short[]protectedArray()

        throw new ReadOnlyBufferException();
    
protected intprotectedArrayOffset()

        throw new ReadOnlyBufferException();
    
protected booleanprotectedHasArray()

        return false;
    
public java.nio.ShortBufferput(java.nio.ShortBuffer buf)

        throw new ReadOnlyBufferException();
    
public java.nio.ShortBufferput(short c)

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

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

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

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