public interface TranslationWriter
Translator
to write partially translated text. The
exact specification of the produced output is implementation dependent.Modifier and Type | Method and Description |
---|---|
void |
close()
Closes the underlying output stream, flushing it first.
|
void |
flush()
Flushes the underlying output stream.
|
void |
writeEnd()
Writes the end of the output.
|
void |
writeFragment(java.lang.String fragment)
Writes an untranslated text fragment to the output.
|
void |
writeTranslatedFragment(java.lang.String srcFragment,
java.lang.String translation)
Writes a translated text fragment to the output.
|
void writeFragment(java.lang.String fragment)
fragment
- the untranslated fragment to write.void writeTranslatedFragment(java.lang.String srcFragment, java.lang.String translation)
srcFragment
- the source text fragment.translation
- the translation that corresponds to the source text fragment.void writeEnd()
void flush()
void close()