public String consumeToAny(String... seq){
  int start=pos;
  while (!isEmpty() && !matchesAny(seq)) {
    pos++;
  }
  String data=queue.substring(start,pos);
  return data;
}

public String consumeToAny ( String ... seq ) { int start = pos ; while ( ! isEmpty ( ) && ! matchesAny ( seq ) ) { pos ++ ; } String data = queue . substring ( start , pos ) ; return data ; }
consumes to the first sequence provided , or to the end of the queue . leaves the terminator on the queue .
