2019-07-01 21:44:19 +02:00
|
|
|
|
using System;
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using System.Linq;
|
|
|
|
|
using System.Text;
|
|
|
|
|
using System.Threading.Tasks;
|
|
|
|
|
using System.IO;
|
|
|
|
|
|
2019-07-16 23:35:21 +02:00
|
|
|
|
namespace Toolbox.Library
|
2019-07-01 21:44:19 +02:00
|
|
|
|
{
|
|
|
|
|
public interface ICompressionFormat
|
|
|
|
|
{
|
|
|
|
|
string[] Description { get; set; }
|
|
|
|
|
string[] Extension { get; set; }
|
|
|
|
|
|
2019-09-16 01:13:01 +02:00
|
|
|
|
bool Identify(Stream stream, string fileName);
|
2019-07-01 21:44:19 +02:00
|
|
|
|
bool CanCompress { get; }
|
|
|
|
|
|
|
|
|
|
Stream Decompress(Stream stream);
|
|
|
|
|
Stream Compress(Stream stream);
|
|
|
|
|
}
|
|
|
|
|
}
|