JavaTM 2 Platform
Std. Ed. v1.3.1

com.apple.mrj.datatransfer
Class OSTypeToMimeMapper

java.lang.Object
  |
  +--com.apple.mrj.datatransfer.OSTypeToMimeMapper

Deprecated. As of MacOSX 10.2

public class OSTypeToMimeMapper
extends Object

A utility class that maps OSType flavors back to DataFlavors. It will regenerate MIME types that were encoded by a MimeToOSTypeMapper.

See Also:
MimeToOSTypeMapper

Constructor Summary
OSTypeToMimeMapper()
          Deprecated. Creates an OSTypeToMimeMapper that doesn't do any mapping.
OSTypeToMimeMapper(byte[] mimeMap)
          Deprecated. Creates an OSTypeToMimeMapper.
 
Method Summary
 DataFlavor mapOSType(MRJOSType osType)
          Deprecated. Maps an OSType into the corresponding MIME type to present to Java clients.
 MRJOSType unmapFlavor(DataFlavor flavor)
          Deprecated. Maps a MIME type back to the OSType of the flavor that contains its data.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OSTypeToMimeMapper

public OSTypeToMimeMapper(byte[] mimeMap)
                   throws IOException
Deprecated. 
Creates an OSTypeToMimeMapper.
Parameters:
mimeMap - The contents of the flavor whose OSType is 'mime', or null if none.

OSTypeToMimeMapper

public OSTypeToMimeMapper()
Deprecated. 
Creates an OSTypeToMimeMapper that doesn't do any mapping.
Method Detail

mapOSType

public DataFlavor mapOSType(MRJOSType osType)
Deprecated. 
Maps an OSType into the corresponding MIME type to present to Java clients.

unmapFlavor

public MRJOSType unmapFlavor(DataFlavor flavor)
Deprecated. 
Maps a MIME type back to the OSType of the flavor that contains its data. The MIME type must come from a previous call to mapOSType.

JavaTM 2 Platform
Std. Ed. v1.3.1

Submit a bug or feature
For further API reference and developer documentation, see Java 2 SDK SE Developer Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.

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.