public abstract class Importer
extends java.lang.Object
Importer
Abstract class that contains the methods to import different format files to files with KEEL format.Modifier and Type | Field and Description |
---|---|
protected boolean |
processHeader
Property for considering or not the header with the attributes names
only used for CSV, TXT, Excel, HTML and PRN formats).
|
Constructor and Description |
---|
Importer() |
Modifier and Type | Method and Description |
---|---|
int |
DataType(java.lang.String item)
Returns the type of the element given as argument.
|
void |
Save(java.lang.String pathnameOutput)
Method that creates the output file with KEEL format given as parameter
using all the structures built by the start method of not abstract classes.
|
void |
setProcessHeader(boolean processHeader)
Method for setting a boolean indicating if the header must be processed
|
java.lang.String |
UcFirst(java.lang.String line)
Sets as capital letter the first one of the line given as parameter.
|
protected boolean processHeader
public void setProcessHeader(boolean processHeader)
processHeader
- Booleanpublic void Save(java.lang.String pathnameOutput) throws java.lang.Exception
pathnameOutput
- KEEL file path to generate.java.lang.Exception
- if the file can not be written.public java.lang.String UcFirst(java.lang.String line)
line
- line given.public int DataType(java.lang.String item)
item
- element given.