/// <summary> /// Creates an XFL archive from its file representation. /// </summary> /// <param name="path">Location where the file is stored.</param> /// <returns>An instance of XflArchive populated with its files.</returns> public static XflArchive FromFile(string path) { using (var stream = File.OpenRead(path)) { return(XflArchive.FromStream(stream)); } }
/// <summary> /// Creates an XFL archive from its file representation via stream. /// </summary> /// <param name="input">Stream that holds the contents of the archive.</param> /// <returns>An instance of XflArchive populated with its files.</returns> public static XflArchive FromStream(Stream input) { var archive = new XflArchive(); archive.ReadStream(input); return(archive); }
internal XflArchiveEntry(XflArchive archive) { Archive = archive; }