Logo Search packages:      
Sourcecode: jlha-utils version File versions  Download package

void org::jlhafrontend::JLHAFrontEnd::create ( Opts  useropts,
String  archiveFilename,
String[]  filesFilename 
) [inline]

execute create command

Parameters:
useropts Options input by users
archiveFilename the filename of the archive file
filesFilename the array of filenames to be processed

Definition at line 1559 of file JLHAFrontEnd.java.

References createSwitcher(), and mylogger.

Referenced by add(), start(), and update().

                                                                                      {
      LhaOutputStream lio=null;
      int i;
      if (filesFilename == null || filesFilename.length==0) {
          System.err.println("LHa: Error: No files given in argument, do nothing.");
          return;
      }
      try {
          lio = new LhaOutputStream(new FileOutputStream(archiveFilename));
      } catch (Exception e) {
          mylogger.severe("new LhaImeediateOutputStream with "+archiveFilename+" error: "+e.toString());
          return;
      }
      for (i=0 ; i<filesFilename.length ; i++) {
          createSwitcher(useropts,lio,filesFilename[i]);
      }
      try {
          lio.close();
      } catch (IOException e) {
          mylogger.severe("lio.close() "+e.toString());
      }
    }


Generated by  Doxygen 1.6.0   Back to index