public interface MimeType extends Serializable
<base type>/<sub type>
.
The base type can be something like application
or text
and
the the sub type can be something like xml
or plain
.
Both the base type and sub type can also be the wild card *
such as
*/*
and text/*
. Note, if the base type is the wild card
then the sub type must also be a wild card.Modifier and Type | Method and Description |
---|---|
String |
getBaseType()
Returns the base type.
|
String |
getExtension()
Get the associated filename extension.
|
Collection<String> |
getExtensions()
Get the possible associated filename extensions.
|
String |
getSubType()
Returns the sub type, means the concrete format.
|
String |
toString()
Returns a string representation of this object.
|
@Nullable String getExtension()
@NotNull Collection<String> getExtensions()
String getBaseType()
String getSubType()
Copyright © 2021 e-Spirit AG. All Rights Reserved. Build 5.2.210210