Examples of MyFile


Examples of net.sf.jmp3renamer.util.MyFile

        String regex = (String) tUserRegex.getEditor().getItem();
        List<DataSet> datasets = new LinkedList<DataSet>();
        List<MyFile> files = FileManager.getInstance().getFiles();

        for (int i = 0; i < files.size(); i++) {
            MyFile file = files.get(i);
            String oldname = file.getName();
            DataSet dataset = MagicCookieBaker.evaluateCookie(regex, oldname);
            if (dataset != null) {
                datasets.add(dataset);
            }
        }
View Full Code Here

Examples of net.sf.jmp3renamer.util.MyFile

        Main.getGUI().setCursor(new Cursor(Cursor.WAIT_CURSOR));
        List<DataSet> datasets = new LinkedList<DataSet>();
        List<MyFile> files = FileManager.getInstance().getFiles();
        int size = files.size();
        for(int i=0; i<files.size(); i++) {
            MyFile file = (MyFile)files.get(i);
            DataSet dataset = FileManager.getInstance().getMetaData(file);
            if(dataset != null) {
                dataset.setRegex(Main.getProperty("filename"));
                datasets.add(dataset);
            }
View Full Code Here

Examples of net.sf.jmp3renamer.util.MyFile

    if(FileTag.getProperty("analyzeNewFiles").equals("true")) {
      if(action == RowObserver.REMOVEALL) {
        DataManager.getInstance().setDatasets(new LinkedList<DataSet>());
      } else if(action == RowObserver.INSERT) {
        Main.getGUI().setCursor(new Cursor(Cursor.WAIT_CURSOR));
        MyFile file = (MyFile)o;
              DataSet dataset = FileManager.getInstance().getMetaData(file);
              if(dataset != null) {
                  dataset.setRegex(Main.getProperty("filename"));
                  DataManager.getInstance().addRow(dataset);
              }
View Full Code Here

Examples of net.sf.jmp3renamer.util.MyFile

            progress.setValue(0);
            status.setVisible(true);
            int total = table.getRowCount();
            for (int i = 0; i < table.getRowCount(); i++) {
                final int row = i;
                MyFile file = (MyFile) model.getValueAt(i, 0);
                String configPrefix = toolFactory.getConfigPrefix(file);
                String path = Replaygain.getProperty(configPrefix + ".path");
                String params = Replaygain.getProperty(configPrefix + ".params");
                table.setValueAt(I18N.translate("processing"), i, 1);
                status.setText(I18N.translate("processing") + " " + file.toString());
                try {
                    // start the *gain tool
                    Runtime rt = Runtime.getRuntime();
                    String[] arguments = { path, params, file.getAbsolutePath() };
                    process = rt.exec(arguments);

                    // read from stdout and stderr and show results in gui
                    ProcessOutputReader por = toolFactory.createOutputReader(file, process, new ProgressCallback() {
                        @Override
View Full Code Here

Examples of org.apache.hadoop.fs.CopyFilesBase.MyFile

      namenode = fs.getUri().toString();
      mr = new MiniMRCluster(3, namenode, 1);
      MyFile[] files = TestCopyFiles.createFiles(fs.getUri(), "/srcdat");
    
      // create a under construction files
      MyFile f = new MyFile();
      Path p = new Path(new Path("/srcdat"), f.getName());
      FSDataOutputStream out = fs.create(p);
      byte[] toWrite = new byte[f.getSize()];
      new Random(f.getSeed()).nextBytes(toWrite);
      out.write(toWrite);
      out.flush();
      Log.info("Created under construction file: " + p);
     
      Path destRoot = new Path("/destdat");
      Path destPath = new Path(destRoot, f.getName());
     
      String option = "";
      if (type.equals(DistcpType.FASTCOPY)) {
        option = "-usefastcopy";
      } else if (type.equals(DistcpType.COPYBYCHUNK)) {
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.