Package com.xinapse.multisliceimage.UNC
Class UNCFileFilter
java.lang.Object
javax.swing.filechooser.FileFilter
com.xinapse.multisliceimage.UNC.UNCFileFilter
A file filter for UNC images. The accept method returns
true
if the
file starts with the UNC Magic Number.-
Field Summary
Modifier and TypeFieldDescriptionstatic final UNCFileFilter
The only instance of a UNCFileFilter. -
Method Summary
Modifier and TypeMethodDescriptionboolean
Tests whether the given file probably represents a UNC image file.Returns "UNC Images".
-
Field Details
-
INSTANCE
The only instance of a UNCFileFilter.
-
-
Method Details
-
getDescription
Returns "UNC Images".- Specified by:
getDescription
in classFileFilter
- Returns:
- the description String "UNC Images".
-
accept
Tests whether the given file probably represents a UNC image file. Tests whether the file starts with the UNC Magic Number. Also passes directories to allow navigation while looking for UNC images.- Specified by:
accept
in classFileFilter
- Parameters:
file
- the file to test.- Returns:
true
if the supplied file is probably a UNC image file, or a directory. Returnsfalse
otherwise.
-