public boolean accept(File pFile) { // Directories are always supported if (pFile.isDirectory()) { return true; } // Test if we have an ImageWriter for this suffix String suffix = FileUtil.getExtension(pFile); return !StringUtil.isEmpty(suffix) && hasWriterForSuffix(suffix); }
public boolean accept(File pFile) { // Directories are always supported if (pFile.isDirectory()) { return true; } // See if we have an ImageReader for this suffix String suffix = FileUtil.getExtension(pFile); return !StringUtil.isEmpty(suffix) && hasReaderForSuffix(suffix); }
if (extension.equals("ANY") || extension.equals(FileUtil.getExtension(candidate))) {
contentCache.put(pCacheURI + '.' + FileUtil.getExtension(content), response);
public boolean isPresent(final String pFileName) { try { init(); } catch (IOException e) { resetMembers(); return false; } // TODO: Rethink this... // Seems to be up to Windows and the installed programs what formats // are supported... // Some thumbs are just icons, and it might be better to use ImageIO to create thumbs for these... :-/ // At least this seems fine for now String extension = FileUtil.getExtension(pFileName); if (StringUtil.isEmpty(extension)) { return false; } extension = extension.toLowerCase(); return !"psd".equals(extension) && !"svg".equals(extension) && catalog != null && catalog.getIndex(pFileName) != -1; }
format = FileUtil.getExtension(out);
/** * This method implements the {@code java.io.FilenameFilter} interface. * <p/> * * @param pDir the directory in which the file was found. * @param pName the pName of the file. * @return {@code true} if the pName should be included in the file list; * {@code false} otherwise. */ public boolean accept(final File pDir, final String pName) { if (StringUtil.isEmpty(mFilenameSuffixesToExclude)) { return true; } for (String aMFilenameSuffixesToExclude : mFilenameSuffixesToExclude) { // -- Edit by haraldK, to make interfaces more consistent // if (StringUtil.filenameSuffixIs(pName, mFilenameSuffixesToExclude[i])) { if (aMFilenameSuffixesToExclude.equals(FileUtil.getExtension(pName))) { return false; } } return true; } }
public boolean accept(File pFile) { // Directories are always supported if (pFile.isDirectory()) { return true; } // See if we have an ImageReader for this suffix String suffix = FileUtil.getExtension(pFile); return !StringUtil.isEmpty(suffix) && hasReaderForSuffix(suffix); }
public boolean accept(File pFile) { // Directories are always supported if (pFile.isDirectory()) { return true; } // Test if we have an ImageWriter for this suffix String suffix = FileUtil.getExtension(pFile); return !StringUtil.isEmpty(suffix) && hasWriterForSuffix(suffix); }
public boolean accept(File pFile) { // Directories are always supported if (pFile.isDirectory()) { return true; } // Test if we have an ImageWriter for this suffix String suffix = FileUtil.getExtension(pFile); return !StringUtil.isEmpty(suffix) && hasWriterForSuffix(suffix); }
public boolean accept(File pFile) { // Directories are always supported if (pFile.isDirectory()) { return true; } // See if we have an ImageReader for this suffix String suffix = FileUtil.getExtension(pFile); return !StringUtil.isEmpty(suffix) && hasReaderForSuffix(suffix); }
public boolean isPresent(final String pFileName) { try { init(); } catch (IOException e) { resetMembers(); return false; } // TODO: Rethink this... // Seems to be up to Windows and the installed programs what formats // are supported... // Some thumbs are just icons, and it might be better to use ImageIO to create thumbs for these... :-/ // At least this seems fine for now String extension = FileUtil.getExtension(pFileName); if (StringUtil.isEmpty(extension)) { return false; } extension = extension.toLowerCase(); return !"psd".equals(extension) && !"svg".equals(extension) && catalog != null && catalog.getIndex(pFileName) != -1; }
format = FileUtil.getExtension(out);
format = FileUtil.getExtension(out);