public Table() throws SQLException, ClassNotFoundException{
	String datePattern="\\d\\d\\d\\d-\\d\\d-\\d\\d \\d\\d:\\d\\d:\\d\\d,\\d\\d\\d";
	String date="";
	int i=0;
	try {
		s=new Scanner(f);
		while (s.hasNextLine()) {
			object = s.nextLine().trim();
			if(object.contains("ERROR")){
				reqString=object;
//			System.out.println("adding "+reqString);
//			System.out.println(datePattern);
			Pattern p = Pattern.compile(datePattern);
			Matcher m = p.matcher(reqString);
			
			date = "";
//			 System.out.println("datePattern is " + m.pattern());
			while (m.find()) {
//				 System.out.println(m.start() + ">>" + m.group());
				date = m.group();
				break;
			}
			if (date == "")
				continue;
			i++;
//			if(i>100)break;
			HashMap temp=new HashMap();
//			System.out.println("putting :: "+date+" :: & :: "+reqString);
			temp.put(date, reqString);
			map.put(i,temp);
//			System.out.println(map.get(i));
			}
		}
	} catch (Exception e) {
		e.printStackTrace();
	}

	row=map.keySet().size();
        System.out.println("rows "+row);

        colName=new String []{"date","level","message"};
        col=colName.length;
	data=new Object[row][col];
	int j=0,k=0;
	Object b;
        
	for (Iterator iterator = map.keySet().iterator(); iterator.hasNext();) {
		Integer type = (Integer) iterator.next();
		date=map.get(type).keySet().toArray()[0].toString();
//		reqString=map.get(type).get(map.get(type).keySet().toArray()[0]);
		for(int l=1;l<=col;l++){
			k=l;
			k--;
			if(k==0){
				data[j][k]=date;
//				System.out.println(date);
			}
			else if(k==1){
				data[j][k]="ERROR";
			}
			else{
			data[j][k]=reqString;
//			System.out.println(reqString);
			}
//			System.out.println(j+" "+k+" "+b);
		}j++;
	}
}