at.tuwien.ifs.feature
Class ContentType
java.lang.Object
at.tuwien.ifs.feature.ContentType
public class ContentType
- extends java.lang.Object
- Version:
- $Id: ContentType.java 4030 2011-01-29 22:29:19Z mayer $
- Author:
- Rudolf Mayer
Constructor Summary |
private |
ContentType(java.lang.String type)
|
private |
ContentType(java.lang.String mainType,
java.lang.String subtype)
|
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
mainType
private java.lang.String mainType
subType
private java.lang.String subType
AUDIO
public static final ContentType AUDIO
AUDIO_RP
public static final ContentType AUDIO_RP
AUDIO_RH
public static final ContentType AUDIO_RH
AUDIO_SSD
public static final ContentType AUDIO_SSD
TEXT
public static final ContentType TEXT
TEXT_TFIDF
public static final ContentType TEXT_TFIDF
IMAGE
public static final ContentType IMAGE
UNKNOWN
public static final ContentType UNKNOWN
contentTypes
private static final ContentType[] contentTypes
ContentType
private ContentType(java.lang.String type)
ContentType
private ContentType(java.lang.String mainType,
java.lang.String subtype)
getMainType
public java.lang.String getMainType()
getSubtype
public java.lang.String getSubtype()
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in class java.lang.Object
hashCode
public int hashCode()
- Overrides:
hashCode
in class java.lang.Object
parse
public static ContentType parse(java.lang.String s)
isAudio
public boolean isAudio()
isText
public boolean isText()
isImage
public boolean isImage()
isSparse
public boolean isSparse()
main
public static void main(java.lang.String[] args)