src/main/java/org/jsoup/parser/TokenQueue.java
/**
     * Consumes the supplied sequence of the queue. If the queue does not start with the supplied sequence, will
     * throw an illegal state exception -- but you should be running match() against that condition.
     <p>
     Case insensitive.
     * @param seq sequence to remove from head of queue.
     */
Consumes the supplied sequence of the queue. If the queue does not start with the supplied sequence, will
throw an illegal state exception -- but you should be running match() against that condition.

Case insensitive.
@param seq sequence to remove from head of queue.
Consumes the supplied sequence of the queue . If the queue does not start with the supplied sequence will throw an illegal state exception -- but you should be running match () against that condition . Case insensitive . @param seq sequence to remove from head of queue .
public void consume(String seq) {
        if (!matches(seq))
            throw new IllegalStateException("Queue did not match expected sequence");
        int len = seq.length();
        if (len > queue.size())
            throw new IllegalStateException("Queue not long enough to consume sequence");
        for (int i = 0; i < len; i++) {
            consume();
        }
    }
public void consume ( String seq ) { if ( ! matches ( seq ) ) throw new IllegalStateException ( "Queue did not match expected sequence" ) ; int len = seq . length ( ) ; if ( len > queue . size ( ) ) throw new IllegalStateException ( "Queue not long enough to consume sequence" ) ; for ( int i = 0 ; i < len ; i ++ ) { consume ( ) ; } }
Consumes the supplied sequence of the queue.
Consumes the supplied sequence of the queue .