at.tuwien.ifs.somtoolbox.apps.helper
Class SomFilePacker

java.lang.Object
  extended by at.tuwien.ifs.somtoolbox.apps.helper.SomFilePacker
All Implemented Interfaces:
SOMToolboxApp

public class SomFilePacker
extends Object
implements SOMToolboxApp

Version:
$Id: SomFilePacker.java 3889 2010-11-03 12:45:46Z frank $
Author:
frank

Nested Class Summary
static class SomFilePacker.SomFileEntries
           
 
Nested classes/interfaces inherited from interface at.tuwien.ifs.somtoolbox.apps.SOMToolboxApp
SOMToolboxApp.Type
 
Field Summary
static SOMToolboxApp.Type APPLICATION_TYPE
           
static String DESCRIPTION
           
static String LONG_DESCRIPTION
           
private  Hashtable<SomFilePacker.SomFileEntries,File> mapData
           
private static String META_INF
           
private static String META_INF_INFO
           
private static String META_INF_ROOT
           
private static String META_INF_VERSION
           
static com.martiansoftware.jsap.Parameter[] OPTIONS
           
static String VERSION
           
 
Fields inherited from interface at.tuwien.ifs.somtoolbox.apps.SOMToolboxApp
DEV_BY_STRING, HOMEPAGE, REQUIRED_MEMBERS, TYPE_GROUPED_COMPARATOR
 
Constructor Summary
SomFilePacker()
           
 
Method Summary
private  void addDataFile(com.martiansoftware.jsap.JSAPResult config, String id)
           
private  void addDataFiles(String prefix)
           
private  void addDataFiles(String prefix, String suffix)
           
private  String cleanFilename(String name)
          Remove a .gz suffix and other stuff.
static void main(String[] args)
           
private  void writeSomFile(String fname)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DESCRIPTION

public static final String DESCRIPTION
See Also:
Constant Field Values

LONG_DESCRIPTION

public static final String LONG_DESCRIPTION
See Also:
Constant Field Values

OPTIONS

public static final com.martiansoftware.jsap.Parameter[] OPTIONS

APPLICATION_TYPE

public static final SOMToolboxApp.Type APPLICATION_TYPE

VERSION

public static final String VERSION
See Also:
Constant Field Values

META_INF

private static final String META_INF
See Also:
Constant Field Values

META_INF_VERSION

private static final String META_INF_VERSION
See Also:
Constant Field Values

META_INF_INFO

private static final String META_INF_INFO
See Also:
Constant Field Values

META_INF_ROOT

private static final String META_INF_ROOT
See Also:
Constant Field Values

mapData

private Hashtable<SomFilePacker.SomFileEntries,File> mapData
Constructor Detail

SomFilePacker

public SomFilePacker()
Method Detail

main

public static void main(String[] args)
Parameters:
args - Commandline arguments

addDataFiles

private void addDataFiles(String prefix,
                          String suffix)
Parameters:
prefix - FileNamePrefix
suffix - FileNameSuffix

addDataFiles

private void addDataFiles(String prefix)

addDataFile

private void addDataFile(com.martiansoftware.jsap.JSAPResult config,
                         String id)

writeSomFile

private void writeSomFile(String fname)
                   throws IOException
Throws:
IOException

cleanFilename

private String cleanFilename(String name)
Remove a .gz suffix and other stuff.