|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectat.tuwien.ifs.somtoolbox.apps.helper.SOMLibDataInfoGenerator
public class SOMLibDataInfoGenerator
Handles the normalization of vector files in SOMLib format. This class can be run in standalone mode taking two arguments, i.e. input and output file. If the input file is gzip-compressed, the output will also be written gzip-compressed. The .gz suffix has to be specified manually in order not to alter filenames to something other than intended by the user.
Created on Mar 16, 2004
Constructor Summary | |
---|---|
SOMLibDataInfoGenerator()
|
Method Summary | |
---|---|
static void |
generateDataInfo(BufferedReader inReader,
BufferedWriter outWriter,
String baseDir,
String removeDir)
Static method taking a Buffered Reader and BufferedWriter as argument. |
static void |
generateDataInfo(String inFileName,
String outFileName,
String baseDir,
String removeDir)
Static method taking input and output filename as argument. |
private static char |
getSeparatorFromString(String path)
|
static void |
main(String[] args)
Static method for standalone invocation. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SOMLibDataInfoGenerator()
Method Detail |
---|
public static void main(String[] args)
args
- Usage: method-type input-filename output-filenamepublic static void generateDataInfo(String inFileName, String outFileName, String baseDir, String removeDir) throws FileNotFoundException, IOException
inFileName
- Name of input file.outFileName
- Name of output file.
FileNotFoundException
- if the file does not exist, is a directory rather than a regular file, or for some
other reason cannot be opened for reading.
IOException
public static void generateDataInfo(BufferedReader inReader, BufferedWriter outWriter, String baseDir, String removeDir)
inReader
- BufferedReader reading the file continaing unnormalized vectors.outWriter
- BuffererWriter writing the normalized vector file.private static char getSeparatorFromString(String path)
path
- the path to calculate the separator of.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |