FileDocCategorySizeDatePackage
BaseByteBuffer.javaAPI DocAndroid 1.5 API2090Wed May 06 22:41:04 BST 2009java.nio

BaseByteBuffer

public abstract class BaseByteBuffer extends ByteBuffer
Serves as the root of other byte buffer impl classes, implements common methods that can be shared by child classes.

Fields Summary
Constructors Summary
protected BaseByteBuffer(int capacity)

        super(capacity);
    
Methods Summary
public final java.nio.CharBufferasCharBuffer()

        return CharToByteBufferAdapter.wrap(this);
    
public final java.nio.DoubleBufferasDoubleBuffer()

        return DoubleToByteBufferAdapter.wrap(this);
    
public final java.nio.FloatBufferasFloatBuffer()

        return FloatToByteBufferAdapter.wrap(this);
    
public final java.nio.IntBufferasIntBuffer()

        return IntToByteBufferAdapter.wrap(this);
    
public final java.nio.LongBufferasLongBuffer()

        return LongToByteBufferAdapter.wrap(this);
    
public final java.nio.ShortBufferasShortBuffer()

        return ShortToByteBufferAdapter.wrap(this);
    
public final chargetChar()

        return (char) getShort();
    
public final chargetChar(int index)

        return (char) getShort(index);
    
public final java.nio.ByteBufferputChar(char value)

        return putShort((short) value);
    
public final java.nio.ByteBufferputChar(int index, char value)

        return putShort(index, (short) value);