public interface MimeActionI
Implementations of this interface define how a file of a specific type should be opened, viewed, or executed by the operating system or a specific application.
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getViewCommand(java.io.File f)
Generates the executable command string required to view or open the specified file.
|
java.lang.String |
toString()
Returns a string representation of this MIME action.
|
java.lang.String getViewCommand(java.io.File f)
This method resolves any necessary placeholders (like %f, %u) in the underlying command template with the actual path or URI of the provided file.
f - The file for which the view command should be generated.java.lang.String toString()
This is typically used for logging or debugging purposes to identify which application or desktop file is handling the action.
toString in class java.lang.ObjectCopyright © 2000-2026 OAshi S.à r.l. All Rights Reserved.