Class FileFormats
public static class FileFormats
- Inheritance
-
FileFormats
- Inherited Members
Methods
GetConfigParser(string)
Returns a registered parser of configuration files with the given extension.
public static BaseParser? GetConfigParser(string extension)
Parameters
extensionstringThe extension for which the parser is needed.
Returns
- BaseParser
An instance of the found parser or null otherwise.
GetParser(string, bool)
Returns a registered parser of translation files with the given extension.
public static BaseParser? GetParser(string extension, bool getStaticInstance = false)
Parameters
extensionstringThe extension for which the parser is needed.
getStaticInstanceboolWhen set to true, uses a cached singleton (or creates one if it does not yet exist).
This parameter is used by the helper functions.
Returns
- BaseParser
An instance of the found parser or null otherwise.
GetSupportedExtensions()
Returns the list of extensions registered as recognized for translation files.
public static IList<string> GetSupportedExtensions()