public int processFile(String fileName) throws IOException {
    BufferedReader bufferedReader = null;
    try {
      bufferedReader = loadFile(fileName);
      return (processReader(bufferedReader));
    } finally {
      IOUtils.closeStream(bufferedReader);
    }
  }
HiveFileProcessor is used for processing a file consist of Hive executable
statements
common/src/java/org/apache/hadoop/hive/common/cli/HiveFileProcessor.java