Click or drag to resize
IFileTypeManagerGetConverterToNative Method
Overload List
  NameDescription
Public methodGetConverterToNative(IBilingualParser, OutputPropertiesProvider)
Creates a converter for writing native output files for content read by a specified bilingual parser.
Public methodCode exampleGetConverterToNative(String, OutputPropertiesProvider, EventHandlerMessageEventArgs)
Creates a converter for parsing a single file and writing native output files.

This is intended for bilingual file types, in which the languages and codepage can be deducted automatically from the file content.

This version is typically used for parsing SDL XLIFF documents (where support for these have been installed as another bilingual file type). However, it could also be used for processing individual native files in which source language (and codepage) can be deducted from the file content.

Public methodGetConverterToNative(String, OutputPropertiesProvider, CultureInfo, Codepage, EventHandlerMessageEventArgs)
Creates and initializes a file converter for reading native files, doing processing on them and creating native files as output in one single pass.

The file type definitions are tested in sequence, and the first file type definition that matches a file is used for each file. The following steps are used to determine if a file type definition matches a file:

  1. The regular expression is evaluated against the name of the file to be converted. If it does not match, the file type definition is not used.
  2. If a file sniffer is defined for the file type definition, it is applied to the file. If the file sniffer does not indicate that the file is supported, the file type definition is not used.
If no matching file type definition is found, a OneOrMoreFilesNotSupportedException is thrown.
Top
See Also
Community
Edit
Be the first to Edit the community content of this topic.
Comments