- java.lang.Object
-
- jakarta.activation.MimeTypeEntry
-
public class MimeTypeEntry extends java.lang.ObjectRepresents 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.StringgetFileExtension()Get the file extensionjava.lang.StringgetMIMEType()Get MIME type stringjava.lang.StringtoString()
-
-
-
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:
toStringin classjava.lang.Object
-
-