mirror of
				https://github.com/jellyfin/jellyfin.git
				synced 2025-11-04 03:27:21 -05:00 
			
		
		
		
	
		
			
				
	
	
		
			83 lines
		
	
	
		
			3.7 KiB
		
	
	
	
		
			C#
		
	
	
	
	
	
			
		
		
	
	
			83 lines
		
	
	
		
			3.7 KiB
		
	
	
	
		
			C#
		
	
	
	
	
	
using System.IO;
 | 
						|
 | 
						|
namespace MediaBrowser.Model.IO
 | 
						|
{
 | 
						|
    /// <summary>
 | 
						|
    /// Interface IZipClient
 | 
						|
    /// </summary>
 | 
						|
    public interface IZipClient
 | 
						|
    {
 | 
						|
        /// <summary>
 | 
						|
        /// Extracts all.
 | 
						|
        /// </summary>
 | 
						|
        /// <param name="sourceFile">The source file.</param>
 | 
						|
        /// <param name="targetPath">The target path.</param>
 | 
						|
        /// <param name="overwriteExistingFiles">if set to <c>true</c> [overwrite existing files].</param>
 | 
						|
        void ExtractAll(string sourceFile, string targetPath, bool overwriteExistingFiles);
 | 
						|
 | 
						|
        /// <summary>
 | 
						|
        /// Extracts all.
 | 
						|
        /// </summary>
 | 
						|
        /// <param name="source">The source.</param>
 | 
						|
        /// <param name="targetPath">The target path.</param>
 | 
						|
        /// <param name="overwriteExistingFiles">if set to <c>true</c> [overwrite existing files].</param>
 | 
						|
        void ExtractAll(Stream source, string targetPath, bool overwriteExistingFiles);
 | 
						|
 | 
						|
        /// <summary>
 | 
						|
        /// Extracts all from zip.
 | 
						|
        /// </summary>
 | 
						|
        /// <param name="source">The source.</param>
 | 
						|
        /// <param name="targetPath">The target path.</param>
 | 
						|
        /// <param name="overwriteExistingFiles">if set to <c>true</c> [overwrite existing files].</param>
 | 
						|
        void ExtractAllFromZip(Stream source, string targetPath, bool overwriteExistingFiles);
 | 
						|
 | 
						|
        /// <summary>
 | 
						|
        /// Extracts all from7z.
 | 
						|
        /// </summary>
 | 
						|
        /// <param name="sourceFile">The source file.</param>
 | 
						|
        /// <param name="targetPath">The target path.</param>
 | 
						|
        /// <param name="overwriteExistingFiles">if set to <c>true</c> [overwrite existing files].</param>
 | 
						|
        void ExtractAllFrom7z(string sourceFile, string targetPath, bool overwriteExistingFiles);
 | 
						|
 | 
						|
        /// <summary>
 | 
						|
        /// Extracts all from7z.
 | 
						|
        /// </summary>
 | 
						|
        /// <param name="source">The source.</param>
 | 
						|
        /// <param name="targetPath">The target path.</param>
 | 
						|
        /// <param name="overwriteExistingFiles">if set to <c>true</c> [overwrite existing files].</param>
 | 
						|
        void ExtractAllFrom7z(Stream source, string targetPath, bool overwriteExistingFiles);
 | 
						|
 | 
						|
        /// <summary>
 | 
						|
        /// Extracts all from tar.
 | 
						|
        /// </summary>
 | 
						|
        /// <param name="sourceFile">The source file.</param>
 | 
						|
        /// <param name="targetPath">The target path.</param>
 | 
						|
        /// <param name="overwriteExistingFiles">if set to <c>true</c> [overwrite existing files].</param>
 | 
						|
        void ExtractAllFromTar(string sourceFile, string targetPath, bool overwriteExistingFiles);
 | 
						|
 | 
						|
        /// <summary>
 | 
						|
        /// Extracts all from tar.
 | 
						|
        /// </summary>
 | 
						|
        /// <param name="source">The source.</param>
 | 
						|
        /// <param name="targetPath">The target path.</param>
 | 
						|
        /// <param name="overwriteExistingFiles">if set to <c>true</c> [overwrite existing files].</param>
 | 
						|
        void ExtractAllFromTar(Stream source, string targetPath, bool overwriteExistingFiles);
 | 
						|
 | 
						|
        /// <summary>
 | 
						|
        /// Extracts all from rar.
 | 
						|
        /// </summary>
 | 
						|
        /// <param name="sourceFile">The source file.</param>
 | 
						|
        /// <param name="targetPath">The target path.</param>
 | 
						|
        /// <param name="overwriteExistingFiles">if set to <c>true</c> [overwrite existing files].</param>
 | 
						|
        void ExtractAllFromRar(string sourceFile, string targetPath, bool overwriteExistingFiles);
 | 
						|
 | 
						|
        /// <summary>
 | 
						|
        /// Extracts all from rar.
 | 
						|
        /// </summary>
 | 
						|
        /// <param name="source">The source.</param>
 | 
						|
        /// <param name="targetPath">The target path.</param>
 | 
						|
        /// <param name="overwriteExistingFiles">if set to <c>true</c> [overwrite existing files].</param>
 | 
						|
        void ExtractAllFromRar(Stream source, string targetPath, bool overwriteExistingFiles);
 | 
						|
    }
 | 
						|
}
 |