Code example for LineNumberReader

Methods: close

0
	} 
 
	protected void finalize() throws Throwable { 
		try { 
			if (lineReader!= null)
				lineReader.close();
		} 
		catch (IOException e) {
    		throw new IllegalStateException(e);
		} 
	} 
 
	public Iterator<String> iterator() {
		return new FileIterator(); 
	} 
 
	class FileIterator implements Iterator<String> {
 
		private boolean hasNext = true;
 
		public boolean hasNext() {