read static method

Future<CompoundTag> read(
  1. String file
)

Implementation

static Future<CompoundTag> read(String file) async {
  await _read(file);
  if (_io.readByte() == TagType.Compound.byte) {
    _io.resetPosition();
    return Tag.readNamedTag(_io) as CompoundTag;
  } else {
    // Is likely gzip compressed
    return readCompressed(file);
  }
}