Contents | Package | Class | Tree | Deprecated | Index | Help | Java 1.2 Beta 3 | ||
PREV | NEXT | SHOW LISTS | HIDE LISTS |
java.lang.Object | +----java.awt.datatransfer.DataFlavor
Field Summary | |
static DataFlavor | plainTextFlavor
representationClass = InputStream
|
static DataFlavor | stringFlavor
representationClass = java.lang.String
|
Constructor Summary | |
DataFlavor(String primaryType,
String subType,
MimeTypeParameterList params,
Class representationClass,
String humanPresentableName)
|
|
DataFlavor(Class representationClass,
String humanPresentableName)
The returned DataFlavor will have the following characteristics
representationClass = representationClass
|
|
DataFlavor(String mimeType,
String humanPresentableName)
The returned DataFlavor will have the following characteristics: If the mimeType is "application/x-javaserializedobject; class=<representation class>", the result is the same as calling new DataFlavor(Class:forName(<representation class>) as above otherwise:
representationClass = InputStream
|
|
DataFlavor(String mimeType)
|
|
DataFlavor()
|
Method Summary | |
Object | clone()
|
boolean | equals(Object o)
|
boolean | equals(MimeType mt)
|
boolean | equals(DataFlavor dataFlavor)
|
boolean | equals(String s)
|
String | getHumanPresentableName()
|
String | getMimeType()
|
String | getParameter(String paramName)
|
String | getPrimaryType()
|
Class | getRepresentationClass()
|
String | getSubType()
|
boolean | isMimeTypeEqual(String mimeType)
|
boolean | isMimeTypeEqual(DataFlavor dataFlavor)
|
boolean | isMimeTypeEqual(MimeType mtype)
|
boolean | isMimeTypeSerializedObject()
|
boolean | isRepresentationClassInputStream()
|
boolean | isRepresentationClassSerializable()
|
String | normalizeMimeType(String mimeType)
|
String | normalizeMimeTypeParameter(String parameterName,
String parameterValue)
|
void | readObject(ObjectInputStream ois)
|
void | setHumanPresentableName(String humanPresentableName)
|
void | writeObject(ObjectOutputStream oos)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final DataFlavor stringFlavor
representationClass = java.lang.String
mimeType = "application/x-java-serialized-object"
public static final DataFlavor plainTextFlavor
representationClass = InputStream
mimeType = "text/plain; charset=unicode"
Constructor Detail |
public DataFlavor(String primaryType, String subType, MimeTypeParameterList params, Class representationClass, String humanPresentableName)
public DataFlavor(Class representationClass, String humanPresentableName)
The returned DataFlavor will have the following characteristics
representationClass = representationClass
mimeType = application/x-java-serialized-object
representationClass
- the class used to transfer data in this flavor
humanPresentableName
- the human-readible string used to identify this flavor
public DataFlavor(String mimeType, String humanPresentableName)
The returned DataFlavor will have the following characteristics:
If the mimeType is "application/x-javaserializedobject; class=<representation class>", the result is the same as calling new DataFlavor(Class:forName(<representation class>) as above
otherwise:
representationClass = InputStream
mimeType = mimeType
mimeType
- the string used to identify the MIME type for this flavor
humanPresentableName
- the human-readible string used to identify this flavor
public DataFlavor(String mimeType) throws MimeTypeParseException, ClassNotFoundException
public DataFlavor()
Method Detail |
public String getMimeType()
public Class getRepresentationClass()
public String getHumanPresentableName()
public String getPrimaryType()
public String getSubType()
public String getParameter(String paramName)
public void setHumanPresentableName(String humanPresentableName)
public boolean equals(Object o)
public boolean equals(MimeType mt)
public boolean equals(DataFlavor dataFlavor)
public boolean equals(String s)
public boolean isMimeTypeEqual(String mimeType)
public final boolean isMimeTypeEqual(DataFlavor dataFlavor)
public boolean isMimeTypeEqual(MimeType mtype)
public boolean isMimeTypeSerializedObject()
public boolean isRepresentationClassInputStream()
public boolean isRepresentationClassSerializable()
public void writeObject(ObjectOutputStream oos) throws IOException
public void readObject(ObjectInputStream ois) throws IOException, ClassNotFoundException
public Object clone() throws CloneNotSupportedException
protected String normalizeMimeTypeParameter(String parameterName, String parameterValue)
This method is called for each parameter name/value pair and should return the normalized representation of the parameterValue This method is never invoked by this implementation from 1.1 onwards
protected String normalizeMimeType(String mimeType)
Contents | Package | Class | Tree | Deprecated | Index | Help | Java 1.2 Beta 3 | ||
PREV | NEXT | SHOW LISTS | HIDE LISTS |