@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 |
|---|---|---|
String |
displayName |
Display name to present this type of objects to the user.
|
String[] |
extension |
One or few extensions that should be recognized as given
mimeType(). |
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. |
String[] |
showInFileChooser |
Show file filters for this MIME type.
|
String displayName
String mimeType
extension().String[] extension
mimeType().int position
position.String[] showInFileChooser
FileChooserBuilder#addDefaultFileFilters()Built on April 24 2018. | Portions Copyright 1997-2018 Oracle. All rights reserved.