org.littleshoot.util
Interface ResourceTypeTranslator

All Known Implementing Classes:
ResourceTypeTranslatorImpl

public interface ResourceTypeTranslator

Interface for classes that can determine resource types based on different criteria.


Method Summary
 String getType(String fileName)
          Determines the resource type for a file name.
 boolean isAudioOrVideo(String type)
          Returns whether or not the specified type is an audio or video type.
 

Method Detail

getType

String getType(String fileName)
Determines the resource type for a file name. Possible types are video, audio, document, application, etc.

Parameters:
fileName - The name of the file to determine the type for.
Returns:
The type of the file.

isAudioOrVideo

boolean isAudioOrVideo(String type)
Returns whether or not the specified type is an audio or video type.

Parameters:
type - The type to analyze.
Returns:
true if it's an audio or video type, otherwise false.


Copyright © 2011-2013 LittleShoot. All Rights Reserved.