private static int syncCharsBuffer(String s){
  int length=s.length();
  if ((charsBuffer == null) || (charsBuffer.length < length)) {
    charsBuffer=s.toCharArray();
  }
 else {
    s.getChars(0,length,charsBuffer,0);
  }
  return length;
}

private static int syncCharsBuffer ( String s ) { int length = s . length ( ) ; if ( ( charsBuffer == null ) || ( charsBuffer . length < length ) ) { charsBuffer = s . toCharArray ( ) ; } else { s . getChars ( 0 , length , charsBuffer , 0 ) ; } return length ; }
fill the character buffer cache . return the buffer length .
