com.jaxfront.core.util.io
Class HelpExport

java.lang.Object
  extended by com.jaxfront.core.util.io.HelpExport

public class HelpExport
extends java.lang.Object

HelpExport merges all NLS property files into a comma separated file format.This CSV format is readable for the most Spreadsheet and Database Tools like Microsoft EXCEL or OPEN Office. It provides a easy way for NLS translation. The export creates a column for each language defined in the jaxfront.properties file.


Method Summary
static void export(java.io.File dest, java.net.URL mainLanguageURL, java.lang.String language, char separator)
          The export method exports all NLS property files into the dest file.
static void exportMerged(java.io.Writer dest, java.util.Hashtable nlsContent, java.lang.String language, java.lang.String[] languages, char separator)
           
static java.lang.StringBuffer exportMergedXML(java.util.Hashtable nlsContent, java.lang.String language, java.lang.String[] languages)
           
 char getSeparator()
           
static void main(java.lang.String[] args)
           
 void setSeparator(char separator)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

export

public static void export(java.io.File dest,
                          java.net.URL mainLanguageURL,
                          java.lang.String language,
                          char separator)
                   throws java.io.IOException
The export method exports all NLS property files into the dest file. Only the NLS.properties files in the mainLanguageURL are recognized for the export action! The language parameter is the master language which must contain all possible NLS entries. Only these entries will be exported!

Parameters:
dest -
mainLanguageURL -
language -
Throws:
java.io.IOException

exportMerged

public static void exportMerged(java.io.Writer dest,
                                java.util.Hashtable nlsContent,
                                java.lang.String language,
                                java.lang.String[] languages,
                                char separator)
                         throws java.io.IOException
Throws:
java.io.IOException

exportMergedXML

public static java.lang.StringBuffer exportMergedXML(java.util.Hashtable nlsContent,
                                                     java.lang.String language,
                                                     java.lang.String[] languages)
                                              throws java.io.IOException
Throws:
java.io.IOException

getSeparator

public char getSeparator()

main

public static void main(java.lang.String[] args)
                 throws java.io.IOException
Throws:
java.io.IOException

setSeparator

public void setSeparator(char separator)