Top Description Fields Constructors Methods
jakarta.activation

public Class MimeTypeEntry

extends Object
Class Inheritance

Represents mapping between the file extension and the MIME type string.

Field Summary

Modifier and TypeField and Description
private String
private String

Constructor Summary

AccessConstructor and Description
public
MimeTypeEntry(String
the MIME type string
mime_type
,
String
the file extension
file_ext
)

Create new MimeTypeEntry

Method Summary

Modifier and TypeMethod and Description
public String

Returns:

the file extension
getFileExtension
()

Get the file extension

public String

Returns:

the MIME type string
getMIMEType
()

Get MIME type string

public String
toString()

Overrides java.lang.Object.toString.

Returns a string representation of the object.
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAllwaitwaitwait

Field Detail

extensionback to summary
private String extension
typeback to summary
private String type

Constructor Detail

MimeTypeEntryback to summary
public MimeTypeEntry(String mime_type, String file_ext)

Create new MimeTypeEntry

Parameters
mime_type:String

the MIME type string

file_ext:String

the file extension

Method Detail

getFileExtensionback to summary
public String getFileExtension()

Get the file extension

Returns:String

the file extension

getMIMETypeback to summary
public String getMIMEType()

Get MIME type string

Returns:String

the MIME type string

toStringback to summary
public String toString()

Overrides java.lang.Object.toString.

Doc from java.lang.Object.toString.

Returns a string representation of the object.

Returns:String

a string representation of the object.

Annotations
@Override