public class ContentType extends Object
Modifier and Type | Field and Description |
---|---|
static ContentType |
AUDIO |
static ContentType |
AUDIO_RH |
static ContentType |
AUDIO_RP |
static ContentType |
AUDIO_SSD |
private static ContentType[] |
contentTypes |
static ContentType |
IMAGE |
private String |
mainType |
private String |
subType |
static ContentType |
TEXT |
static ContentType |
TEXT_TFIDF |
static ContentType |
UNKNOWN |
Modifier | Constructor and Description |
---|---|
private |
ContentType(String type) |
private |
ContentType(String mainType,
String subtype) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
String |
getMainType() |
String |
getSubtype() |
int |
hashCode() |
boolean |
isAudio() |
boolean |
isImage() |
boolean |
isSparse() |
boolean |
isText() |
static void |
main(String[] args) |
static ContentType |
parse(String s) |
String |
toString() |
private String mainType
private String subType
public static final ContentType AUDIO
public static final ContentType AUDIO_RP
public static final ContentType AUDIO_RH
public static final ContentType AUDIO_SSD
public static final ContentType TEXT
public static final ContentType TEXT_TFIDF
public static final ContentType IMAGE
public static final ContentType UNKNOWN
private static final ContentType[] contentTypes
private ContentType(String type)
public String getMainType()
public String getSubtype()
public static ContentType parse(String s)
public boolean isAudio()
public boolean isText()
public boolean isImage()
public boolean isSparse()
public static void main(String[] args)