public String rest ( ) { if ( cursor >= str . length ( ) ) throw new ParseException ( "no more data" ) ; String result = str . substring ( cursor ) ; cursor = str . length ( ) ; return result ; }
Returns the rest of the data until the end .