docs: public boolean hasNext() {
  		if (reader == null)
  			return false;
  		String line;
  		try {
  			line = reader.readLine();
  			if (line == null) return false;
  			if (line.equals("<doc>")) {
  				line = reader.readLine();
  				url = line.replaceAll("^<url>", "");
  				url = url.replaceAll("</url>$", "");
  				line = reader.readLine();
  				docno = line.replaceAll("^<docno>", "");
  				docno = docno.replaceAll("</docno>$", "");
  				line = reader.readLine();
  				contenttitle = line.replaceAll("^<contenttitle>", "");
  				contenttitle = contenttitle.replaceAll("</contenttitle>$", "");
  				line = reader.readLine();
  				content = line;
  				while(!line.endsWith("</content>")){
  					line = reader.readLine();
  					content += line;
  				}
  				content = content.replaceAll("^<content>", "");
  				content = content.replaceAll("</content>$", "");
  			}
  			line = reader.readLine();
  			return true;
  		} catch (IOException e) {
  			e.printStackTrace();
  		}
  		return false;
  	}