Package omero.gateway.util
Class TIFFFilter
- java.lang.Object
-
- omero.gateway.util.TIFFFilter
-
public class TIFFFilter extends java.lang.ObjectMethods to check if an image is aTIFFimage.- Since:
- 5.1
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringBTFPossible file extension.static java.lang.String[]extensionsThe possible extensions.static java.lang.StringMIMETYPEThe MIMEType associated to this type of file.static java.lang.StringTF_2Possible file extension.static java.lang.StringTF_8Possible file extension.static java.lang.StringTIFPossible file extension.static java.lang.StringTIFFPossible file extension.
-
Constructor Summary
Constructors Constructor Description TIFFFilter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanaccept(java.io.File f)Accepts or not the file with the declared file extensions.booleanaccept(java.lang.String fileName)Accepts or not the file identified by its name.java.lang.StringgetDescription()Returns the description of the filter.java.lang.StringgetExtension()Returns the extension of the filter.java.lang.StringgetMIMEType()Returns the MIME type.
-
-
-
Field Detail
-
MIMETYPE
public static final java.lang.String MIMETYPE
The MIMEType associated to this type of file.- See Also:
- Constant Field Values
-
TIFF
public static final java.lang.String TIFF
Possible file extension.- See Also:
- Constant Field Values
-
TIF
public static final java.lang.String TIF
Possible file extension.- See Also:
- Constant Field Values
-
TF_2
public static final java.lang.String TF_2
Possible file extension.- See Also:
- Constant Field Values
-
TF_8
public static final java.lang.String TF_8
Possible file extension.- See Also:
- Constant Field Values
-
BTF
public static final java.lang.String BTF
Possible file extension.- See Also:
- Constant Field Values
-
extensions
public static final java.lang.String[] extensions
The possible extensions.
-
-
Method Detail
-
getMIMEType
public java.lang.String getMIMEType()
Returns the MIME type.- Returns:
- See above.
-
getExtension
public java.lang.String getExtension()
Returns the extension of the filter.- Returns:
- See above.
-
getDescription
public java.lang.String getDescription()
Returns the description of the filter.- Returns:
- See above.
-
accept
public boolean accept(java.io.File f)
Accepts or not the file with the declared file extensions.- Parameters:
f- The file to handle.- Returns:
- See above.
-
accept
public boolean accept(java.lang.String fileName)
Accepts or not the file identified by its name.- Parameters:
fileName- The name of the file.- Returns:
- See above.
-
-