read static method
- 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);
}
}