org.zanata.client.commands.pull
Class UTF8PropertiesStrategy

java.lang.Object
  extended by org.zanata.client.commands.pull.AbstractPullStrategy
      extended by org.zanata.client.commands.pull.PropertiesStrategy
          extended by org.zanata.client.commands.pull.UTF8PropertiesStrategy
All Implemented Interfaces:
PullStrategy

public class UTF8PropertiesStrategy
extends PropertiesStrategy

Author:
Sean Flanigan sflaniga@redhat.com

Constructor Summary
protected UTF8PropertiesStrategy(PullOptions opts)
           
 
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 org.zanata.client.commands.pull.PropertiesStrategy
getExtensions, getTransFileToWrite, needsDocToWriteTrans
 
Methods inherited from class org.zanata.client.commands.pull.AbstractPullStrategy
getOpts, isTransOnly
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UTF8PropertiesStrategy

protected UTF8PropertiesStrategy(PullOptions opts)
Method Detail

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 false
docName - 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.