|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.meshcms.core.FileTypes
Contains data about file types and extension.
Nested Class Summary | |
static class |
FileTypes.TypeInfo
|
Field Summary | |
static java.lang.String |
DEFAULT_ICON
Default icon for unknown file types. |
static java.lang.String |
DIR_ICON
Default icon for folders. |
static FileTypes.TypeInfo |
DIRECTORY
Denotes a directory. |
static java.util.SortedMap |
EXT_MAP
|
static int |
HTML_ID
Id of static HTML files. |
static int |
SERVERSIDE_ID
Id of server-side HTML files (e.g. |
static FileTypes.TypeInfo |
UNKNOWN
Denotes an unknown file type. |
Constructor Summary | |
FileTypes()
|
Method Summary | |
static java.lang.String |
getDescription(java.lang.String fileName)
Returns the description of the type of the file. |
static java.lang.String |
getIconFile(java.lang.String fileName)
Returns the name of the icon file for the type of the given file. |
static boolean |
isCompressible(java.lang.String fileName)
Returns true if the file is supposed to be compressible. |
static boolean |
isLike(java.lang.String fileName,
java.lang.String extension)
Returns true if the type of the file is the same as the given extension. |
static boolean |
isPage(java.lang.String fileName)
Returns true if the file is a page (static or server-side). |
static boolean |
isPreventHotlinking(java.lang.String fileName)
Returns true if the file should be referred from a page to be accessed. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final java.util.SortedMap EXT_MAP
public static final java.lang.String DEFAULT_ICON
public static final java.lang.String DIR_ICON
public static final FileTypes.TypeInfo UNKNOWN
public static final FileTypes.TypeInfo DIRECTORY
public static final int HTML_ID
public static final int SERVERSIDE_ID
Constructor Detail |
public FileTypes()
Method Detail |
public static boolean isLike(java.lang.String fileName, java.lang.String extension)
public static java.lang.String getDescription(java.lang.String fileName)
public static java.lang.String getIconFile(java.lang.String fileName)
public static boolean isCompressible(java.lang.String fileName)
public static boolean isPreventHotlinking(java.lang.String fileName)
public static boolean isPage(java.lang.String fileName)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |