public CharBuffer put(char[] src,int srcOffset,int charCount){
  Arrays.checkOffsetAndCount(src.length,srcOffset,charCount);
  if (charCount > remaining()) {
    throw new BufferOverflowException();
  }
  for (int i=srcOffset; i < srcOffset + charCount; ++i) {
    put(src[i]);
  }
  return this;
}

public CharBuffer put ( char [ ] src , int srcOffset , int charCount ) { Arrays . checkOffsetAndCount ( src . length , srcOffset , charCount ) ; if ( charCount > remaining ( ) ) { throw new BufferOverflowException ( ) ; } for ( int i = srcOffset ; i < srcOffset + charCount ; ++ i ) { put ( src [ i ] ) ; } return this ; }
writes chars from the given char array , starting from the specified offset , to the current position and increases the position by the number of chars written .
