Package org.esa.snap.core.dataio.dimap
Class DimapFileFilter
- java.lang.Object
-
- javax.swing.filechooser.FileFilter
-
- org.esa.snap.core.util.io.SnapFileFilter
-
- org.esa.snap.core.dataio.dimap.DimapFileFilter
-
public class DimapFileFilter extends SnapFileFilter
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.esa.snap.core.util.io.SnapFileFilter
SnapFileFilter.FileSelectionMode
-
-
Constructor Summary
Constructors Constructor Description DimapFileFilter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
accept(File file)
Tests whether or not the given file is accepted by this filter.boolean
isCompoundDocument(File dir)
Checks if the given directory represents a compound document.-
Methods inherited from class org.esa.snap.core.util.io.SnapFileFilter
checkExtension, checkExtension, checkExtensions, equals, getDefaultExtension, getDescription, getExtensions, getFileSelectionMode, getFormatName, getSortedFileFilters, hasExtensions, hashCode, setDescription, setExtensions, setFormatName
-
-
-
-
Method Detail
-
accept
public boolean accept(File file)
Description copied from class:SnapFileFilter
Tests whether or not the given file is accepted by this filter. The default implementation returnstrue
if the given file is a directory or the path string ends with one of the registered extensions. if no extension are defined, the method always returnstrue
- Overrides:
accept
in classSnapFileFilter
- Parameters:
file
- the file to be or not be accepted.- Returns:
true
if given file is accepted by this filter
-
isCompoundDocument
public boolean isCompoundDocument(File dir)
Description copied from class:SnapFileFilter
Checks if the given directory represents a compound document. If so, we don't want the user to descend into it when using theJFileChooser
. The default implementation returnsfalse
. Clients may override.- Overrides:
isCompoundDocument
in classSnapFileFilter
- Parameters:
dir
- The directory to check.- Returns:
true
If the given directory represents a compound document.
-
-