- java.lang.Object
-
- jakarta.activation.MimeTypeEntry
-
public class MimeTypeEntry extends java.lang.Object
Represents mapping between the file extension and the MIME type string.
-
-
Constructor Summary
Constructors Constructor Description MimeTypeEntry(java.lang.String mime_type, java.lang.String file_ext)
Create newMimeTypeEntry
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getFileExtension()
Get the file extensionjava.lang.String
getMIMEType()
Get MIME type stringjava.lang.String
toString()
-
-
-
Method Detail
-
getMIMEType
public java.lang.String getMIMEType()
Get MIME type string- Returns:
- the MIME type string
-
getFileExtension
public java.lang.String getFileExtension()
Get the file extension- Returns:
- the file extension
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-