de.viaboxx.nlstools.formats
Class BundleWriterProperties

java.lang.Object
  extended by de.viaboxx.nlstools.formats.BundleWriter
      extended by de.viaboxx.nlstools.formats.BundleWriterProperties

public class BundleWriterProperties
extends BundleWriter

Description:
User: roman.stumm
Date: 15.06.2007
Time: 09:44:05
Copyright: Viaboxx GmbH


Nested Class Summary
 
Nested classes/interfaces inherited from class de.viaboxx.nlstools.formats.BundleWriter
BundleWriter.FileType
 
Field Summary
 
Fields inherited from class de.viaboxx.nlstools.formats.BundleWriter
allowedLocales, configFile, currentBundle, deleteOldFiles, fileType, flexLayout, myUsedLocales, outputPath, overwrite, task
 
Constructor Summary
BundleWriterProperties(org.apache.tools.ant.Task task, String configFile, MBBundle currentBundle, String outputPath, BundleWriter.FileType fileType, Set<String> allowedLocales)
           
 
Method Summary
 String getCharset()
           
protected  String getPropertiesHeader(String locale)
           
 void setCharset(String charset)
           
 void setMerged(boolean merged)
           
protected  String suffix()
           
protected  void writeOutputFilePerLocale(String locale)
           
protected  void writeProperties(OutputStream stream, String aLocale, String header)
           
 
Methods inherited from class de.viaboxx.nlstools.formats.BundleWriter
buildOutputFileNameBase, buildOutputFileNameBase, createProperties, deleteFiles, deleteFiles, execute, getCurrentBundle, getFileName, getFileNameFlex, getFileNameJava, getLocalesUsed, getOutputPath, getOutputPathName, isFlexLayout, mkdirs, needsNewFiles, setDebugMode, setDeleteOldFiles, setFlexLayout, setOverwrite, writeOutputFiles
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BundleWriterProperties

public BundleWriterProperties(org.apache.tools.ant.Task task,
                              String configFile,
                              MBBundle currentBundle,
                              String outputPath,
                              BundleWriter.FileType fileType,
                              Set<String> allowedLocales)
Method Detail

setMerged

public void setMerged(boolean merged)

getCharset

public String getCharset()

setCharset

public void setCharset(String charset)

suffix

protected String suffix()
Specified by:
suffix in class BundleWriter

getPropertiesHeader

protected String getPropertiesHeader(String locale)

writeOutputFilePerLocale

protected void writeOutputFilePerLocale(String locale)
                                 throws IOException
Overrides:
writeOutputFilePerLocale in class BundleWriter
Throws:
IOException

writeProperties

protected void writeProperties(OutputStream stream,
                               String aLocale,
                               String header)
                        throws IOException
Throws:
IOException


Copyright © 2014. All Rights Reserved.