APIdia Launch Partner
Top Fields Constructors Methods
sun.net.www

public Class MimeEntry

extends Object
implements Cloneable
Class Inheritance
All Implemented Interfaces
java.lang.Cloneable
Imports
java.io.*, java.util.Locale, .StringJoiner, .StringTokenizer

Field Summary

Modifier and TypeField and Description
private int
pack-priv static final String[]
private String
private String
private String[]
private String
public static final int
public static final int
public static final int
pack-priv boolean
private String
private String
public static final int

Constructor Summary

AccessConstructor and Description
public
MimeEntry(String type)

Construct an empty entry of the given type and subtype.

pack-priv
MimeEntry(String typeName, int action, String command, String imageFileName, String[] fileExtensions)

Method Summary

Modifier and TypeMethod and Description
public Object
clone()

Overrides java.lang.Object.clone.

Creates and returns a copy of this object.

public synchronized int
public synchronized String
public synchronized String[]
public synchronized String
public String
public synchronized String
public String
public synchronized String
private boolean
isStarred(String typeName)

public boolean
public synchronized void
setAction(int action, String command)

public synchronized void
setAction(int action)

public synchronized void
setCommand(String command)

public synchronized void
setDescription(String description)

public synchronized void
setExtensions(String extensionString)

public synchronized void
public synchronized void
public synchronized String
public String
toString()

Overrides java.lang.Object.toString.

Returns a string representation of the object.

Inherited from java.lang.Object:
equalsfinalizegetClasshashCodenotifynotifyAllwaitwaitwait

Field Detail

actionback to summary
private int action
actionKeywordsback to summary
pack-priv static final String[] actionKeywords
commandback to summary
private String command
descriptionback to summary
private String description
fileExtensionsback to summary
private String[] fileExtensions
imageFileNameback to summary
private String imageFileName
LAUNCH_APPLICATIONback to summary
public static final int LAUNCH_APPLICATION
LOAD_INTO_BROWSERback to summary
public static final int LOAD_INTO_BROWSER
SAVE_TO_FILEback to summary
public static final int SAVE_TO_FILE
starredback to summary
pack-priv boolean starred
tempFileNameTemplateback to summary
private String tempFileNameTemplate
typeNameback to summary
private String typeName
UNKNOWNback to summary
public static final int UNKNOWN

Constructor Detail

MimeEntryback to summary
public MimeEntry(String type)

Construct an empty entry of the given type and subtype.

MimeEntryback to summary
pack-priv MimeEntry(String typeName, int action, String command, String imageFileName, String[] fileExtensions)

Method Detail

cloneback to summary
public Object clone()

Overrides java.lang.Object.clone.

Doc from java.lang.Object.clone.

Creates and returns a copy of this object. The precise meaning of "copy" may depend on the class of the object. The general intent is that, for any object x, the expression:

x.clone() != x
will be true, and that the expression:
x.clone().getClass() == x.getClass()
will be true, but these are not absolute requirements. While it is typically the case that:
x.clone().equals(x)
will be true, this is not an absolute requirement.

By convention, the returned object should be obtained by calling super.clone. If a class and all of its superclasses (except Object) obey this convention, it will be the case that x.clone().getClass() == x.getClass().

By convention, the object returned by this method should be independent of this object (which is being cloned). To achieve this independence, it may be necessary to modify one or more fields of the object returned by super.clone before returning it. Typically, this means copying any mutable objects that comprise the internal "deep structure" of the object being cloned and replacing the references to these objects with references to the copies. If a class contains only primitive fields or references to immutable objects, then it is usually the case that no fields in the object returned by super.clone need to be modified.

getActionback to summary
public synchronized int getAction()
getDescriptionback to summary
public synchronized String getDescription()
getExtensionsback to summary
public synchronized String[] getExtensions()
getExtensionsAsListback to summary
public synchronized String getExtensionsAsList()
getImageFileNameback to summary
public String getImageFileName()
getLaunchStringback to summary
public synchronized String getLaunchString()
getTempFileTemplateback to summary
public String getTempFileTemplate()
getTypeback to summary
public synchronized String getType()
isStarredback to summary
private boolean isStarred(String typeName)
matchesback to summary
public boolean matches(String type)
setActionback to summary
public synchronized void setAction(int action, String command)
setActionback to summary
public synchronized void setAction(int action)
setCommandback to summary
public synchronized void setCommand(String command)
setDescriptionback to summary
public synchronized void setDescription(String description)
setExtensionsback to summary
public synchronized void setExtensions(String extensionString)
setImageFileNameback to summary
public synchronized void setImageFileName(String filename)
setTypeback to summary
public synchronized void setType(String type)
toPropertyback to summary
public synchronized String toProperty()
toStringback to summary
public String toString()

Overrides java.lang.Object.toString.

Doc from java.lang.Object.toString.

Returns a string representation of the object. Satisfying this method's contract implies a non-null result must be returned.