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
-
Nested Class Summary
Nested classes/interfaces inherited from class org.esa.snap.core.util.io.SnapFileFilter
SnapFileFilter.FileSelectionMode -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanTests 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
-
Constructor Details
-
DimapFileFilter
public DimapFileFilter()
-
-
Method Details
-
accept
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
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.
-