org.apache.droids.protocol
Class MediaType
java.lang.Object
org.apache.droids.protocol.MediaType
Deprecated. Soon to be replaced via the tika mediaType support
public class MediaType
- extends Object
Small helper to determine whether a to tested type is a known content type.
Very basic implementation soon to be replaced for more sophisticated solution
based on Apache Tika.
Method Summary |
static boolean |
isContentType(String type)
Deprecated. Test whether a given type is in our array of known media types. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
contentTypes
public static final String[] contentTypes
- Deprecated.
- Officially known contentTypes
isContentType
public static boolean isContentType(String type)
- Deprecated.
- Test whether a given type is in our array of known media types.
- Parameters:
type
- the type in question
- Returns:
- true if the type is a known media type. false otherwise
Copyright © 2008 The Apache Software Foundation