## MimeType class

Represents an Internet Media Types

```java
public class MimeType : IEquatable<MimeType>
```

## Constructors

| Name | Description |
| --- | --- |
| [MimeType](mimetype/)(String) | Initializes a new instance of MIME type based on serialized String value. |

## Properties

| Name | Description |
| --- | --- |
| [getSubType](../../com.aspose.html/mimetype/subtype/) Gets the sub media type. |
| [getType](../../com.aspose.html/mimetype/type/) Gets the media type. |

## Methods

| Name | Description |
| --- | --- |
| static [FromFileExtension](../../com.aspose.html/mimetype/fromfileextension/)(String) | Creates a new MIME type based on file extension. |
| [equals](../../com.aspose.html/mimetype/equals/#equals)(MimeType) | Indicates whether the current object is equal to another object of the same type. |
| [equals](../../com.aspose.html/mimetype/equals/#equals_1)(object) | Determines whether the specified Object is equal to the current Object. |
| [getHashCode](../../com.aspose.html/mimetype/gethashcode/)() | Returns a hash code for this instance. |
| [toString](../../com.aspose.html/mimetype/toString/)() | Returns a String that represents Mime type. |
| [operator ==](../../com.aspose.html/mimetype/op_equality/) |  |
| [implicit operator](../../com.aspose.html/mimetype/op_implicit/#op_implicit) |  (2 operators) |
| [operator !=](../../com.aspose.html/mimetype/op_inequality/) |  |

### See Also

* package [com.aspose.html](../../com.aspose.html/)
* package [Aspose.HTML](../../)
