pub fn open_file(
path: impl AsRef<Path>,
) -> Result<AbxStreamParser<BufReader<File>>>Expand description
Opens a file and returns an AbxStreamParser over it.
§Errors
Returns AbxError::Io if the file cannot be opened or read, and
AbxError::InvalidMagic or AbxError::UnexpectedEof if it does not start
with MAGIC.
§Examples
let xml = android_abx::open_file("/data/system/packages.xml")?.to_xml()?;