public static enum SpreadsheetDocument.OdfMediaType extends Enum<SpreadsheetDocument.OdfMediaType> implements MediaType
| Enum Constant and Description |
|---|
SPREADSHEET |
SPREADSHEET_TEMPLATE |
| Modifier and Type | Method and Description |
|---|---|
String |
getMediaTypeString() |
static Document.OdfMediaType |
getOdfMediaType(String mediaType) |
String |
getSuffix() |
static SpreadsheetDocument.OdfMediaType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static SpreadsheetDocument.OdfMediaType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final SpreadsheetDocument.OdfMediaType SPREADSHEET
public static final SpreadsheetDocument.OdfMediaType SPREADSHEET_TEMPLATE
public static SpreadsheetDocument.OdfMediaType[] values()
for (SpreadsheetDocument.OdfMediaType c : SpreadsheetDocument.OdfMediaType.values()) System.out.println(c);
public static SpreadsheetDocument.OdfMediaType valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic String getMediaTypeString()
getMediaTypeString in interface MediaTypepublic String getSuffix()
public static Document.OdfMediaType getOdfMediaType(String mediaType)
mediaType - string defining an ODF documentCopyright © 2010–2018 Apache Software Foundation; Copyright © 2018–2020 The Document Foundation. All rights reserved.