Package com.adobe.pdfservices.operation
Enum PDFServicesMediaType
- java.lang.Object
-
- java.lang.Enum<PDFServicesMediaType>
-
- com.adobe.pdfservices.operation.PDFServicesMediaType
-
- All Implemented Interfaces:
Serializable
,Comparable<PDFServicesMediaType>
public enum PDFServicesMediaType extends Enum<PDFServicesMediaType>
A mapping of Media types and extension.Refer : Mozilla MIME type IANA media types
-
-
Enum Constant Summary
Enum Constants Enum Constant Description AI
Represents ai mime type.BMP
Represents bmp mime type.CSV
Represents csv mime type.DOC
Represents msword mime type.DOCX
Represents docx mime type.GIF
Represents gif mime type.HTML
Represents html mime type.INDD
Represents indd mime type.JPEG
Represents jpeg mime type.JPG
Represents jpg mime type.JSON
Represents json mime type.PDF
Represents pdf mime type.PNG
Represents png mime type.PPT
Represents ppt mime type.PPTX
Represents pptx mime type.PSD
Represents psd mime type.RTF
Represents rtf mime type.SVG
Represents svg mime type.TIF
Represents tif mime type.TIFF
Represents tiff mime type.TXT
Represents txt mime type.XLS
Represents xls mime type.XLSX
Represents xlsx mime type.ZIP
Represents zip mime type.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getExtension()
Returns the extension ofPDFServicesMediaType
.static PDFServicesMediaType
getFromExtension(String extension)
Returns thePDFServicesMediaType
for the given extension.static PDFServicesMediaType
getFromMimeType(String mimeType)
Returns thePDFServicesMediaType
for the given mime type.String
getMediaType()
Returns the media type ofPDFServicesMediaType
.static PDFServicesMediaType
valueOf(String name)
Returns the enum constant of this type with the specified name.static PDFServicesMediaType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
AI
public static final PDFServicesMediaType AI
Represents ai mime type.
-
BMP
public static final PDFServicesMediaType BMP
Represents bmp mime type.
-
DOC
public static final PDFServicesMediaType DOC
Represents msword mime type.
-
DOCX
public static final PDFServicesMediaType DOCX
Represents docx mime type.
-
GIF
public static final PDFServicesMediaType GIF
Represents gif mime type.
-
HTML
public static final PDFServicesMediaType HTML
Represents html mime type.
-
INDD
public static final PDFServicesMediaType INDD
Represents indd mime type.
-
JPEG
public static final PDFServicesMediaType JPEG
Represents jpeg mime type.
-
JPG
public static final PDFServicesMediaType JPG
Represents jpg mime type.
-
PDF
public static final PDFServicesMediaType PDF
Represents pdf mime type.
-
PNG
public static final PDFServicesMediaType PNG
Represents png mime type.
-
PPT
public static final PDFServicesMediaType PPT
Represents ppt mime type.
-
PPTX
public static final PDFServicesMediaType PPTX
Represents pptx mime type.
-
PSD
public static final PDFServicesMediaType PSD
Represents psd mime type.
-
RTF
public static final PDFServicesMediaType RTF
Represents rtf mime type.
-
TIF
public static final PDFServicesMediaType TIF
Represents tif mime type.
-
TIFF
public static final PDFServicesMediaType TIFF
Represents tiff mime type.
-
TXT
public static final PDFServicesMediaType TXT
Represents txt mime type.
-
XLS
public static final PDFServicesMediaType XLS
Represents xls mime type.
-
XLSX
public static final PDFServicesMediaType XLSX
Represents xlsx mime type.
-
ZIP
public static final PDFServicesMediaType ZIP
Represents zip mime type.
-
JSON
public static final PDFServicesMediaType JSON
Represents json mime type.
-
CSV
public static final PDFServicesMediaType CSV
Represents csv mime type.
-
SVG
public static final PDFServicesMediaType SVG
Represents svg mime type.
-
-
Method Detail
-
values
public static PDFServicesMediaType[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (PDFServicesMediaType c : PDFServicesMediaType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static PDFServicesMediaType valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
getFromMimeType
public static PDFServicesMediaType getFromMimeType(String mimeType)
Returns thePDFServicesMediaType
for the given mime type.- Parameters:
mimeType
- mime type of the file.- Returns:
PDFServicesMediaType
for the given mime type
-
getFromExtension
public static PDFServicesMediaType getFromExtension(String extension)
Returns thePDFServicesMediaType
for the given extension.- Parameters:
extension
- extension of the file.- Returns:
PDFServicesMediaType
for the given extension
-
getMediaType
public String getMediaType()
Returns the media type ofPDFServicesMediaType
.- Returns:
- media type of
PDFServicesMediaType
-
getExtension
public String getExtension()
Returns the extension ofPDFServicesMediaType
.- Returns:
- extension of
PDFServicesMediaType
-
-