public void appendAndClearPending(String s){
  output.append(s);
  complete=current;
}

public void appendAndClearPending ( String s ) { output . append ( s ) ; complete = current ; }
append a string to the output and clear pending bytes .
