at.tuwien.ifs.feature
Class ContentType

java.lang.Object
  extended by 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

Field Summary
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
           
 
Constructor Summary
private ContentType(java.lang.String type)
           
private ContentType(java.lang.String mainType, java.lang.String subtype)
           
 
Method Summary
 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()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

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
Constructor Detail

ContentType

private ContentType(java.lang.String type)

ContentType

private ContentType(java.lang.String mainType,
                    java.lang.String subtype)
Method Detail

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)