2
0

IZipClient.cs 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. using System.IO;
  2. namespace MediaBrowser.Model.IO
  3. {
  4. /// <summary>
  5. /// Interface IZipClient
  6. /// </summary>
  7. public interface IZipClient
  8. {
  9. /// <summary>
  10. /// Extracts all.
  11. /// </summary>
  12. /// <param name="sourceFile">The source file.</param>
  13. /// <param name="targetPath">The target path.</param>
  14. /// <param name="overwriteExistingFiles">if set to <c>true</c> [overwrite existing files].</param>
  15. void ExtractAll(string sourceFile, string targetPath, bool overwriteExistingFiles);
  16. /// <summary>
  17. /// Extracts all.
  18. /// </summary>
  19. /// <param name="source">The source.</param>
  20. /// <param name="targetPath">The target path.</param>
  21. /// <param name="overwriteExistingFiles">if set to <c>true</c> [overwrite existing files].</param>
  22. void ExtractAll(Stream source, string targetPath, bool overwriteExistingFiles);
  23. /// <summary>
  24. /// Extracts all from7z.
  25. /// </summary>
  26. /// <param name="sourceFile">The source file.</param>
  27. /// <param name="targetPath">The target path.</param>
  28. /// <param name="overwriteExistingFiles">if set to <c>true</c> [overwrite existing files].</param>
  29. void ExtractAllFrom7z(string sourceFile, string targetPath, bool overwriteExistingFiles);
  30. /// <summary>
  31. /// Extracts all from7z.
  32. /// </summary>
  33. /// <param name="source">The source.</param>
  34. /// <param name="targetPath">The target path.</param>
  35. /// <param name="overwriteExistingFiles">if set to <c>true</c> [overwrite existing files].</param>
  36. void ExtractAllFrom7z(Stream source, string targetPath, bool overwriteExistingFiles);
  37. }
  38. }