code: public static CompoundTag readFile(String path, boolean compressed, boolean littleEndian) throws IOException {
          return readFile(new File(path), compressed, littleEndian);
      }
docs: Reads the root CompoundTag from the given file.
  
  @param path         Path of the file.
  @param compressed   Whether the NBT file is compressed.
  @param littleEndian Whether the NBT file is little endian.
  @return The read compound tag.
  @throws java.io.IOException If an I/O error occurs.