public class PropReader extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
PROP_CONTENT_TYPE |
| Constructor and Description |
|---|
PropReader() |
PropReader(PropWriter.CHARSET charset,
LocaleId sourceLocale,
ContentState contentState) |
| Modifier and Type | Method and Description |
|---|---|
void |
extractTarget(TranslationsResource doc,
InputStream in)
Deprecated.
|
void |
extractTarget(TranslationsResource doc,
InputStream in,
Resource srcDoc) |
void |
extractTemplate(Resource doc,
InputStream in)
Reads properties from a given
InputStream and adds them to the
given Resource. |
public static final String PROP_CONTENT_TYPE
public PropReader(PropWriter.CHARSET charset, LocaleId sourceLocale, ContentState contentState)
charset - charset to use when reading .properties files (usually
"ISO-8859-1")sourceLocale - "lang" attribute for source TextFlowscontentState - ContentState for new TextFlowTargets (typically Approved)public PropReader()
@Deprecated public void extractTarget(TranslationsResource doc, InputStream in) throws IOException, RuntimeException
IOExceptionRuntimeExceptionpublic void extractTarget(TranslationsResource doc, InputStream in, Resource srcDoc) throws IOException, RuntimeException
IOExceptionRuntimeExceptionpublic void extractTemplate(Resource doc, InputStream in) throws IOException, RuntimeException
InputStream and adds them to the
given Resource.doc - the resource to add properties textflows toin - the input stream to read the properties fromIOExceptionInvalidPropertiesFormatExceptionRuntimeExceptionCopyright © 2018 Zanata Project. All rights reserved.