Click or drag to resize
IFileTypeManagerBuildExtractor Method
Helper function used by the file type manager implementation and other components that need to create components that are normally used through the file converters objects.

Determines the best matching file type for the specified file according to the rules described in the documentation of GetConverter(String, CultureInfo, Codepage, EventHandlerMessageEventArgs) and returns an initialized file extractor that can be used to process the file.

Namespace: Sdl.FileTypeSupport.Framework.IntegrationApi
Assembly: Sdl.FileTypeSupport.Framework.Core (in Sdl.FileTypeSupport.Framework.Core.dll) Version: 1.0.0.0 (1.0.2551.0)
Syntax
IFileExtractor BuildExtractor(
	string filePath,
	CultureInfo cultureInfo,
	Codepage suggestedCodepage,
	INativeTextLocationMessageReporter messageReporter
)

Parameters

filePath
Type: SystemString
cultureInfo
Type: System.GlobalizationCultureInfo
Source CultureInfo of the file
suggestedCodepage
Type: Sdl.Core.GlobalizationCodepage
Suggested codepage of the file
messageReporter
Type: Sdl.FileTypeSupport.Framework.NativeApiINativeTextLocationMessageReporter
(Optional) message reporter implementation that will be passed to file sniffers

Return Value

Type: IFileExtractor

[Missing <returns> documentation for "M:Sdl.FileTypeSupport.Framework.IntegrationApi.IFileTypeManager.BuildExtractor(System.String,System.Globalization.CultureInfo,Sdl.Core.Globalization.Codepage,Sdl.FileTypeSupport.Framework.NativeApi.INativeTextLocationMessageReporter)"]

Exceptions
ExceptionCondition
FileNotSupportedExceptionThrown if none of the file type definitions can be used to process the file
See Also
Community
Edit

Be the first to Edit the community content of this topic.
Comments