public CharBuffer put(String str, int start, int end) {if (start < 0 || end < start || end > str.length()) {throw new IndexOutOfBoundsException("str.length()=" + str.length() +", start=" + start + ", end=" + end);}if (end - start > remaining()) {throw new BufferOverflowException();}for (int i = start; i < end; i++) {put(str.charAt(i));}return this;}
public virtual java.nio.CharBuffer put(string str, int start, int end){if (start < 0 || end < start || end > str.Length){throw new System.IndexOutOfRangeException("str.length()=" + str.Length + ", start="+ start + ", end=" + end);}if (end - start > remaining()){throw new java.nio.BufferOverflowException();}{for (int i = start; i < end; i++){put(str[i]);}}return this;}