org.knime.core.util
Class SimpleFileFilter
java.lang.Object
javax.swing.filechooser.FileFilter
org.knime.core.util.SimpleFileFilter
public class SimpleFileFilter
- extends FileFilter
Helper class filtering out all files not matching extensions.
- Author:
- Thomas Gabriel, University of Konstanz
Constructor Summary |
SimpleFileFilter(String... exts)
Creates a new simple file filter that filters out all files not
matching the given extensions. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SimpleFileFilter
public SimpleFileFilter(String... exts)
- Creates a new simple file filter that filters out all files not
matching the given extensions.
- Parameters:
exts
- allowed extensions
- Throws:
NullPointerException
- if the extensions array or one of its
elements is null
accept
public boolean accept(File f)
-
- Specified by:
accept
in class FileFilter
getValidExtensions
public String[] getValidExtensions()
- Returns:
- all extensions which are accepted by this filter
getDescription
public String getDescription()
-
- Specified by:
getDescription
in class FileFilter
Copyright, 2003 - 2010. All rights reserved.
University of Konstanz, Germany.
Chair for Bioinformatics and Information Mining, Prof. Dr. Michael R. Berthold.
You may not modify, publish, transmit, transfer or sell, reproduce, create derivative works from, distribute, perform, display,
or in any way exploit any of the content, in whole or in part, except as otherwise expressly permitted in writing by the
copyright owner or as specified in the license file distributed with this product.