|
org.openide.filesystems 8.5.1 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT | |||||||||
@Retention(value=SOURCE) public static @interface MIMEResolver.ExtensionRegistration
Often a mime type can be deduced just by looking at a file extension. If that is your case, this annotation is for you. It associates extension(s) with provided mime type.
If this kind of registration seems to trivial you can try
MIMEResolver.NamespaceRegistration or MIMEResolver.Registration.
| Required Element Summary | |
|---|---|
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(). |
| Optional Element Summary | |
|---|---|
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. |
| Element Detail |
|---|
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()
|
org.openide.filesystems 8.5.1 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT | |||||||||