Package ai.protify.core.response
Enum MimeType
- java.lang.Object
-
- java.lang.Enum<MimeType>
-
- ai.protify.core.response.MimeType
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetMimeType()static MimeTypevalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static MimeType[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
JSON
public static final MimeType JSON
-
TEXT
public static final MimeType TEXT
-
HTML
public static final MimeType HTML
-
XML
public static final MimeType XML
-
CSV
public static final MimeType CSV
-
MARKDOWN
public static final MimeType MARKDOWN
-
YAML
public static final MimeType YAML
-
PDF
public static final MimeType PDF
-
DOCX
public static final MimeType DOCX
-
XLSX
public static final MimeType XLSX
-
PPTX
public static final MimeType PPTX
-
JPG
public static final MimeType JPG
-
JPEG
public static final MimeType JPEG
-
PNG
public static final MimeType PNG
-
GIF
public static final MimeType GIF
-
WEBP
public static final MimeType WEBP
-
HEIC
public static final MimeType HEIC
-
HEIF
public static final MimeType HEIF
-
AVIF
public static final MimeType AVIF
-
SVG
public static final MimeType SVG
-
TIFF
public static final MimeType TIFF
-
MP3
public static final MimeType MP3
-
WAV
public static final MimeType WAV
-
M4A
public static final MimeType M4A
-
FLAC
public static final MimeType FLAC
-
MP4
public static final MimeType MP4
-
MOV
public static final MimeType MOV
-
AVI
public static final MimeType AVI
-
OCTET_STREAM
public static final MimeType OCTET_STREAM
-
-
Method Detail
-
values
public static MimeType[] 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 (MimeType c : MimeType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static MimeType valueOf(java.lang.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:
java.lang.IllegalArgumentException- if this enum type has no constant with the specified namejava.lang.NullPointerException- if the argument is null
-
getMimeType
public java.lang.String getMimeType()
-
-