public CharBuffer(String string){
  int length=string.length();
  int capacity=length + MIN_CAPACITY;
  init(new char[capacity],0,length);
  string.getChars(0,length,buffer(),0);
}

public CharBuffer ( String string ) { int length = string . length ( ) ; int capacity = length + MIN_CAPACITY ; init ( new char [ capacity ] , 0 , length ) ; string . getChars ( 0 , length , buffer ( ) , 0 ) ; }
constructs a char buffer with the given initial string
