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 booleanaccept(File file)Tests whether or not the given file is accepted by this filter.booleanisCompoundDocument(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:SnapFileFilterTests whether or not the given file is accepted by this filter. The default implementation returnstrueif 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:
acceptin classSnapFileFilter- Parameters:
file- the file to be or not be accepted.- Returns:
trueif given file is accepted by this filter
-
isCompoundDocument
public boolean isCompoundDocument(File dir)
Description copied from class:SnapFileFilterChecks 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:
isCompoundDocumentin classSnapFileFilter- Parameters:
dir- The directory to check.- Returns:
trueIf the given directory represents a compound document.
-
-