public class ContentType
extends java.lang.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 java.lang.String |
mainType |
private java.lang.String |
subType |
static ContentType |
TEXT |
static ContentType |
TEXT_TFIDF |
static ContentType |
UNKNOWN |
Modifier | Constructor and Description |
---|---|
private |
ContentType(java.lang.String type) |
private |
ContentType(java.lang.String mainType,
java.lang.String subtype) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getMainType() |
java.lang.String |
getSubtype() |
int |
hashCode() |
boolean |
isAudio() |
boolean |
isImage() |
boolean |
isSparse() |
boolean |
isText() |
static void |
main(java.lang.String[] args) |
static ContentType |
parse(java.lang.String s) |
java.lang.String |
toString() |
private java.lang.String mainType
private java.lang.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(java.lang.String type)
private ContentType(java.lang.String mainType, java.lang.String subtype)
public java.lang.String getMainType()
public java.lang.String getSubtype()
public java.lang.String toString()
toString
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public static ContentType parse(java.lang.String s)
public boolean isAudio()
public boolean isText()
public boolean isImage()
public boolean isSparse()
public static void main(java.lang.String[] args)