Methods Summary |
---|
public java.nio.CharBuffer | asReadOnlyBuffer()
return duplicate();
|
public java.nio.CharBuffer | compact()
throw new ReadOnlyBufferException();
|
static java.nio.ReadOnlyCharArrayBuffer | copy(CharArrayBuffer other, int markOfOther)
ReadOnlyCharArrayBuffer buf = new ReadOnlyCharArrayBuffer(other
.capacity(), other.backingArray, other.offset);
buf.limit = other.limit();
buf.position = other.position();
buf.mark = markOfOther;
return buf;
|
public java.nio.CharBuffer | duplicate()
return copy(this, mark);
|
public boolean | isReadOnly()
return true;
|
protected char[] | protectedArray()
throw new ReadOnlyBufferException();
|
protected int | protectedArrayOffset()
throw new ReadOnlyBufferException();
|
protected boolean | protectedHasArray()
return false;
|
public java.nio.CharBuffer | put(char c)
throw new ReadOnlyBufferException();
|
public java.nio.CharBuffer | put(int index, char c)
throw new ReadOnlyBufferException();
|
public final java.nio.CharBuffer | put(char[] src, int off, int len)
throw new ReadOnlyBufferException();
|
public final java.nio.CharBuffer | put(java.nio.CharBuffer src)
throw new ReadOnlyBufferException();
|
public java.nio.CharBuffer | put(java.lang.String src, int start, int end)
if ((start < 0 ) || (end < 0) || (long)start + (long)end > src.length()) {
throw new IndexOutOfBoundsException();
}
throw new ReadOnlyBufferException();
|
public java.nio.CharBuffer | slice()
return new ReadOnlyCharArrayBuffer(remaining(), backingArray, offset
+ position);
|