FileDocCategorySizeDatePackage
ByteBufferAsShortBufferRL.javaAPI DocJava SE 5 API1936Fri Aug 26 16:50:16 BST 2005java.nio

ByteBufferAsShortBufferRL

public class ByteBufferAsShortBufferRL extends ByteBufferAsShortBufferL

Fields Summary
Constructors Summary
ByteBufferAsShortBufferRL(ByteBuffer bb)

	// package-private












	super(bb);

    
ByteBufferAsShortBufferRL(ByteBuffer bb, int mark, int pos, int lim, int cap, int off)






	super(bb, mark, pos, lim, cap, off);

    
Methods Summary
public java.nio.ShortBufferasReadOnlyBuffer()









	return duplicate();

    
public java.nio.ShortBuffercompact()

















	throw new ReadOnlyBufferException();

    
public java.nio.ShortBufferduplicate()

	return new ByteBufferAsShortBufferRL(bb,
						    this.markValue(),
						    this.position(),
						    this.limit(),
						    this.capacity(),
						    offset);
    
public booleanisDirect()

	return bb.isDirect();
    
public booleanisReadOnly()

	return true;
    
public java.nio.ByteOrderorder()





	return ByteOrder.LITTLE_ENDIAN;

    
public java.nio.ShortBufferput(short x)





	throw new ReadOnlyBufferException();

    
public java.nio.ShortBufferput(int i, short x)





	throw new ReadOnlyBufferException();

    
public java.nio.ShortBufferslice()

	int pos = this.position();
	int lim = this.limit();
	assert (pos <= lim);
	int rem = (pos <= lim ? lim - pos : 0);
	int off = (pos << 1) + offset;
        assert (off >= 0);
	return new ByteBufferAsShortBufferRL(bb, -1, 0, rem, rem, off);