(int start, int end)
| 90 | } |
| 91 | |
| 92 | @Override |
| 93 | public final CharSequence subSequence(int start, int end) { |
| 94 | if (start < 0 || end < start || end > remaining()) { |
| 95 | throw new IndexOutOfBoundsException(); |
| 96 | } |
| 97 | |
| 98 | CharBuffer result = duplicate(); |
| 99 | result.limit(position + end); |
| 100 | result.position(position + start); |
| 101 | return result; |
| 102 | } |
| 103 | |
| 104 | @Override |
| 105 | public final String toString() { |