JSampler
v0.8a

org.jsampler.task
Class InstrumentsDb.AddInstrumentsFromFile

java.lang.Object
  extended by 
      extended by org.jsampler.task.EnhancedTask<java.lang.Integer>
          extended by org.jsampler.task.InstrumentsDb.AddInstrumentsFromFile
Enclosing class:
InstrumentsDb

public static class InstrumentsDb.AddInstrumentsFromFile
extends EnhancedTask<java.lang.Integer>

This task adds instruments from an instrument file to the instruments database.


Constructor Summary
InstrumentsDb.AddInstrumentsFromFile(java.lang.String dbDir, java.lang.String filePath)
          Creates a new instance of AddInstrumentsFromFile.
InstrumentsDb.AddInstrumentsFromFile(java.lang.String dbDir, java.lang.String filePath, int instrIndex)
          Creates a new instance of AddInstrumentsFromFile.
 
Method Summary
 void run()
          The entry point of the task.
 
Methods inherited from class org.jsampler.task.EnhancedTask
isStopped, setErrorDetails, stop
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

InstrumentsDb.AddInstrumentsFromFile

public InstrumentsDb.AddInstrumentsFromFile(java.lang.String dbDir,
                                            java.lang.String filePath)
Creates a new instance of AddInstrumentsFromFile.

Parameters:
dbDir - The absolute path name of the database directory in which all instruments from the specified instrument file will be added.
filePath - The absolute path name of the instrument file.

InstrumentsDb.AddInstrumentsFromFile

public InstrumentsDb.AddInstrumentsFromFile(java.lang.String dbDir,
                                            java.lang.String filePath,
                                            int instrIndex)
Creates a new instance of AddInstrumentsFromFile.

Parameters:
dbDir - The absolute path name of the database directory in which the specified instrument will be added.
filePath - The absolute path name of the instrument file.
instrIndex - The index of the instrument (in the given instrument file) to add. If -1 is specified, all instruments in the given instrument file will be added.
Method Detail

run

public void run()
The entry point of the task.


JSampler
v0.8a

Copyright © 2007 Grigor Iliev. All rights reserved.