public boolean startsWith(final String str){
  if (str == null) {
    return false;
  }
  final int len=str.length();
  if (len == 0) {
    return true;
  }
  if (len > size) {
    return false;
  }
  for (int i=0; i < len; i++) {
    if (buffer[i] != str.charAt(i)) {
      return false;
    }
  }
  return true;
}

public boolean startsWith ( final String str ) { if ( str == null ) { return false ; } final int len = str . length ( ) ; if ( len == 0 ) { return true ; } if ( len > size ) { return false ; } for ( int i = 0 ; i < len ; i ++ ) { if ( buffer [ i ] != str . charAt ( i ) ) { return false ; } } return true ; }
checks whether this builder starts with the specified string . < p > note that this method handles null input quietly , unlike string .
