@Retention(SOURCE)
public static @interface MIMEResolver.ExtensionRegistration
If this kind of registration seems to trivial you can try
MIMEResolver.NamespaceRegistration or MIMEResolver.Registration.
| Modifier and Type | Required Element | Description |
|---|---|---|
java.lang.String |
displayName |
Display name to present this type of objects to the user.
|
java.lang.String[] |
extension |
One or few extensions that should be recognized as given
mimeType(). |
java.lang.String |
mimeType |
Mime type to be assigned to files with
extension(). |
| Modifier and Type | Optional Element | Description |
|---|---|---|
int |
position |
In case ordering of mime resolvers is important, one can
specify it by defining their
position. |
java.lang.String[] |
showInFileChooser |
Show file filters for this MIME type.
|
java.lang.String displayName
java.lang.String mimeType
extension().java.lang.String[] extension
mimeType().Built on April 24 2018. | Portions Copyright 1997-2018 Oracle. All rights reserved.