read static method

Future<Tag> read(
  1. String file
)

Implementation

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