rjw.dc.processes
Class ExportMP3CD
java.lang.Object
|
+--java.lang.Thread
|
+--rjw.dc.processes.ExportMP3CD
- All Implemented Interfaces:
- java.lang.Runnable
- public class ExportMP3CD
- extends java.lang.Thread
Exports a MP3 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
Specifies whether the export process is running |
Fields inherited from class java.lang.Thread |
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY |
Constructor Summary |
ExportMP3CD(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 |
run()
Starts the export process. |
void |
writeToFile(java.util.Vector data)
Writes the data to the file. |
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
- Specifies whether the export process is running
ExportMP3CD
public ExportMP3CD(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
writeToFile
public void writeToFile(java.util.Vector data)
- Writes the data to the file. Information from the files is separated by..
seperators as specified in the IIF.