@Retention(value=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 and 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 and 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.
|
public abstract String displayName
public abstract String mimeType
extension()
.public abstract String[] extension
mimeType()
.public abstract int position
position
.public abstract String[] showInFileChooser
FileChooserBuilder#addDefaultFileFilters()
Built on May 31 2023. | Copyright © 2017-2023 Apache Software Foundation. All Rights Reserved.