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