Lines Matching refs:CharBuffer
24 import java.nio.CharBuffer;
29 * Tests java.nio.CharBuffer
37 protected CharBuffer buf;
44 buf = CharBuffer.wrap(charscopy);
93 CharBuffer readonly = buf.asReadOnlyBuffer();
142 CharBuffer ret = buf.compact();
194 CharBuffer other = CharBuffer.allocate(buf.capacity());
221 CharBuffer duplicate = buf.duplicate();
279 CharBuffer readonly = buf.asReadOnlyBuffer();
281 CharBuffer duplicate = buf.duplicate();
316 * Class under test for java.nio.CharBuffer get(char[])
323 CharBuffer ret = buf.get(array);
336 * Class under test for java.nio.CharBuffer get(char[], int, int)
396 CharBuffer ret = buf.get(array, 0, array.length);
428 CharBuffer readonly = buf.asReadOnlyBuffer();
429 CharBuffer duplicate = buf.duplicate();
437 * Class under test for java.nio.CharBuffer put(char)
443 CharBuffer ret = buf.put((char) i);
456 * Class under test for java.nio.CharBuffer put(char[])
465 CharBuffer ret = buf.put(array);
484 * Class under test for java.nio.CharBuffer put(char[], int, int)
549 CharBuffer ret = buf.put(array, 0, array.length);
556 * Class under test for java.nio.CharBuffer put(java.nio.CharBuffer)
559 CharBuffer other = CharBuffer.allocate(buf.capacity());
562 buf.put((CharBuffer) null);
574 buf.put(CharBuffer.allocate(buf.capacity() + 1));
581 buf.put((CharBuffer)null);
590 CharBuffer ret = buf.put(other);
598 * Class under test for java.nio.CharBuffer put(int, char)
604 CharBuffer ret = buf.put(i, (char) i);
627 CharBuffer slice = buf.slice();
724 CharBuffer ret = buf.put(str);
747 // CharBuffer
802 CharBuffer ret = buf.put(str, 0, str.length());
820 void loadTestData1(CharBuffer buf) {
827 void loadTestData2(CharBuffer buf) {
834 private void assertContentEquals(CharBuffer buf, char array[], int offset,
841 private void assertContentEquals(CharBuffer buf, CharBuffer other) {
848 private void assertContentLikeTestData1(CharBuffer buf, int startIndex,
858 CharBuffer cb = CharBuffer.allocate(10);
859 CharBuffer cb2 = cb.duplicate();
884 CharBuffer cb = CharBuffer.allocate(1);
908 CharBuffer cb = CharBuffer.wrap("ABCDE").asReadOnlyBuffer();
932 CharBuffer cb = CharBuffer.allocate(2);
939 CharBuffer cb = CharBuffer.allocate(10);
948 CharBuffer cb = CharBuffer.allocate(10);
958 CharBuffer cb = CharBuffer.allocate(10);
994 CharBuffer source = CharBuffer.wrap("String");
995 CharBuffer target = CharBuffer.allocate(10);
1011 CharBuffer source = CharBuffer.wrap("String");
1012 CharBuffer target = CharBuffer.allocate(10).asReadOnlyBuffer();
1025 CharBuffer source = CharBuffer.wrap("String");
1026 CharBuffer target = CharBuffer.allocate(1);
1033 CharBuffer source = CharBuffer.wrap("abuffer");
1044 CharBuffer charBuffer = CharBuffer.wrap(charArray);
1046 charBuffer.read(charBuffer);
1051 charBuffer.put(charArray);
1052 assertEquals(-1, charBuffer.read(charBuffer));
1056 CharBuffer charBufferA = CharBuffer.allocate(0);
1057 CharBuffer allocateBuffer = CharBuffer.allocate(1);
1058 CharBuffer charBufferB = CharBuffer.wrap(allocateBuffer);
1062 charBufferB = CharBuffer.wrap(allocateBuffer);