@Override
    protected BufferedReader loadFile(String fileName) throws IOException {
      FileInputStream initStream = null;
      BufferedReader bufferedReader = null;
      initStream = new FileInputStream(fileName);
      bufferedReader = new BufferedReader(new InputStreamReader(initStream, StandardCharsets.UTF_8));
      return bufferedReader;
    }
It is used for processing hiverc file from HiveServer2 side.
service/src/java/org/apache/hive/service/cli/session/HiveSessionImpl.java