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 AIRepresents ai mime type.BMPRepresents bmp mime type.CSVRepresents csv mime type.DOCRepresents msword mime type.DOCXRepresents docx mime type.GIFRepresents gif mime type.HTMLRepresents html mime type.INDDRepresents indd mime type.JPEGRepresents jpeg mime type.JPGRepresents jpg mime type.JSONRepresents json mime type.PDFRepresents pdf mime type.PNGRepresents png mime type.PPTRepresents ppt mime type.PPTXRepresents pptx mime type.PSDRepresents psd mime type.RTFRepresents rtf mime type.SVGRepresents svg mime type.TIFRepresents tif mime type.TIFFRepresents tiff mime type.TXTRepresents txt mime type.XLSRepresents xls mime type.XLSXRepresents xlsx mime type.ZIPRepresents zip mime type.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetExtension()Returns the extension ofPDFServicesMediaType.static PDFServicesMediaTypegetFromExtension(String extension)Returns thePDFServicesMediaTypefor the given extension.static PDFServicesMediaTypegetFromMimeType(String mimeType)Returns thePDFServicesMediaTypefor the given mime type.StringgetMediaType()Returns the media type ofPDFServicesMediaType.static PDFServicesMediaTypevalueOf(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 thePDFServicesMediaTypefor the given mime type.- Parameters:
mimeType- mime type of the file.- Returns:
PDFServicesMediaTypefor the given mime type
-
getFromExtension
public static PDFServicesMediaType getFromExtension(String extension)
Returns thePDFServicesMediaTypefor the given extension.- Parameters:
extension- extension of the file.- Returns:
PDFServicesMediaTypefor 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
-
-