Heap-X-Buffer.java.template revision 2362
#if[rw]
#else[rw]
this.isReadOnly = true;
#if[rw]
#else[rw]
this.isReadOnly = true;
int off)
#if[rw]
#else[rw]
this.isReadOnly = true;
this.remaining(),
this.remaining(),
this.markValue(),
this.position(),
this.limit(),
this.capacity(),
offset);
#if[rw]
this.markValue(),
this.position(),
this.limit(),
this.capacity(),
offset);
#else[rw]
return duplicate();
#if[rw]
protected int ix(int i) {
return i + offset;
throw new BufferUnderflowException();
public boolean isDirect() {
public boolean isReadOnly() {
return {#if[rw]?false:true};
#if[rw]
#else[rw]
throw new ReadOnlyBufferException();
#if[rw]
#else[rw]
throw new ReadOnlyBufferException();
#if[rw]
throw new BufferOverflowException();
#else[rw]
throw new ReadOnlyBufferException();
#if[rw]
if (src == this)
throw new IllegalArgumentException();
if (n > remaining())
throw new BufferOverflowException();
if (n > remaining())
throw new BufferOverflowException();
#else[rw]
throw new ReadOnlyBufferException();
#if[rw]
discardMark();
#else[rw]
throw new ReadOnlyBufferException();
return hb[i];
#if[rw]
hb[i] = b;
#else[rw]
throw new ReadOnlyBufferException();
#if[rw]
public char getChar() {
public char getChar(int i) {
#if[rw]
#else[rw]
throw new ReadOnlyBufferException();
#if[rw]
#else[rw]
throw new ReadOnlyBufferException();
return (bigEndian
size,
size,
off))
size,
size,
off)));
#if[rw]
public short getShort() {
public short getShort(int i) {
#if[rw]
#else[rw]
throw new ReadOnlyBufferException();
#if[rw]
#else[rw]
throw new ReadOnlyBufferException();
return (bigEndian
size,
size,
off))
size,
size,
off)));
#if[rw]
public int getInt() {
public int getInt(int i) {
#if[rw]
#else[rw]
throw new ReadOnlyBufferException();
#if[rw]
#else[rw]
throw new ReadOnlyBufferException();
return (bigEndian
size,
size,
off))
size,
size,
off)));
#if[rw]
public long getLong() {
public long getLong(int i) {
#if[rw]
#else[rw]
throw new ReadOnlyBufferException();
#if[rw]
#else[rw]
throw new ReadOnlyBufferException();
return (bigEndian
size,
size,
off))
size,
size,
off)));
#if[rw]
public float getFloat() {
public float getFloat(int i) {
#if[rw]
#else[rw]
throw new ReadOnlyBufferException();
#if[rw]
#else[rw]
throw new ReadOnlyBufferException();
return (bigEndian
size,
size,
off))
size,
size,
off)));
#if[rw]
public double getDouble() {
public double getDouble(int i) {
#if[rw]
#else[rw]
throw new ReadOnlyBufferException();
#if[rw]
#else[rw]
throw new ReadOnlyBufferException();
return (bigEndian
size,
size,
off))
size,
size,
off)));
#end[byte]
} catch (StringIndexOutOfBoundsException x) {
throw new IndexOutOfBoundsException();
throw new IndexOutOfBoundsException();
capacity(),
offset);
#end[char]
#end[!byte]