示例#1
0
 /// <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));
     }
 }
示例#2
0
        /// <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);
        }
示例#3
0
 internal XflArchiveEntry(XflArchive archive)
 {
     Archive = archive;
 }