Class S3FileTypeDetector
- Namespace
- Datafication.Connectors.S3Connector
- Assembly
- Datafication.S3Connector.dll
Detects file types based on S3 object keys and determines which connector to use for parsing.
public static class S3FileTypeDetector
- Inheritance
-
objectS3FileTypeDetector
Methods
DetectFileType(string)
Determines the file type based on the S3 object key extension.
public static S3FileTypeDetector.SupportedFileType DetectFileType(string objectKey)
Parameters
objectKeystringThe S3 object key (path) to analyze.
Returns
- S3FileTypeDetector.SupportedFileType
The detected file type.
Remarks
Detection is based on file extension. If the extension is not recognized, returns SupportedFileType.Unsupported.
GetSupportedTypesDescription()
Gets a user-friendly description of the supported file types.
public static string GetSupportedTypesDescription()
Returns
- string
A string describing all supported file types.
IsSupported(string)
Checks if the specified file type is supported by the S3 connector.
public static bool IsSupported(string objectKey)
Parameters
objectKeystringThe S3 object key to check.
Returns
- bool
True if the file type is supported, false otherwise.