br.usp.ime.klava.segmentit.formats
Class ImageFileFormats

java.lang.Object
  extended by br.usp.ime.klava.segmentit.formats.ImageFileFormats

public class ImageFileFormats
extends java.lang.Object

Manages the supported formats for reading and writing file images.

Author:
Bruno Klava

Constructor Summary
ImageFileFormats()
           
 
Method Summary
static java.lang.String getExtension(java.io.File file)
          Returns the extension of a given file.
static java.util.List<java.lang.String> getReadFormats()
          Returns the formats supported to read image files.
static java.lang.String getSupportedFormats()
          Returns a description of the supported formats for reading and writing image files.
static java.util.List<java.lang.String> getWriteFormats()
          Returns the formats supported to write image files.
static boolean isWriteFormatSupported(java.lang.String format)
          Returns if the given format is supported for image files writing.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ImageFileFormats

public ImageFileFormats()
Method Detail

getExtension

public static java.lang.String getExtension(java.io.File file)
Returns the extension of a given file.

Parameters:
file - the file whose extension is desired
Returns:
the extension of file

getSupportedFormats

public static java.lang.String getSupportedFormats()
Returns a description of the supported formats for reading and writing image files.

Returns:
a description of the supported formats for reading and writing image files

getReadFormats

public static java.util.List<java.lang.String> getReadFormats()
Returns the formats supported to read image files.

Returns:
the formats supported to read image files

getWriteFormats

public static java.util.List<java.lang.String> getWriteFormats()
Returns the formats supported to write image files.

Returns:
the formats supported to write image files

isWriteFormatSupported

public static boolean isWriteFormatSupported(java.lang.String format)
Returns if the given format is supported for image files writing.

Parameters:
format - the candidate format to write file images
Returns:
true if format is a supported format for image files writing