Package org.hl7.fhir.utilities.i18n
Class LanguageFileProducer
java.lang.Object
org.hl7.fhir.utilities.i18n.LanguageFileProducer
- Direct Known Subclasses:
JsonLangFileProducer,PoGetTextProducer,XLIFFProducer
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionclassclassstatic classclassstatic class -
Constructor Summary
ConstructorsConstructorDescriptionLanguageFileProducer(String rootFolder, String folderName, boolean useLangFolder) -
Method Summary
Modifier and TypeMethodDescriptionabstract intabstract voidfinish()protected StringgetTargetFileName(String targetLang, String filename) booleanabstract List<LanguageFileProducer.TranslationUnit>loadSource(InputStream source) abstract voidproduce(String id, String baseLang, String targetLang, List<LanguageFileProducer.TranslationUnit> translations, String filename) startSession(String id, String baseLang)
-
Constructor Details
-
LanguageFileProducer
-
LanguageFileProducer
public LanguageFileProducer()
-
-
Method Details
-
getRootFolder
-
getFolderName
-
isUseLangFolder
-
getTargetFileName
- Throws:
IOException
-
startSession
public abstract LanguageFileProducer.LanguageProducerSession startSession(String id, String baseLang) throws IOException - Throws:
IOException
-
finish
-
loadSource
public abstract List<LanguageFileProducer.TranslationUnit> loadSource(InputStream source) throws IOException, ParserConfigurationException, SAXException -
fileCount
-
produce
public abstract void produce(String id, String baseLang, String targetLang, List<LanguageFileProducer.TranslationUnit> translations, String filename) throws IOException - Throws:
IOException
-