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(org.zanata.rest.dto.resource.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(org.zanata.rest.dto.resource.Resource srcDoc,
org.zanata.rest.dto.resource.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(org.zanata.rest.dto.resource.Resource srcDoc,
org.zanata.rest.dto.resource.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(org.zanata.rest.dto.resource.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(org.zanata.rest.dto.resource.Resource srcDoc,
org.zanata.rest.dto.resource.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(org.zanata.rest.dto.resource.Resource srcDoc,
org.zanata.rest.dto.resource.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 © 2016 Zanata Project. All rights reserved.