| 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.IntegrationApiAssembly: Sdl.FileTypeSupport.Framework.Core (in Sdl.FileTypeSupport.Framework.Core.dll) Version: 1.0.0.0 (1.0.2343.0)
SyntaxIFileExtractor BuildExtractor(
string filePath,
CultureInfo cultureInfo,
Codepage suggestedCodepage,
INativeTextLocationMessageReporter messageReporter
)
Function BuildExtractor (
filePath As String,
cultureInfo As CultureInfo,
suggestedCodepage As Codepage,
messageReporter As INativeTextLocationMessageReporter
) As IFileExtractor
IFileExtractor^ BuildExtractor(
String^ filePath,
CultureInfo^ cultureInfo,
Codepage^ suggestedCodepage,
INativeTextLocationMessageReporter^ messageReporter
)
abstract BuildExtractor :
filePath : string *
cultureInfo : CultureInfo *
suggestedCodepage : Codepage *
messageReporter : INativeTextLocationMessageReporter -> IFileExtractor
Parameters
- filePath
- Type: SystemString
- cultureInfo
- Type: System.GlobalizationCultureInfo
Source CultureInfo of the file - suggestedCodepage
- Type: Codepage
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
See Also
Comments