public enum EMimeContentType extends Enum<EMimeContentType> implements IHasID<String>
| Enum Constant and Description |
|---|
_STAR |
APPLICATION |
AUDIO |
CHEMICAL |
EXAMPLE |
FLV_APPLICATION |
IMAGE |
INODE |
MESSAGE |
MODEL |
MULTIPART |
TEXT |
VIDEO |
WWW |
X_CONFERENCE |
X_CONTENT |
X_DIRECTORY |
X_EPOC |
X_WORLD |
ZZ_APPLICATION |
| Modifier and Type | Method and Description |
|---|---|
MimeType |
buildMimeType(String sContentSubType)
Build a new
MimeType based on this MIME content type and the
provided sub type. |
static EMimeContentType |
getFromIDOrNull(String sID) |
String |
getID()
Get the unique ID of this object.
|
String |
getText() |
boolean |
isTypeOf(String sMimeType)
Check if the passed MIME type has the same content type as this
|
static EMimeContentType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static EMimeContentType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOfgetComparatorIDpublic static final EMimeContentType APPLICATION
public static final EMimeContentType AUDIO
public static final EMimeContentType EXAMPLE
public static final EMimeContentType IMAGE
public static final EMimeContentType MESSAGE
public static final EMimeContentType MODEL
public static final EMimeContentType MULTIPART
public static final EMimeContentType TEXT
public static final EMimeContentType VIDEO
public static final EMimeContentType CHEMICAL
public static final EMimeContentType FLV_APPLICATION
public static final EMimeContentType INODE
public static final EMimeContentType WWW
public static final EMimeContentType X_CONFERENCE
public static final EMimeContentType X_CONTENT
public static final EMimeContentType X_DIRECTORY
public static final EMimeContentType X_EPOC
public static final EMimeContentType X_WORLD
public static final EMimeContentType ZZ_APPLICATION
public static final EMimeContentType _STAR
public static EMimeContentType[] values()
for (EMimeContentType c : EMimeContentType.values()) System.out.println(c);
public static EMimeContentType valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is null@Nonnull @Nonempty public String getID()
IHasIDString than the
returned value must match an XML NMToken expression (so e.g. no ':' in the
ID)!@Nonnull public MimeType buildMimeType(@Nonnull @Nonempty String sContentSubType)
MimeType based on this MIME content type and the
provided sub type.sContentSubType - The content sub type to append. May neither be null nor
empty.null.public boolean isTypeOf(@Nullable String sMimeType)
sMimeType - The MIME type string to be checked. May be null.true if the passed MIME type has this content type,
false otherwise@Nullable public static EMimeContentType getFromIDOrNull(@Nullable String sID)
Copyright © 2014–2017 Philip Helger. All rights reserved.