| Constructor and Description |
|---|
MimeType(java.lang.String value)
Initializes a new instance of MIME type based on serialized string value.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(MimeType other)
Indicates whether the current object is equal to another object of the same type.
|
boolean |
equals(java.lang.Object obj)
Determines whether the specified
Object is equal to the current Object. |
static java.lang.String |
extractFileExtension(MimeType mimeType)
Extracts file extension from MIME type.
|
static MimeType |
fromFileExtension(java.lang.String fileName)
Creates a new MIME type based on file extension.
|
java.lang.String |
getSubType()
Gets the sub media type.
|
java.lang.String |
getType()
Gets the media type.
|
int |
hashCode()
Returns a hash code for this instance.
|
static boolean |
op_Equality(MimeType a,
MimeType b)
Compares two Mime type and returns a boolean indicating if the two do match.
|
static boolean |
op_Inequality(MimeType a,
MimeType b)
Compares two Mime type and returns a boolean indicating if the two do match.
|
static MimeType |
to_MimeType(java.lang.String string)
Performs an implicit conversion from
String to MimeType. |
static java.lang.String |
to_String(MimeType type)
Performs an implicit conversion from
MimeType to String. |
java.lang.String |
toString()
Returns a
String that represents Mime type. |
public MimeType(java.lang.String value)
Initializes a new instance of MIME type based on serialized string value.
value - The value.public static boolean op_Equality(MimeType a, MimeType b)
Compares two Mime type and returns a boolean indicating if the two do match.
a - The first Mime to compare.b - The second Mime to compare.
Value: TrueValue: falsepublic static boolean op_Inequality(MimeType a, MimeType b)
Compares two Mime type and returns a boolean indicating if the two do match.
a - The first Mime to compare.b - The second Mime to compare.
Value: TrueValue: falsepublic static MimeType to_MimeType(java.lang.String string)
Performs an implicit conversion from String to MimeType.
string - The string.public static java.lang.String to_String(MimeType type)
Performs an implicit conversion from MimeType to String.
type - The mime type.public static MimeType fromFileExtension(java.lang.String fileName)
Creates a new MIME type based on file extension.
fileName - The name of the file.public static java.lang.String extractFileExtension(MimeType mimeType)
Extracts file extension from MIME type.
mimeType - The MIME type.public java.lang.String getType()
Gets the media type.
Value: The media type.public java.lang.String getSubType()
Gets the sub media type.
Value: The sub media type.public boolean equals(MimeType other)
Indicates whether the current object is equal to another object of the same type.
other - An object to compare with this object.other parameter; otherwise, false.public boolean equals(java.lang.Object obj)
Determines whether the specified Object is equal to the current Object.
equals in interface com.aspose.ms.System.IEquatable<MimeType>equals in class java.lang.Objectobj - The Object to compare with the current Object.Object is equal to the current Object; otherwise, false.public int hashCode()
Returns a hash code for this instance.
hashCode in class java.lang.Objectpublic java.lang.String toString()
Returns a String that represents Mime type.
toString in class java.lang.ObjectString that represents this instance.