rjw.dc.processes
Class ImportInformationFile
java.lang.Object
|
+--rjw.dc.processes.ImportInformationFile
- public class ImportInformationFile
- extends java.lang.Object
Import Information File. Needed to create a mapping between the source
(a text file) and the database fieldnames. This class creates and reads
IIF data and files. The format of the IIF data is like this:
- Since:
- 1.3
- Version:
- DC0.50
- Author:
- Robert-Jan van der Waals
Constructor Summary |
ImportInformationFile(java.lang.String sourceFileName)
Creates a new Import Information File |
ImportInformationFile(java.lang.String[][] seperatorValues,
java.lang.String sourceFileName)
Creates a new IIF file. |
Method Summary |
java.lang.String[][] |
getIIFValues()
Returns the IIF data. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ImportInformationFile
public ImportInformationFile(java.lang.String sourceFileName)
- Creates a new Import Information File
- Parameters:
sourceFileName
- name of the import file. The filename will
be converted to: .iif
ImportInformationFile
public ImportInformationFile(java.lang.String[][] seperatorValues,
java.lang.String sourceFileName)
- Creates a new IIF file. First in the array is the Database field,
second is the seperator value
- Parameters:
seperatorValues
- seperator definitionssourceFileName
- name of the import file The filename will
be converted to: .iif
getIIFValues
public java.lang.String[][] getIIFValues()
- Returns the IIF data. The return format is as follows:
[x][0] = fieldname, [x][1] = seperator value
- Returns:
- (String[][]) the IIF data