public static List<String> statementsFrom(File sqlfile) throws IOException { FileReader reader = null; try { reader = new FileReader(sqlfile); SQLFile file = new SQLFile(); file.parse(reader); return file.getStatements(); } finally { if (reader != null) { reader.close(); } } }
public static List<String> statementsFrom(Reader reader) throws IOException { SQLFile file = new SQLFile(); file.parse(reader); return file.getStatements(); }