public class SOMLibDataInfoGenerator extends Object
Created on Mar 16, 2004
Constructor and Description |
---|
SOMLibDataInfoGenerator() |
Modifier and Type | Method and Description |
---|---|
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.
|
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.