Files
BinaryObjectScanner/BinaryObjectScanner.Interfaces/IExtractable.cs

31 lines
1.1 KiB
C#
Raw Normal View History

2023-03-09 13:48:51 -05:00
using System.IO;
namespace BinaryObjectScanner.Interfaces
{
/// <summary>
/// Mark a file type as being able to be extracted
/// </summary>
public interface IExtractable
{
/// <summary>
/// Scan a file for all internal protections
/// </summary>
/// <param name="file">Path to the input file</param>
/// <returns>Path to extracted files, null on error</returns>
2023-03-09 14:39:26 -05:00
/// <remarks>
/// Ideally, this should just point to the other extract implementation.
/// It is expected that the calling method will provide exception handling.
/// </remarks>
2023-03-09 13:48:51 -05:00
string Extract(string file);
/// <summary>
/// Scan a stream for all internal protections
/// </summary>
/// <param name="stream">Stream representing the input file</param>
/// <param name="file">Path to the input file</param>
/// <returns>Path to extracted files, null on error</returns>
2023-03-09 14:39:26 -05:00
/// <remarks>It is expected that the calling method will provide exception handling.</remarks>
2023-03-09 13:48:51 -05:00
string Extract(Stream stream, string file);
}
}