1 20 25 package com.nilostep.xlsql.database; 26 27 import com.nilostep.xlsql.database.excel.*; 29 30 import java.io.*; 31 32 33 38 public class xlDatabaseFactory { 39 public static xlFolder create(File dir, String type) throws xlException { 40 xlFolder ret = null; 41 42 if (type.equals("xls")) { 43 ret = new xlFolderXls(dir); 44 } else { 47 throw new IllegalArgumentException (); 48 } 49 50 return ret; 51 } 52 } 53 | Popular Tags |