public class TMXWriter2
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
PROP_ID |
protected static java.util.regex.Pattern |
TAGS_ANY |
Constructor and Description |
---|
TMXWriter2(java.io.File file,
Language sourceLanguage,
Language targetLanguage,
boolean sentenceSegmentingEnabled,
boolean levelTwo,
boolean forceValidTMX) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
void |
writeComment(java.lang.String comment) |
void |
writeEntry(java.lang.String source,
java.lang.String translation,
java.lang.String note,
java.lang.String creator,
long creationDate,
java.lang.String changer,
long changeDate,
java.util.List<java.lang.String> propValues) |
void |
writeEntry(java.lang.String source,
java.lang.String translation,
TMXEntry entry,
java.util.List<java.lang.String> propValues)
Write one entry.
|
public static final java.lang.String PROP_ID
protected static final java.util.regex.Pattern TAGS_ANY
public TMXWriter2(java.io.File file, Language sourceLanguage, Language targetLanguage, boolean sentenceSegmentingEnabled, boolean levelTwo, boolean forceValidTMX) throws java.lang.Exception
file
- sourceLanguage
- targetLanguage
- sentenceSegmentingEnabled
- levelTwo
- When true, the tmx is made compatible with level 2 (TMX version 1.4)callback
- java.lang.Exception
public void close() throws java.lang.Exception
java.lang.Exception
public void writeComment(java.lang.String comment) throws java.lang.Exception
java.lang.Exception
public void writeEntry(java.lang.String source, java.lang.String translation, TMXEntry entry, java.util.List<java.lang.String> propValues) throws java.lang.Exception
source
- translation
- propValues
- pairs with property name and valuesjava.lang.Exception
public void writeEntry(java.lang.String source, java.lang.String translation, java.lang.String note, java.lang.String creator, long creationDate, java.lang.String changer, long changeDate, java.util.List<java.lang.String> propValues) throws java.lang.Exception
java.lang.Exception