Click or drag to resize
IFileTypeManagerGetConverterToDefaultBilingual Method
Overload List
  NameDescription
Public methodGetConverterToDefaultBilingual(IBilingualParser, String)
Creates and initializes a file converter to write a bilingual output file in the default format, reading input from a specified bilingual parser.
Public methodGetConverterToDefaultBilingual(String, String, EventHandlerMessageEventArgs)
Creates and initializes a file converter in order to read a single (typically bilingual) input file and write a bilingual output file in the default format.

The converter will automatically use the file type that best matches the file to be converted.

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

  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.
Public methodCode exampleGetConverterToDefaultBilingual(String, String, CultureInfo, Codepage, EventHandlerMessageEventArgs)
Creates and initializes a file converter in order to create a bilingual file in the default format.

The converter will automatically use the filters that best match the native files to be converted. These converters are selected as described below.

The file type definitions are each 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