rjw.dc.processes
Class ExportSoftwareCD
java.lang.Object
|
+--java.lang.Thread
|
+--rjw.dc.processes.ExportSoftwareCD
- All Implemented Interfaces:
- java.lang.Runnable
- public class ExportSoftwareCD
- extends java.lang.Thread
Exports a Software CD to a file. Later on it can be imported by the ImportFile
class. The layout of the export file is like this; value value.
The seperator is retrieved form the ImportInformationFile
- Since:
- 1.3
- Version:
- DC0.50
- Author:
- Robert-Jan van der Waals
Field Summary |
static boolean |
running
|
Fields inherited from class java.lang.Thread |
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY |
Constructor Summary |
ExportSoftwareCD(java.lang.String loc,
boolean bConfirmDirs,
java.lang.String file,
java.lang.String cdName,
boolean bToFile,
boolean bToTable)
Initializes the export process. |
Method Summary |
void |
createOutput(java.util.Vector data)
Writes the data to the file and to the output table. |
void |
run()
Starts the export process. |
Methods inherited from class java.lang.Thread |
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getContextClassLoader, getName, getPriority, getThreadGroup, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setName, setPriority, sleep, sleep, start, stop, stop, suspend, toString, yield |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
running
public static boolean running
ExportSoftwareCD
public ExportSoftwareCD(java.lang.String loc,
boolean bConfirmDirs,
java.lang.String file,
java.lang.String cdName,
boolean bToFile,
boolean bToTable)
- Initializes the export process. All preferences are set
- Parameters:
loc
- location from which the data is readbConfirmDirs
- indicates if per directory should be asked if the data
should be read from this directoryfile
- the export filenamecdName
- name of the location, used for grouping data
run
public void run()
- Starts the export process. The data read from the location is written
to the export file. Information from the files is separated by..
seperators as specified in the IIF. Errors are shown to user in
messageboxes
- Specified by:
run
in interface java.lang.Runnable
- Overrides:
run
in class java.lang.Thread
createOutput
public void createOutput(java.util.Vector data)
- Writes the data to the file and to the output table.
Information from the files is separated by..
seperators as specified in the IIF.