public static final class HelperApplications.Entry extends Object
Modifier and Type | Field and Description |
---|---|
String |
command
The command (interpreted by the native shell of the platform) used
to start the helper application.
|
FileType |
fileType
The type of files opened by the helper application.
|
Constructor and Description |
---|
Entry(FileType fileType,
String command)
Constructs an entry in the registry of helper applications
associating specified file type to specified helper application.
|
Modifier and Type | Method and Description |
---|---|
static HelperApplications.Entry |
fromString(String spec)
Returns an entry parsed from specified string representation.
|
String |
toString()
Returns a parseable form representing this entry.
|
void |
toString(StringBuilder buffer)
Converts this entry to a parseable form.
|
public final FileType fileType
public final String command
public Entry(FileType fileType, String command) throws IllegalArgumentException
IllegalArgumentException
- if specified command does not
contain one of "%F" or "%U" (but not both)
substituted variables.public String toString()
toString
in class Object
fromString(java.lang.String)
public void toString(StringBuilder buffer)
buffer
- parseable form is appended to this bufferfromString(java.lang.String)
public static HelperApplications.Entry fromString(String spec)
spec
- string representation of the entrynull
if specified string
cannot be parsedtoString()