FileDocCategorySizeDatePackage
ByteBufferAsLongBufferRB.javaAPI DocJava SE 5 API1919Fri Aug 26 16:49:58 BST 2005java.nio

ByteBufferAsLongBufferRB

public class ByteBufferAsLongBufferRB extends ByteBufferAsLongBufferB

Fields Summary
Constructors Summary
ByteBufferAsLongBufferRB(ByteBuffer bb)

	// package-private












	super(bb);

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






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

    
Methods Summary
public java.nio.LongBufferasReadOnlyBuffer()









	return duplicate();

    
public java.nio.LongBuffercompact()

















	throw new ReadOnlyBufferException();

    
public java.nio.LongBufferduplicate()

	return new ByteBufferAsLongBufferRB(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.LongBufferput(long x)





	throw new ReadOnlyBufferException();

    
public java.nio.LongBufferput(int i, long x)





	throw new ReadOnlyBufferException();

    
public java.nio.LongBufferslice()

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