// Path: src/java/com/idega/block/importer/business/NoRecordsException.java
// public class NoRecordsException extends RuntimeException {
// 
//   public NoRecordsException() {
//     super();
//   }
// 
//   public NoRecordsException(String explanation){
//     super(explanation);
//   }
// 
// }


import java.io.BufferedReader;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.FileReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.ArrayList;
import java.util.Collection;
import java.util.StringTokenizer;
import com.idega.block.importer.business.NoRecordsException;
import com.idega.util.Timer;
import com.idega.util.text.TextSoap;
				buf.append(line);

				/** @todo this should be an option with a setMethod? **/
				if (this.addNewLineAfterRecord) {
					buf.append('\n');
				}

				if (line.indexOf(getRecordDilimiter()) != -1) {
					records++;
					if ((records % 1000) == 0) {
						System.out.println("Importer: Reading record nr.: " + records + " from file " + getFile().getName());
					}

					list.add(buf.toString());
					buf = null;
				}

				cnt++;
			}

			line = null;
			buf = null;

			this.br.close();
			this.fr = null;
			this.br = null;

			clock.stop();

			if (records == 0) {
// Path: src/java/com/idega/block/importer/business/NoRecordsException.java
// public class NoRecordsException extends RuntimeException {
// 
//   public NoRecordsException() {
//     super();
//   }
// 
//   public NoRecordsException(String explanation){
//     super(explanation);
//   }
// 
// }


// Path: src/java/com/idega/block/importer/data/GenericImportFile.java
import java.io.BufferedReader;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.FileReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.ArrayList;
import java.util.Collection;
import java.util.StringTokenizer;
import com.idega.block.importer.business.NoRecordsException;
import com.idega.util.Timer;
import com.idega.util.text.TextSoap;

				buf.append(line);

				/** @todo this should be an option with a setMethod? **/
				if (this.addNewLineAfterRecord) {
					buf.append('\n');
				}

				if (line.indexOf(getRecordDilimiter()) != -1) {
					records++;
					if ((records % 1000) == 0) {
						System.out.println("Importer: Reading record nr.: " + records + " from file " + getFile().getName());
					}

					list.add(buf.toString());
					buf = null;
				}

				cnt++;
			}

			line = null;
			buf = null;

			this.br.close();
			this.fr = null;
			this.br = null;

			clock.stop();

			if (records == 0) {
				throw new NoRecordsException("No records where found in the selected file" + this.file.getAbsolutePath());