at.tuwien.ifs.somtoolbox.data
Class InputDataFileFormatConverter
java.lang.Object
at.tuwien.ifs.somtoolbox.data.InputDataFileFormatConverter
- All Implemented Interfaces:
- SOMToolboxApp
public class InputDataFileFormatConverter
- extends Object
- implements SOMToolboxApp
This class converts between various file formats for InputData
. Currently supported formats are listed in
INPUT_FILE_FORMAT_TYPES
and OUTPUT_FILE_FORMAT_TYPES
respective.
- Version:
- $Id: InputDataFileFormatConverter.java 3709 2010-07-20 15:46:36Z mayer $
- Author:
- Rudolf Mayer
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
knownExtensions
private static final HashMap<String,String> knownExtensions
outputClasses
private static final HashMap<String,Class<? extends AbstractSOMLibSparseInputData>> outputClasses
inputClasses
private static final HashMap<String,Class<? extends AbstractSOMLibSparseInputData>> inputClasses
INPUT_FILE_FORMAT_TYPES
public static final String[] INPUT_FILE_FORMAT_TYPES
- Supported Input File Format Types
OUTPUT_FILE_FORMAT_TYPES
public static final String[] OUTPUT_FILE_FORMAT_TYPES
- Supported Output File Format Types
OPTIONS
public static final com.martiansoftware.jsap.Parameter[] OPTIONS
DESCRIPTION
public static String DESCRIPTION
LONG_DESCRIPTION
public static String LONG_DESCRIPTION
APPLICATION_TYPE
public static final SOMToolboxApp.Type APPLICATION_TYPE
logger
private static final Logger logger
InputDataFileFormatConverter
public InputDataFileFormatConverter()
main
public static void main(String[] args)
throws IOException,
SOMToolboxException
- Throws:
IOException
SOMToolboxException
getInputDataInstance
private static InputData getInputDataInstance(String formatName,
String inputFileName)
throws SOMToolboxException
- Throws:
SOMToolboxException
detectFormat
private static String detectFormat(String inputFileName,
String type)
throws SOMToolboxException
- Throws:
SOMToolboxException