FileDocCategorySizeDatePackage
ByteBufferAsIntBufferRB.javaAPI DocJava SE 5 API1905Fri Aug 26 16:49:52 BST 2005java.nio

ByteBufferAsIntBufferRB

public class ByteBufferAsIntBufferRB extends ByteBufferAsIntBufferB

Fields Summary
Constructors Summary
ByteBufferAsIntBufferRB(ByteBuffer bb)

	// package-private












	super(bb);

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






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

    
Methods Summary
public java.nio.IntBufferasReadOnlyBuffer()









	return duplicate();

    
public java.nio.IntBuffercompact()

















	throw new ReadOnlyBufferException();

    
public java.nio.IntBufferduplicate()

	return new ByteBufferAsIntBufferRB(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.BIG_ENDIAN;




    
public java.nio.IntBufferput(int x)





	throw new ReadOnlyBufferException();

    
public java.nio.IntBufferput(int i, int x)





	throw new ReadOnlyBufferException();

    
public java.nio.IntBufferslice()

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