com.norconex.importer
Class ContentType

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

Field Summary
static ContentType HTML
           
static ContentType PDF
           
static ContentType XPDF
           
 
Method Summary
 boolean equals(Object obj)
           
 int hashCode()
           
static ContentType newContentType(String contentType)
          Creates a new content type.
 String toString()
          Returns a string representation of the content-type.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

HTML

public static final ContentType HTML

PDF

public static final ContentType PDF

XPDF

public static final ContentType XPDF
Method Detail

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.