Add File Type and Detectors and Mime Type tools and Refactor Grouping ...
This commit is contained in:
@@ -0,0 +1,18 @@
|
||||
namespace xCommons.Configurations
|
||||
{
|
||||
/// <summary>
|
||||
/// Configuration options for XFileTypeDetector ...
|
||||
/// </summary>
|
||||
public sealed class XFileTypeDetectorConfiguration
|
||||
{
|
||||
/// <summary>
|
||||
/// When true, magic bytes are always read first ...
|
||||
/// </summary>
|
||||
public bool PreferMagicBytes { get; set; } = true;
|
||||
|
||||
/// <summary>
|
||||
/// Number of bytes read from the stream header ...
|
||||
/// </summary>
|
||||
public int HeaderSize { get; set; } = 32;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user