Package net.sf.okapi.common.filterwriter

Examples of net.sf.okapi.common.filterwriter.IFilterWriter


            Map<String, TextFlowTarget> translations, String locale,
            Optional<String> params) throws FileFormatAdapterException,
            IllegalArgumentException {
        net.sf.okapi.common.LocaleId localeId =
                net.sf.okapi.common.LocaleId.fromString(locale);
        IFilterWriter writer = filter.createFilterWriter();
        writer.setOptions(localeId, getOutputEncoding());

        if (requireFileOutput) {
            writeTranslatedFileWithFileOutput(output, originalFile,
                    translations, localeId, writer, params);
        } else {
            writer.setOutput(output);
            generateTranslatedFile(originalFile, translations, localeId,
                    writer, params);
        }
    }
View Full Code Here

TOP

Related Classes of net.sf.okapi.common.filterwriter.IFilterWriter

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.