Package org.hl7.fhir.utilities.i18n
Class JsonLangFileProducer
- java.lang.Object
-
- org.hl7.fhir.utilities.i18n.LanguageFileProducer
-
- org.hl7.fhir.utilities.i18n.JsonLangFileProducer
-
public class JsonLangFileProducer extends LanguageFileProducer
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description classJsonLangFileProducer.JsonLangLanguageProducerLanguageSessionclassJsonLangFileProducer.JsonLangProducerSession-
Nested classes/interfaces inherited from class org.hl7.fhir.utilities.i18n.LanguageFileProducer
LanguageFileProducer.LanguageProducerLanguageSession, LanguageFileProducer.LanguageProducerSession, LanguageFileProducer.TextUnit, LanguageFileProducer.Translations, LanguageFileProducer.TranslationUnit
-
-
Constructor Summary
Constructors Constructor Description JsonLangFileProducer()JsonLangFileProducer(String rootFolder, String folderName, boolean useLangFolder)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intfileCount()voidfinish()List<LanguageFileProducer.TranslationUnit>loadSource(InputStream source)voidproduce(String id, String baseLang, String targetLang, List<LanguageFileProducer.TranslationUnit> translations, String filename)LanguageFileProducer.LanguageProducerSessionstartSession(String id, String baseLang)-
Methods inherited from class org.hl7.fhir.utilities.i18n.LanguageFileProducer
getFolderName, getRootFolder, getTargetFileName, isUseLangFolder
-
-
-
-
Constructor Detail
-
JsonLangFileProducer
public JsonLangFileProducer(String rootFolder, String folderName, boolean useLangFolder)
-
JsonLangFileProducer
public JsonLangFileProducer()
-
-
Method Detail
-
startSession
public LanguageFileProducer.LanguageProducerSession startSession(String id, String baseLang) throws IOException
- Specified by:
startSessionin classLanguageFileProducer- Throws:
IOException
-
finish
public void finish()
- Specified by:
finishin classLanguageFileProducer
-
loadSource
public List<LanguageFileProducer.TranslationUnit> loadSource(InputStream source) throws IOException
- Specified by:
loadSourcein classLanguageFileProducer- Throws:
IOException
-
fileCount
public int fileCount()
- Specified by:
fileCountin classLanguageFileProducer
-
produce
public void produce(String id, String baseLang, String targetLang, List<LanguageFileProducer.TranslationUnit> translations, String filename) throws IOException
- Specified by:
producein classLanguageFileProducer- Throws:
IOException
-
-