Beispiel #1
0
 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();
     }
   }
 }
Beispiel #2
0
 public static List<String> statementsFrom(Reader reader) throws IOException {
   SQLFile file = new SQLFile();
   file.parse(reader);
   return file.getStatements();
 }