public class DocumentType extends Object implements Serializable, Comparable<DocumentType>
| Modifier and Type | Class and Description |
|---|---|
static class |
DocumentType.Value
A holder type for type and subtype names of known
DocumentTypes. |
| Modifier and Type | Field and Description |
|---|---|
static DocumentType |
CSV |
static DocumentType |
DOC |
static DocumentType |
DOCX |
static DocumentType |
MHTML |
static DocumentType |
MS_EXCEL |
static DocumentType |
MS_WORD |
static DocumentType |
ODS |
static DocumentType |
PDF |
static DocumentType |
PDFA |
static DocumentType |
RTF |
static DocumentType |
TEXT |
static DocumentType |
XLS |
static DocumentType |
XLSX |
static DocumentType |
XML |
| Constructor and Description |
|---|
DocumentType(String fullType)
Creates a new document type.
|
DocumentType(String type,
String subtype)
Creates a new document type.
|
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(DocumentType other) |
boolean |
equals(Object other) |
String |
getSubtype() |
String |
getType() |
int |
hashCode() |
String |
toString() |
public static final DocumentType MS_WORD
public static final DocumentType RTF
public static final DocumentType DOCX
public static final DocumentType DOC
public static final DocumentType MS_EXCEL
public static final DocumentType XLSX
public static final DocumentType XLS
public static final DocumentType ODS
public static final DocumentType CSV
public static final DocumentType XML
public static final DocumentType MHTML
public static final DocumentType PDF
public static final DocumentType PDFA
public static final DocumentType TEXT
public DocumentType(String type, String subtype)
type - The MIME type's type name.subtype - The MIME type's subtype name.public DocumentType(String fullType)
fullType - The MIME type's type name and subtype name, separated by a /.public String getType()
public String getSubtype()
public int compareTo(DocumentType other)
compareTo in interface Comparable<DocumentType>Copyright © 2013–2016. All rights reserved.