Package omero.gateway.util
Class TIFFFilter
- java.lang.Object
-
- omero.gateway.util.TIFFFilter
-
public class TIFFFilter extends java.lang.Object
Methods to check if an image is aTIFF
image.- Since:
- 5.1
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
BTF
Possible file extension.static java.lang.String[]
extensions
The possible extensions.static java.lang.String
MIMETYPE
The MIMEType associated to this type of file.static java.lang.String
TF_2
Possible file extension.static java.lang.String
TF_8
Possible file extension.static java.lang.String
TIF
Possible file extension.static java.lang.String
TIFF
Possible file extension.
-
Constructor Summary
Constructors Constructor Description TIFFFilter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
accept(java.io.File f)
Accepts or not the file with the declared file extensions.boolean
accept(java.lang.String fileName)
Accepts or not the file identified by its name.java.lang.String
getDescription()
Returns the description of the filter.java.lang.String
getExtension()
Returns the extension of the filter.java.lang.String
getMIMEType()
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.
-
-