public class PropWriter extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
PropWriter.CHARSET |
| Constructor and Description |
|---|
PropWriter() |
| Modifier and Type | Method and Description |
|---|---|
static void |
writeSource(Resource doc,
File baseDir,
PropWriter.CHARSET charset)
Writes a properties file representation of the given
Resource to
the given directory in PropWriter.CHARSET.UTF8 or PropWriter.CHARSET.Latin1 encoding. |
static void |
writeTranslations(Resource srcDoc,
TranslationsResource doc,
File baseDir,
String bundleName,
String locale,
PropWriter.CHARSET charset,
boolean createSkeletons)
Writes to given properties file of the given TranslationsResource
in
PropWriter.CHARSET.UTF8 or PropWriter.CHARSET.Latin1 encoding. |
static void |
writeTranslationsFile(Resource srcDoc,
TranslationsResource doc,
File propertiesFile,
PropWriter.CHARSET charset,
boolean createSkeletons)
Writes to given properties file of the given TranslationsResource
in
PropWriter.CHARSET.UTF8 or PropWriter.CHARSET.Latin1 encoding. |
public static void writeSource(Resource doc, File baseDir, PropWriter.CHARSET charset) throws IOException
Resource to
the given directory in PropWriter.CHARSET.UTF8 or PropWriter.CHARSET.Latin1 encoding.doc - baseDir - charset - PropWriter.CHARSETIOExceptionpublic static void writeTranslationsFile(Resource srcDoc, TranslationsResource doc, File propertiesFile, PropWriter.CHARSET charset, boolean createSkeletons) throws IOException
PropWriter.CHARSET.UTF8 or PropWriter.CHARSET.Latin1 encoding.doc - propertiesFile - charset - createSkeletons - IOExceptionpublic static void writeTranslations(Resource srcDoc, TranslationsResource doc, File baseDir, String bundleName, String locale, PropWriter.CHARSET charset, boolean createSkeletons) throws IOException
PropWriter.CHARSET.UTF8 or PropWriter.CHARSET.Latin1 encoding.srcDoc - doc - baseDir - bundleName - locale - createSkeletons - charset - IOExceptionCopyright © 2018 Zanata Project. All rights reserved.