|
JavaTM 2 Platform Std. Ed. v1.3.1 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--com.apple.mrj.datatransfer.MimeToOSTypeMapper
A utility class that maps MIME flavors into OSTypes, and defines an extra 'mime' flavor that can be used on the receiving end (i.e. by an OSTypeToMimeMapper) to reconstitute the original flavors.
OSTypeToMimeMapper| Field Summary | |
static String |
kSerializedType
Deprecated. The base MIME type defined by DataFlavor to store serialized Java objects. |
static MRJOSType |
kTypeMimeMap
Deprecated. The magic meta-flavor whose data contains the mapping between OSTypes and MIME types. |
| Constructor Summary | |
MimeToOSTypeMapper()
Deprecated. |
|
| Method Summary | |
byte[] |
getMimeMap()
Deprecated. Returns the OSType-to-MIME-type map as a byte array. |
MRJOSType |
mapFlavor(DataFlavor flavor)
Deprecated. Maps a DataFlavor to an OSType. |
DataFlavor |
unmapFlavor(MRJOSType osType)
Deprecated. Returns the DataFlavor corresponding to a particular OSType returned from mapFlavor. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final MRJOSType kTypeMimeMap
public static final String kSerializedType
#getFullMimeType| Constructor Detail |
public MimeToOSTypeMapper()
| Method Detail |
public MRJOSType mapFlavor(DataFlavor flavor)
public DataFlavor unmapFlavor(MRJOSType osType)
mapFlavor.
The OSType presumably came from a previous call to mapFlavor,
but if it didn't, reasonable effort will be made to map it back to a sensible
MIME type.public byte[] getMimeMap()
|
JavaTM 2 Platform Std. Ed. v1.3.1 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Java, Java 2D, and JDBC are trademarks or registered trademarks of Sun Microsystems, Inc. in the US and other countries.
Copyright 1993-2001 Sun Microsystems, Inc. 901 San Antonio Road
Palo Alto, California, 94303, U.S.A. All Rights Reserved.