Package com.day.cq.wcm.foundation
Class FileTypes
- java.lang.Object
-
- java.util.AbstractMap<java.lang.String,java.lang.String>
-
- com.day.cq.wcm.foundation.FileTypes
-
- All Implemented Interfaces:
java.util.Map<java.lang.String,java.lang.String>
public class FileTypes extends java.util.AbstractMap<java.lang.String,java.lang.String>
FileTypes
implements a map for human readable file types using the IANA mime type as a key.
-
-
Constructor Summary
Constructors Constructor Description FileTypes()
Default constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.Set<java.util.Map.Entry<java.lang.String,java.lang.String>>
entrySet()
java.lang.String
get(java.lang.Object mimeType)
Returns the file type (for display) for the given mime type.
-
-
-
Method Detail
-
entrySet
public java.util.Set<java.util.Map.Entry<java.lang.String,java.lang.String>> entrySet()
- Specified by:
entrySet
in interfacejava.util.Map<java.lang.String,java.lang.String>
- Specified by:
entrySet
in classjava.util.AbstractMap<java.lang.String,java.lang.String>
-
get
public java.lang.String get(java.lang.Object mimeType)
Returns the file type (for display) for the given mime type.- Specified by:
get
in interfacejava.util.Map<java.lang.String,java.lang.String>
- Overrides:
get
in classjava.util.AbstractMap<java.lang.String,java.lang.String>
- Parameters:
mimeType
- the mime type.- Returns:
- the file type for display.
-
-