Package java.io

Examples of java.io.File.endsWith()


        // reread skins
        skinFiles = FileUtils.getDirListing(skinPath, SKIN_FILENAME_FILTER);
        Collections.sort(skinFiles);
        int count = 0;
        for (final String skinFile : skinFiles) {
            if (skinFile.endsWith(".css")) {
                prop.put("skinlist_" + count + "_file", skinFile);
                prop.put("skinlist_" + count + "_name", skinFile.substring(0, skinFile.length() - 4));
                count++;
            }
        }
View Full Code Here


       
        int ret = outputSelect.showSaveDialog(self);
        if(ret == JFileChooser.APPROVE_OPTION)
        {
          String f = outputSelect.getSelectedFile().getAbsolutePath().toLowerCase();
          if(f.endsWith(".wmv") || f.endsWith(".avi") || f.endsWith(".mpeg") || f.endsWith(".mpg") || f.endsWith(".flv") || f.endsWith(".mp4"))
            outputFile.setText(outputSelect.getSelectedFile().getAbsolutePath());
          else
            if(outType.getSelectedIndex() < 3)
              outputFile.setText(outputSelect.getSelectedFile().getAbsolutePath() + ".mpeg");
            else
View Full Code Here

       
        int ret = outputSelect.showSaveDialog(self);
        if(ret == JFileChooser.APPROVE_OPTION)
        {
          String f = outputSelect.getSelectedFile().getAbsolutePath().toLowerCase();
          if(f.endsWith(".wmv") || f.endsWith(".avi") || f.endsWith(".mpeg") || f.endsWith(".mpg") || f.endsWith(".flv") || f.endsWith(".mp4"))
            outputFile.setText(outputSelect.getSelectedFile().getAbsolutePath());
          else
            if(outType.getSelectedIndex() < 3)
              outputFile.setText(outputSelect.getSelectedFile().getAbsolutePath() + ".mpeg");
            else
View Full Code Here

       
        int ret = outputSelect.showSaveDialog(self);
        if(ret == JFileChooser.APPROVE_OPTION)
        {
          String f = outputSelect.getSelectedFile().getAbsolutePath().toLowerCase();
          if(f.endsWith(".wmv") || f.endsWith(".avi") || f.endsWith(".mpeg") || f.endsWith(".mpg") || f.endsWith(".flv") || f.endsWith(".mp4"))
            outputFile.setText(outputSelect.getSelectedFile().getAbsolutePath());
          else
            if(outType.getSelectedIndex() < 3)
              outputFile.setText(outputSelect.getSelectedFile().getAbsolutePath() + ".mpeg");
            else
View Full Code Here

       
        int ret = outputSelect.showSaveDialog(self);
        if(ret == JFileChooser.APPROVE_OPTION)
        {
          String f = outputSelect.getSelectedFile().getAbsolutePath().toLowerCase();
          if(f.endsWith(".wmv") || f.endsWith(".avi") || f.endsWith(".mpeg") || f.endsWith(".mpg") || f.endsWith(".flv") || f.endsWith(".mp4"))
            outputFile.setText(outputSelect.getSelectedFile().getAbsolutePath());
          else
            if(outType.getSelectedIndex() < 3)
              outputFile.setText(outputSelect.getSelectedFile().getAbsolutePath() + ".mpeg");
            else
View Full Code Here

       
        int ret = outputSelect.showSaveDialog(self);
        if(ret == JFileChooser.APPROVE_OPTION)
        {
          String f = outputSelect.getSelectedFile().getAbsolutePath().toLowerCase();
          if(f.endsWith(".wmv") || f.endsWith(".avi") || f.endsWith(".mpeg") || f.endsWith(".mpg") || f.endsWith(".flv") || f.endsWith(".mp4"))
            outputFile.setText(outputSelect.getSelectedFile().getAbsolutePath());
          else
            if(outType.getSelectedIndex() < 3)
              outputFile.setText(outputSelect.getSelectedFile().getAbsolutePath() + ".mpeg");
            else
View Full Code Here

       
        int ret = outputSelect.showSaveDialog(self);
        if(ret == JFileChooser.APPROVE_OPTION)
        {
          String f = outputSelect.getSelectedFile().getAbsolutePath().toLowerCase();
          if(f.endsWith(".wmv") || f.endsWith(".avi") || f.endsWith(".mpeg") || f.endsWith(".mpg") || f.endsWith(".flv") || f.endsWith(".mp4"))
            outputFile.setText(outputSelect.getSelectedFile().getAbsolutePath());
          else
            if(outType.getSelectedIndex() < 3)
              outputFile.setText(outputSelect.getSelectedFile().getAbsolutePath() + ".mpeg");
            else
View Full Code Here

    pkgFileName = pkgFileName.replace(File.separatorChar, '/');
      }
            Iterator jarContentIter = jarContents.iterator();
      while (jarContentIter.hasNext()) {
                String file = (String) jarContentIter.next();
    if (file.startsWith(pkgFileName) && file.endsWith(".class")) {
        file = removeDotClass(file);
        if (recurse ||
      file.indexOf('/', pkgFileName.length() + 1) < 0)
        {
      /*
 
View Full Code Here

        // reread skins
        skinFiles = FileUtils.getDirListing(skinPath, SKIN_FILENAME_FILTER);
        Collections.sort(skinFiles);
        int count = 0;
        for (final String skinFile : skinFiles) {
            if (skinFile.endsWith(".css")) {
                prop.put("skinlist_" + count + "_file", skinFile);
                prop.put("skinlist_" + count + "_name", skinFile.substring(0, skinFile.length() - 4));
                count++;
            }
        }
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.