FileDocCategorySizeDatePackage
ByteBufferAsFloatBufferRB.javaAPI DocJava SE 5 API1933Fri Aug 26 16:50:02 BST 2005java.nio

ByteBufferAsFloatBufferRB

public class ByteBufferAsFloatBufferRB extends ByteBufferAsFloatBufferB

Fields Summary
Constructors Summary
ByteBufferAsFloatBufferRB(ByteBuffer bb)

	// package-private












	super(bb);

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






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

    
Methods Summary
public java.nio.FloatBufferasReadOnlyBuffer()









	return duplicate();

    
public java.nio.FloatBuffercompact()

















	throw new ReadOnlyBufferException();

    
public java.nio.FloatBufferduplicate()

	return new ByteBufferAsFloatBufferRB(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.FloatBufferput(float x)





	throw new ReadOnlyBufferException();

    
public java.nio.FloatBufferput(int i, float x)





	throw new ReadOnlyBufferException();

    
public java.nio.FloatBufferslice()

	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 ByteBufferAsFloatBufferRB(bb, -1, 0, rem, rem, off);