org.zanata.client.commands.pull
Class UTF8PropertiesStrategy
java.lang.Object
org.zanata.client.commands.pull.AbstractPullStrategy
org.zanata.client.commands.pull.PropertiesStrategy
org.zanata.client.commands.pull.UTF8PropertiesStrategy
- All Implemented Interfaces:
- PullStrategy
public class UTF8PropertiesStrategy
- extends PropertiesStrategy
- Author:
- Sean Flanigan sflaniga@redhat.com
|
Method Summary |
void |
writeSrcFile(org.zanata.rest.dto.resource.Resource doc)
|
org.zanata.common.io.FileDetails |
writeTransFile(org.zanata.rest.dto.resource.Resource doc,
String docName,
LocaleMapping localeMapping,
org.zanata.rest.dto.resource.TranslationsResource targetDoc)
pre: docWithLocalName.getName() must match docName if docWithLocalName is not null |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
UTF8PropertiesStrategy
protected UTF8PropertiesStrategy(PullOptions opts)
writeSrcFile
public void writeSrcFile(org.zanata.rest.dto.resource.Resource doc)
throws IOException
- Specified by:
writeSrcFile in interface PullStrategy- Overrides:
writeSrcFile in class PropertiesStrategy
- Throws:
IOException
writeTransFile
public org.zanata.common.io.FileDetails writeTransFile(org.zanata.rest.dto.resource.Resource doc,
String docName,
LocaleMapping localeMapping,
org.zanata.rest.dto.resource.TranslationsResource targetDoc)
throws IOException
- Description copied from interface:
PullStrategy
- pre: docWithLocalName.getName() must match docName if docWithLocalName is not null
- Specified by:
writeTransFile in interface PullStrategy- Overrides:
writeTransFile in class PropertiesStrategy
- Parameters:
doc - may be null if needsDocToWriteTrans() returns falsedocName - may be null if needsDocToWriteTrans() returns false
- Returns:
- Details of the file that was written. May be null if the Strategy cannot provide details.
- Throws:
IOException
Copyright © 2013 Zanata Project. All Rights Reserved.