Methods Summary |
---|
public java.nio.ByteBuffer | asReadOnlyBuffer()
return copy(this, mark);
|
public java.nio.ByteBuffer | compact()
throw new ReadOnlyBufferException();
|
static java.nio.ReadOnlyDirectByteBuffer | copy(java.nio.DirectByteBuffer other, int markOfOther)
ReadOnlyDirectByteBuffer buf = new ReadOnlyDirectByteBuffer(
other.safeAddress, other.capacity(), other.offset);
buf.limit = other.limit();
buf.position = other.position();
buf.mark = markOfOther;
buf.order(other.order());
return buf;
|
public java.nio.ByteBuffer | duplicate()
return copy(this, mark);
|
public boolean | isReadOnly()
return true;
|
public java.nio.ByteBuffer | put(byte[] src, int off, int len)
throw new ReadOnlyBufferException();
|
public java.nio.ByteBuffer | put(java.nio.ByteBuffer buf)
throw new ReadOnlyBufferException();
|
public java.nio.ByteBuffer | put(byte value)
throw new ReadOnlyBufferException();
|
public java.nio.ByteBuffer | put(int index, byte value)
throw new ReadOnlyBufferException();
|
public java.nio.ByteBuffer | putDouble(double value)
throw new ReadOnlyBufferException();
|
public java.nio.ByteBuffer | putDouble(int index, double value)
throw new ReadOnlyBufferException();
|
public java.nio.ByteBuffer | putFloat(float value)
throw new ReadOnlyBufferException();
|
public java.nio.ByteBuffer | putFloat(int index, float value)
throw new ReadOnlyBufferException();
|
public java.nio.ByteBuffer | putInt(int value)
throw new ReadOnlyBufferException();
|
public java.nio.ByteBuffer | putInt(int index, int value)
throw new ReadOnlyBufferException();
|
public java.nio.ByteBuffer | putLong(int index, long value)
throw new ReadOnlyBufferException();
|
public java.nio.ByteBuffer | putLong(long value)
throw new ReadOnlyBufferException();
|
public java.nio.ByteBuffer | putShort(int index, short value)
throw new ReadOnlyBufferException();
|
public java.nio.ByteBuffer | putShort(short value)
throw new ReadOnlyBufferException();
|
public java.nio.ByteBuffer | slice()
ReadOnlyDirectByteBuffer buf = new ReadOnlyDirectByteBuffer(
safeAddress, remaining(), offset + position);
buf.order = order;
return buf;
|