Package net.sf.okapi.tm.pensieve.tmx
Class OkapiTmxExporter
- java.lang.Object
-
- net.sf.okapi.tm.pensieve.tmx.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 Summary
Constructors Constructor Description OkapiTmxExporter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidexportTmx(LocaleId sourceLang, LocaleId targetLang, ITmSeeker tmSeeker, TMXWriter tmxWriter)Exports only a specific target locale Pensieve to TMXvoidexportTmx(LocaleId sourceLocale, ITmSeeker tmSeeker, TMXWriter tmxWriter)Exports all target locales in Pensieve to TMX
-
-
-
Method Detail
-
exportTmx
public void exportTmx(LocaleId sourceLocale, ITmSeeker tmSeeker, TMXWriter tmxWriter) throws IOException
Exports all target locales in Pensieve to TMX- Specified by:
exportTmxin interfaceITmxExporter- Parameters:
sourceLocale- The source localetmSeeker- The TMSeeker to use when reading from the TMtmxWriter- 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:
exportTmxin interfaceITmxExporter- Parameters:
sourceLang- The source language of desired translationtargetLang- The target language of desired translation (or null for all target languages)tmSeeker- The TMSeeker to use when reading from the TMtmxWriter- The TMXWriter to use when writing out the TMX- Throws:
IOException- if there was a problem with the TMX export
-
-