com.norconex.importer
Class ContentType
java.lang.Object
com.norconex.importer.ContentType
- All Implemented Interfaces:
- Serializable
public final class ContentType
- extends Object
- implements Serializable
Represent a document content type (also called MIME-Type or Media Type).
- Author:
- Pascal Essiembre
- See Also:
- Serialized Form
HTML
public static final ContentType HTML
PDF
public static final ContentType PDF
XPDF
public static final ContentType XPDF
newContentType
public static ContentType newContentType(String contentType)
- Creates a new content type. Returns an existing instance if the
same content type is requested more than once.
- Parameters:
contentType
- the official media type name
- Returns:
- content type
hashCode
public int hashCode()
- Overrides:
hashCode
in class Object
equals
public boolean equals(Object obj)
- Overrides:
equals
in class Object
toString
public String toString()
- Returns a string representation of the content-type.
- Overrides:
toString
in class Object
Copyright © 2009-2013 Norconex Inc.. All Rights Reserved.