|
JXTA | ||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--net.jxta.share.MimeInfo
The MimeInfo class represents information about a specific mime type.
Constructor Summary | |
MimeInfo(java.lang.String type)
Creates a new MimeInfo object for the specified mime type. |
Method Summary | |
java.lang.String |
getAction()
Returns the default action for this mime type, or null if none. |
java.lang.String |
getApplication()
Returns the application launcher string for this mime type. |
java.lang.String[] |
getApplicationCmdArray(java.lang.String arg)
Returns an array of strings that can be used with Runtime.exec() in order to launch the application appropriate for this mime type. |
java.lang.String |
getDescription()
Returns the description for this mime type, or null if none. |
java.lang.String[] |
getFileExtensions()
Returns the list of file extensions for this mime type, or null if none. |
java.lang.String |
getIcon()
Returns the icon name for this mime type, or null if none. |
java.lang.String |
getType()
Returns the major type for this mime type. |
void |
setAction(java.lang.String action)
Sets the default action for this mime type. |
void |
setApplication(java.lang.String app)
Sets the application launcher string for this mime type. |
void |
setDescription(java.lang.String desc)
Sets the description for this mime type. |
void |
setFileExtensions(java.lang.String[] exts)
Sets the list of file extensions for this mime type. |
void |
setIcon(java.lang.String icon)
Sets the icon name for this mime type. |
java.lang.String |
toString()
Returns a string representation of the mime type. |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
wait,
wait,
wait |
Constructor Detail |
public MimeInfo(java.lang.String type)
Method Detail |
public java.lang.String getType()
public void setDescription(java.lang.String desc)
public java.lang.String getDescription()
public void setFileExtensions(java.lang.String[] exts)
public java.lang.String[] getFileExtensions()
public void setAction(java.lang.String action)
public java.lang.String getAction()
public void setIcon(java.lang.String icon)
public java.lang.String getIcon()
public void setApplication(java.lang.String app)
public java.lang.String getApplication()
public java.lang.String[] getApplicationCmdArray(java.lang.String arg)
MimeTable.getCommandArray()
public java.lang.String toString()
|
JXTA | ||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |