public static void SaveTo <TEntry, TVolume>(this AbstractWritableArchive <TEntry, TVolume> writableArchive,
                                             string filePath, CompressionInfo compressionInfo)
     where TEntry : IArchiveEntry
     where TVolume : IVolume
 {
     writableArchive.SaveTo(new FileInfo(filePath), compressionInfo);
 }
        public static void SaveTo <TEntry, TVolume>(this AbstractWritableArchive <TEntry, TVolume> writableArchive, Stream stream, CompressionType compressionType) where TEntry : IArchiveEntry where TVolume : IVolume
        {
            CompressionInfo info = new CompressionInfo {
                Type = compressionType
            };

            writableArchive.SaveTo(stream, info);
        }
 public static void SaveTo <TEntry, TVolume>(this AbstractWritableArchive <TEntry, TVolume> writableArchive,
                                             FileInfo fileInfo, CompressionInfo compressionInfo)
     where TEntry : IArchiveEntry
     where TVolume : IVolume
 {
     using (var stream = fileInfo.Open(FileMode.Create, FileAccess.Write))
     {
         writableArchive.SaveTo(stream, compressionInfo);
     }
 }