openUri static method
Opens and parses the RAR archive at the specified uri.
Returns a RarFile containing the archive entries. Throws a RarException if parsing or opening fails.
Implementation
static Future<RarFileImpl> openUri(Uri uri) async {
try {
return openFile(File.fromUri(uri));
} catch (e, stackTrace) {
// Log exceptions to the console in accordance with exception guidelines
stderr.writeln('Error opening RAR URI "$uri": $e\n$stackTrace');
if (e is RarException) {
rethrow;
}
throw RarException('Failed to open RAR URI: $uri', e);
}
}