Class OkapiTmxExporter

  • All Implemented Interfaces:
    ITmxExporter

    public class OkapiTmxExporter
    extends Object
    implements ITmxExporter
    Used to interact with the Okapi Standards for TMX. For example, the property names and default fields stored.
    • Constructor Detail

      • OkapiTmxExporter

        public OkapiTmxExporter()
    • Method Detail

      • exportTmx

        public void exportTmx​(LocaleId sourceLocale,
                              ITmSeeker tmSeeker,
                              TMXWriter tmxWriter)
                       throws IOException
        Exports all target locales in Pensieve to TMX
        Specified by:
        exportTmx in interface ITmxExporter
        Parameters:
        sourceLocale - The source locale
        tmSeeker - The TMSeeker to use when reading from the TM
        tmxWriter - The TMXWriter to use when writing out the TMX
        Throws:
        IOException - if there was a problem with the TMX export
      • exportTmx

        public void exportTmx​(LocaleId sourceLang,
                              LocaleId targetLang,
                              ITmSeeker tmSeeker,
                              TMXWriter tmxWriter)
                       throws IOException
        Exports only a specific target locale Pensieve to TMX
        Specified by:
        exportTmx in interface ITmxExporter
        Parameters:
        sourceLang - The source language of desired translation
        targetLang - The target language of desired translation (or null for all target languages)
        tmSeeker - The TMSeeker to use when reading from the TM
        tmxWriter - The TMXWriter to use when writing out the TMX
        Throws:
        IOException - if there was a problem with the TMX export