public class Excel2CVS
extends java.lang.Object
implements java.lang.Runnable
The startup main methos can be controlled using the following paramters.
Property Keyword | Datatype | Default | Description |
---|---|---|---|
Separator | string | semicolon (;) | The separator that should be used as cell separtor. |
SingleSheetNamePattern | string | {0}.cvs | The filename pattern for single sheet files. The first message format parameter will be filename without extension of the input file file. |
MultiSheetNamePattern | string | {0}-Sheet{1}.cvs | The filename pattern for multi sheet files. The first message format parameter will be filename without extension of the input file file. The second parameter will be the index, starting at 1, fo the sheet. |
Modifier and Type | Field and Description |
---|---|
protected java.lang.String[] |
filenames |
protected java.util.Properties |
properties |
static java.lang.String |
SEPARATOR |
Constructor and Description |
---|
Excel2CVS(java.lang.String[] filenames,
java.util.Properties properties)
The constructor.
|
Modifier and Type | Method and Description |
---|---|
protected java.lang.String |
getProperty(java.lang.String key,
java.lang.String def)
Get a property.
|
static void |
main(java.lang.String[] args)
Main module of this application.
|
void |
run()
Start the convertion process.
|
public static final java.lang.String SEPARATOR
protected java.lang.String[] filenames
protected java.util.Properties properties
public Excel2CVS(java.lang.String[] filenames, java.util.Properties properties)
filenames
- the EXCEL filenamesproperties
- the properties to control the process.public void run()
run
in interface java.lang.Runnable
protected java.lang.String getProperty(java.lang.String key, java.lang.String def)
key
- property keydef
- the default value.public static void main(java.lang.String[] args)
args
- just pass EXCEL spreadsheet to that program.