IZipClient.cs 3.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  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. /// <summary>
  38. /// Extracts all from tar.
  39. /// </summary>
  40. /// <param name="sourceFile">The source file.</param>
  41. /// <param name="targetPath">The target path.</param>
  42. /// <param name="overwriteExistingFiles">if set to <c>true</c> [overwrite existing files].</param>
  43. void ExtractAllFromTar(string sourceFile, string targetPath, bool overwriteExistingFiles);
  44. /// <summary>
  45. /// Extracts all from tar.
  46. /// </summary>
  47. /// <param name="source">The source.</param>
  48. /// <param name="targetPath">The target path.</param>
  49. /// <param name="overwriteExistingFiles">if set to <c>true</c> [overwrite existing files].</param>
  50. void ExtractAllFromTar(Stream source, string targetPath, bool overwriteExistingFiles);
  51. /// <summary>
  52. /// Extracts all from rar.
  53. /// </summary>
  54. /// <param name="sourceFile">The source file.</param>
  55. /// <param name="targetPath">The target path.</param>
  56. /// <param name="overwriteExistingFiles">if set to <c>true</c> [overwrite existing files].</param>
  57. void ExtractAllFromRar(string sourceFile, string targetPath, bool overwriteExistingFiles);
  58. /// <summary>
  59. /// Extracts all from rar.
  60. /// </summary>
  61. /// <param name="source">The source.</param>
  62. /// <param name="targetPath">The target path.</param>
  63. /// <param name="overwriteExistingFiles">if set to <c>true</c> [overwrite existing files].</param>
  64. void ExtractAllFromRar(Stream source, string targetPath, bool overwriteExistingFiles);
  65. }
  66. }