Class OkapiTmxImporter

    • Constructor Detail

      • OkapiTmxImporter

        public OkapiTmxImporter​(LocaleId sourceLang,
                                IFilter tmxFilter)
        Creates an instance of OkapiTMXHandler
        Parameters:
        sourceLang - the language to import as the source language.
        tmxFilter - the IFilter to use to parse the TMX
    • Method Detail

      • importTmx

        public void importTmx​(URI tmxUri,
                              LocaleId targetLang,
                              ITmWriter tmWriter)
                       throws IOException
        Imports TMX to Pensieve
        Specified by:
        importTmx in interface ITmxImporter
        Parameters:
        tmxUri - The location of the TMX
        targetLang - The target language to index
        tmWriter - The TMWriter to use when writing to the TM
        Throws:
        IOException - if there was a problem with the TMX import