com.ibm.are.platform
Interface FileTypeIdentifier

All Known Implementing Classes:
FileTypes

public interface FileTypeIdentifier

The FileTypeIdentifier interface defines methods for identifying the file type based on either a fully qualified path to the file or simply a string name for the file.

Version:
1.0
Author:
IBM

Field Summary
static java.lang.String COPYRIGHT
          Copyright for class bytecode
 
Method Summary
 FileTypes fromPath(java.io.File theFile)
          Determines the file type from the given path
 FileTypes fromString(java.lang.String theFile)
          Determines the file type from the given string
 

Field Detail

COPYRIGHT

static final java.lang.String COPYRIGHT
Copyright for class bytecode

See Also:
Constant Field Values
Method Detail

fromPath

FileTypes fromPath(java.io.File theFile)
Determines the file type from the given path

Parameters:
theFile - The full path and name of the file
Returns:
The file type

fromString

FileTypes fromString(java.lang.String theFile)
Determines the file type from the given string

Parameters:
theFile - A string representing the file. This string is typically just a file path.
Returns:
The file type