Class UniformTypeIdentifiers


  • public final class UniformTypeIdentifiers
    extends java.lang.Object
    • Method Detail

      • UTTagClassFilenameExtension

        public static java.lang.String UTTagClassFilenameExtension()
        \brief The tag class for filename extensions such as \c "txt". The leading period character is not part of the filename extension and should not be included in the tag.
      • UTTagClassMIMEType

        public static java.lang.String UTTagClassMIMEType()
        \brief The tag class for MIME types such as \c "text/plain".
      • UTTypeItem

        public static UTType UTTypeItem()
        \brief A generic base type for most things (files, directories.) UTI: public.item
      • UTTypeContent

        public static UTType UTTypeContent()
        \brief A base type for anything containing user-viewable document content (documents, pasteboard data, and document packages.) Types describing files or packages must also conform to \c UTTypeData or \c UTTypePackage in order for the system to bind documents to them. UTI: public.content
      • UTTypeCompositeContent

        public static UTType UTTypeCompositeContent()
        \brief A base type for content formats supporting mixed embedded content (i.e., compound documents). UTI: public.composite-content conforms to: public.content
      • UTTypeDiskImage

        public static UTType UTTypeDiskImage()
        \brief A data item mountable as a volume UTI: public.disk-image
      • UTTypeData

        public static UTType UTTypeData()
        \brief A base type for any sort of simple byte stream, including files and in-memory data. UTI: public.data conforms to: public.item
      • UTTypeDirectory

        public static UTType UTTypeDirectory()
        \brief A file system directory (includes packages \em and folders.) UTI: public.directory conforms to: public.item
      • UTTypeResolvable

        public static UTType UTTypeResolvable()
        \brief Symbolic link and alias file types conform to this type. UTI: com.apple.resolvable
      • UTTypeSymbolicLink

        public static UTType UTTypeSymbolicLink()
        \brief A symbolic link. UTI: public.symlink conforms to: public.item, com.apple.resolvable
      • UTTypeExecutable

        public static UTType UTTypeExecutable()
        \brief An executable item. UTI: public.executable conforms to: public.item
      • UTTypeMountPoint

        public static UTType UTTypeMountPoint()
        \brief A volume mount point (resolvable, resolves to the root directory of a volume.) UTI: com.apple.mount-point conforms to: public.item, com.apple.resolvable
      • UTTypeAliasFile

        public static UTType UTTypeAliasFile()
        \brief A fully-formed alias file. UTI: com.apple.alias-file conforms to: public.data, com.apple.resolvable
      • UTTypeURLBookmarkData

        public static UTType UTTypeURLBookmarkData()
        \brief A URL bookmark. UTI: com.apple.bookmark conforms to: public.data, com.apple.resolvable
      • UTTypeURL

        public static UTType UTTypeURL()
        \brief Any URL. UTI: public.url conforms to: public.data
      • UTTypeFileURL

        public static UTType UTTypeFileURL()
        \brief A URL with the scheme \c "file:". UTI: public.file-url conforms to: public.url
      • UTTypeText

        public static UTType UTTypeText()
        \brief The base type for all text-encoded data, including text with markup (HTML, RTF, etc.). UTI: public.text conforms to: public.data, public.content
      • UTTypePlainText

        public static UTType UTTypePlainText()
        \brief Text with no markup and an unspecified encoding. UTI: public.plain-text conforms to: public.text
      • UTTypeUTF8PlainText

        public static UTType UTTypeUTF8PlainText()
        \brief Plain text encoded as UTF-8. UTI: public.utf8-plain-text conforms to: public.plain-text
      • UTTypeUTF16ExternalPlainText

        public static UTType UTTypeUTF16ExternalPlainText()
        \brief Plain text encoded as UTF-16 with a BOM, or if a BOM is not present, using "external representation" byte order (big-endian). UTI: public.utf16-external-plain-text conforms to: public.plain-text
      • UTTypeUTF16PlainText

        public static UTType UTTypeUTF16PlainText()
        \brief Plain text encoded as UTF-16, in native byte order, with an optional BOM. UTI: public.utf16-plain-text conforms to: public.plain-text
      • UTTypeDelimitedText

        public static UTType UTTypeDelimitedText()
        \brief Text containing delimited values. UTI: public.delimited-values-text conforms to: public.text
      • UTTypeCommaSeparatedText

        public static UTType UTTypeCommaSeparatedText()
        \brief Text containing comma-separated values (.csv). UTI: public.comma-separated-values-text conforms to: public.delimited-values-text
      • UTTypeTabSeparatedText

        public static UTType UTTypeTabSeparatedText()
        \brief Text containing tab-separated values. UTI: public.tab-separated-values-text conforms to: public.delimited-values-text
      • UTTypeUTF8TabSeparatedText

        public static UTType UTTypeUTF8TabSeparatedText()
        \brief UTF-8 encoded text containing tab-separated values. UTI: public.utf8-tab-separated-values-text conforms to: public.tab-separated-values-text, public.utf8-plain-text
      • UTTypeRTF

        public static UTType UTTypeRTF()
        \brief Rich Text Format data. UTI: public.rtf conforms to: public.text
      • UTTypeHTML

        public static UTType UTTypeHTML()
        \brief Any version of HTML. UTI: public.html conforms to: public.text
      • UTTypeXML

        public static UTType UTTypeXML()
        \brief Generic XML. UTI: public.xml conforms to: public.text
      • UTTypeYAML

        public static UTType UTTypeYAML()
        \brief Yet Another Markup Language. UTI: public.yaml conforms to: public.text
      • UTTypeSourceCode

        public static UTType UTTypeSourceCode()
        \brief Abstract type for source code of any language. UTI: public.source-code conforms to: public.plain-text
      • UTTypeAssemblyLanguageSource

        public static UTType UTTypeAssemblyLanguageSource()
        \brief Assembly language source (.s) UTI: public.assembly-source conforms to: public.source-code
      • UTTypeCSource

        public static UTType UTTypeCSource()
        \brief C source code (.c) UTI: public.c-source conforms to: public.source-code
      • UTTypeObjectiveCSource

        public static UTType UTTypeObjectiveCSource()
        \brief Objective-C source code (.m) UTI: public.objective-c-source conforms to: public.source-code
      • UTTypeSwiftSource

        public static UTType UTTypeSwiftSource()
        \brief Swift source code (.swift) UTI: public.swift-source conforms to: public.source-code
      • UTTypeCPlusPlusSource

        public static UTType UTTypeCPlusPlusSource()
        \brief C++ source code (.cp, etc.) UTI: public.c-plus-plus-source conforms to: public.source-code
      • UTTypeObjectiveCPlusPlusSource

        public static UTType UTTypeObjectiveCPlusPlusSource()
        \brief Objective-C++ source code. UTI: public.objective-c-plus-plus-source conforms to: public.source-code
      • UTTypeCHeader

        public static UTType UTTypeCHeader()
        \brief A C header. UTI: public.c-header conforms to: public.source-code
      • UTTypeCPlusPlusHeader

        public static UTType UTTypeCPlusPlusHeader()
        \brief A C++ header. UTI: public.c-plus-plus-header conforms to: public.source-code
      • UTTypeScript

        public static UTType UTTypeScript()
        \brief A base type for any scripting language source. UTI: public.script conforms to: public.source-code
      • UTTypeAppleScript

        public static UTType UTTypeAppleScript()
        \brief An AppleScript text-based script (.applescript). UTI: com.apple.applescript.text conforms to: public.script
      • UTTypeOSAScript

        public static UTType UTTypeOSAScript()
        \brief An Open Scripting Architecture binary script (.scpt). UTI: com.apple.applescript.script conforms to: public.data, public.script
      • UTTypeOSAScriptBundle

        public static UTType UTTypeOSAScriptBundle()
        \brief An Open Scripting Architecture script bundle (.scptd). UTI: com.apple.applescript.script-bundle conforms to: com.apple.bundle, com.apple.package, public.script
      • UTTypeJavaScript

        public static UTType UTTypeJavaScript()
        \brief JavaScript source code UTI: com.netscape.javascript-source conforms to: public.source-code, public.executable
      • UTTypeShellScript

        public static UTType UTTypeShellScript()
        \brief The base type for shell scripts. UTI: public.shell-script conforms to: public.script
      • UTTypePerlScript

        public static UTType UTTypePerlScript()
        \brief A Perl script. UTI: public.perl-script conforms to: public.shell-script
      • UTTypePythonScript

        public static UTType UTTypePythonScript()
        \brief A Python script. UTI: public.python-script conforms to: public.shell-script
      • UTTypeRubyScript

        public static UTType UTTypeRubyScript()
        \brief A Ruby script. UTI: public.ruby-script conforms to: public.shell-script
      • UTTypePHPScript

        public static UTType UTTypePHPScript()
        \brief A PHP script. UTI: public.php-script conforms to: public.shell-script
      • UTTypeJSON

        public static UTType UTTypeJSON()
        \brief JavaScript object notation (JSON) data UTI: public.json conforms to: public.text \note JSON almost (but doesn't quite) conforms to com.netscape.javascript-source.
      • UTTypePropertyList

        public static UTType UTTypePropertyList()
        \brief A base type for property lists. UTI: com.apple.property-list conforms to: public.data
      • UTTypeXMLPropertyList

        public static UTType UTTypeXMLPropertyList()
        \brief An XML property list. UTI: com.apple.xml-property-list conforms to: public.xml, com.apple.property-list
      • UTTypeBinaryPropertyList

        public static UTType UTTypeBinaryPropertyList()
        \brief A binary property list. UTI: com.apple.binary-property-list conforms to: com.apple.property-list
      • UTTypePDF

        public static UTType UTTypePDF()
        \brief An Adobe PDF document. UTI: com.adobe.pdf conforms to: public.data, public.composite-content
      • UTTypeRTFD

        public static UTType UTTypeRTFD()
        \brief A Rich Text Format Directory document (RTF with content embedding in its on-disk format.) UTI: com.apple.rtfd conforms to: com.apple.package, public.composite-content
      • UTTypeFlatRTFD

        public static UTType UTTypeFlatRTFD()
        \brief A flattened RTFD document (formatted for the pasteboard.) UTI: com.apple.flat-rtfd conforms to: public.data, public.composite-content
      • UTTypeWebArchive

        public static UTType UTTypeWebArchive()
        \brief The WebKit webarchive format. UTI: com.apple.webarchive conforms to: public.data, public.composite-content
      • UTTypeImage

        public static UTType UTTypeImage()
        \brief A base type for abstract image data. UTI: public.image conforms to: public.data, public.content
      • UTTypeJPEG

        public static UTType UTTypeJPEG()
        \brief A JPEG image. UTI: public.jpeg conforms to: public.image
      • UTTypeTIFF

        public static UTType UTTypeTIFF()
        \brief A TIFF image. UTI: public.tiff conforms to: public.image
      • UTTypeGIF

        public static UTType UTTypeGIF()
        \brief A GIF image. UTI: com.compuserve.gif conforms to: public.image
      • UTTypePNG

        public static UTType UTTypePNG()
        \brief A PNG image. UTI: public.png conforms to: public.image
      • UTTypeICNS

        public static UTType UTTypeICNS()
        \brief Apple icon data UTI: com.apple.icns conforms to: public.image
      • UTTypeBMP

        public static UTType UTTypeBMP()
        \brief A Windows bitmap. UTI: com.microsoft.bmp conforms to: public.image
      • UTTypeICO

        public static UTType UTTypeICO()
        \brief Windows icon data UTI: com.microsoft.ico conforms to: public.image
      • UTTypeRAWImage

        public static UTType UTTypeRAWImage()
        \brief A base type for raw image data (.raw). UTI: public.camera-raw-image conforms to: public.image
      • UTTypeSVG

        public static UTType UTTypeSVG()
        \brief A Scalable Vector Graphics image. UTI: public.svg-image conforms to: public.image
      • UTTypeLivePhoto

        public static UTType UTTypeLivePhoto()
        \brief A Live Photo. UTI: com.apple.live-photo
      • UTTypeHEIF

        public static UTType UTTypeHEIF()
        \brief A High Efficiency Image File Format image. UTI: public.heif conforms to: public.heif-standard
      • UTTypeHEIC

        public static UTType UTTypeHEIC()
        \brief A High Efficiency Image Coding image. UTI: public.heic conforms to: public.heif-standard
      • UTTypeWebP

        public static UTType UTTypeWebP()
        \brief The WebP image format. UTI: org.webmproject.webp conforms to: public.image
      • UTType3DContent

        public static UTType UTType3DContent()
        \brief A base type for 3D content. UTI: public.3d-content conforms to: public.content
      • UTTypeUSD

        public static UTType UTTypeUSD()
        \brief Universal Scene Description content. UTI: com.pixar.universal-scene-description conforms to: public.3d-content, public.data
      • UTTypeUSDZ

        public static UTType UTTypeUSDZ()
        \brief Universal Scene Description Package content. UTI: com.pixar.universal-scene-description-mobile conforms to: public.3d-content, public.data
      • UTTypeRealityFile

        public static UTType UTTypeRealityFile()
        \brief A Reality File. UTI: com.apple.reality conforms to: public.data
      • UTTypeSceneKitScene

        public static UTType UTTypeSceneKitScene()
        \brief A SceneKit serialized scene. UTI: com.apple.scenekit.scene conforms to: public.3d-content, public.data
      • UTTypeARReferenceObject

        public static UTType UTTypeARReferenceObject()
        \brief An AR reference object. UTI: com.apple.arobject conforms to: public.data
      • UTTypeAudiovisualContent

        public static UTType UTTypeAudiovisualContent()
        \brief Any audio and/or video content. UTI: public.audiovisual-content conforms to: public.data, public.content
      • UTTypeMovie

        public static UTType UTTypeMovie()
        \brief A media format which may contain both video and audio. This type corresponds to what users would label a "movie". UTI: public.movie conforms to: public.audiovisual-content
      • UTTypeVideo

        public static UTType UTTypeVideo()
        \brief Pure video data with no audio data. UTI: public.video conforms to: public.movie
      • UTTypeAudio

        public static UTType UTTypeAudio()
        \brief Pure audio data with no video data. UTI: public.audio conforms to: public.audiovisual-content
      • UTTypeQuickTimeMovie

        public static UTType UTTypeQuickTimeMovie()
        \brief A QuickTime movie. UTI: com.apple.quicktime-movie conforms to: public.movie
      • UTTypeMPEG

        public static UTType UTTypeMPEG()
        \brief An MPEG-1 or MPEG-2 movie. UTI: public.mpeg conforms to: public.movie
      • UTTypeMPEG2Video

        public static UTType UTTypeMPEG2Video()
        \brief An MPEG-2 video. UTI: public.mpeg-2-video conforms to: public.video
      • UTTypeMPEG2TransportStream

        public static UTType UTTypeMPEG2TransportStream()
        \brief The MPEG-2 Transport Stream movie format. UTI: public.mpeg-2-transport-stream conforms to: public.movie
      • UTTypeMP3

        public static UTType UTTypeMP3()
        \brief MP3 audio. UTI: public.mp3 conforms to: public.audio
      • UTTypeMPEG4Movie

        public static UTType UTTypeMPEG4Movie()
        \brief MPEG-4 movie UTI: public.mpeg-4 conforms to: public.movie
      • UTTypeMPEG4Audio

        public static UTType UTTypeMPEG4Audio()
        \brief An MPEG-4 audio layer file. UTI: public.mpeg-4-audio conforms to: public.mpeg-4, public.audio
      • UTTypeAppleProtectedMPEG4Audio

        public static UTType UTTypeAppleProtectedMPEG4Audio()
        \brief The Apple protected MPEG4 format (.m4p, iTunes music store format.) UTI: com.apple.protected-mpeg-4-audio conforms to: public.audio
      • UTTypeAppleProtectedMPEG4Video

        public static UTType UTTypeAppleProtectedMPEG4Video()
        \brief An Apple protected MPEG-4 movie. UTI: com.apple.protected-mpeg-4-video conforms to: com.apple.m4v-video
      • UTTypeAVI

        public static UTType UTTypeAVI()
        \brief The AVI movie format. UTI: public.avi conforms to: public.movie
      • UTTypeAIFF

        public static UTType UTTypeAIFF()
        \brief The AIFF audio format UTI: public.aiff-audio conforms to: public.aifc-audio
      • UTTypeWAV

        public static UTType UTTypeWAV()
        \brief The Microsoft waveform audio format (.wav). UTI: com.microsoft.waveform-audio conforms to: public.audio
      • UTTypeMIDI

        public static UTType UTTypeMIDI()
        \brief The MIDI audio format. UTI: public.midi-audio conforms to: public.audio
      • UTTypePlaylist

        public static UTType UTTypePlaylist()
        \brief The base type for playlists. UTI: public.playlist
      • UTTypeM3UPlaylist

        public static UTType UTTypeM3UPlaylist()
        \brief An M3U or M3U8 playlist UTI: public.m3u-playlist conforms to: public.text, public.playlist
      • UTTypeFolder

        public static UTType UTTypeFolder()
        \brief A user-browsable directory (i.e. not a package.) UTI: public.folder conforms to: public.directory
      • UTTypeVolume

        public static UTType UTTypeVolume()
        \brief The root folder of a volume or mount point. UTI: public.volume conforms to: public.folder
      • UTTypePackage

        public static UTType UTTypePackage()
        \brief A packaged directory. Bundles differ from packages in that a bundle has an internal file hierarchy that \c CFBundle can read, while packages are displayed to the user as if they were regular files. A single file system object can be both a package and a bundle. UTI: com.apple.package conforms to: public.directory
      • UTTypeBundle

        public static UTType UTTypeBundle()
        \brief A directory conforming to one of the \c CFBundle layouts. Bundles differ from packages in that a bundle has an internal file hierarchy that \c CFBundle can read, while packages are displayed to the user as if they were regular files. A single file system object can be both a package and a bundle. UTI: com.apple.bundle conforms to: public.directory
      • UTTypePluginBundle

        public static UTType UTTypePluginBundle()
        \brief The base type for bundle-based plugins. UTI: com.apple.plugin conforms to: com.apple.bundle, com.apple.package
      • UTTypeSpotlightImporter

        public static UTType UTTypeSpotlightImporter()
        \brief A Spotlight metadata importer bundle. UTI: com.apple.metadata-importer conforms to: com.apple.plugin
      • UTTypeQuickLookGenerator

        public static UTType UTTypeQuickLookGenerator()
        \brief A QuickLook preview generator bundle. UTI: com.apple.quicklook-generator conforms to: com.apple.plugin
      • UTTypeXPCService

        public static UTType UTTypeXPCService()
        \brief An XPC service bundle. UTI: com.apple.xpc-service conforms to: com.apple.bundle, com.apple.package
      • UTTypeFramework

        public static UTType UTTypeFramework()
        \brief A macOS or iOS framework bundle. UTI: com.apple.framework conforms to: com.apple.bundle
      • UTTypeApplication

        public static UTType UTTypeApplication()
        \brief The base type for macOS and iOS applications. UTI: com.apple.application conforms to: public.executable
      • UTTypeApplicationBundle

        public static UTType UTTypeApplicationBundle()
        \brief A bundled application. UTI: com.apple.application-bundle conforms to: com.apple.application, com.apple.bundle, com.apple.package
      • UTTypeApplicationExtension

        public static UTType UTTypeApplicationExtension()
        \brief An application extension (.appex). UTI: com.apple.application-and-system-extension conforms to: com.apple.xpc-service
      • UTTypeUnixExecutable

        public static UTType UTTypeUnixExecutable()
        \brief A UNIX executable (flat file.) UTI: public.unix-executable conforms to: public.data, public.executable
      • UTTypeEXE

        public static UTType UTTypeEXE()
        \brief A Windows executable (.exe). UTI: com.microsoft.windows-executable conforms to: public.data, public.executable
      • UTTypeSystemPreferencesPane

        public static UTType UTTypeSystemPreferencesPane()
        \brief A System Preferences pane. UTI: com.apple.systempreference.prefpane conforms to: com.apple.package, com.apple.bundle
      • UTTypeArchive

        public static UTType UTTypeArchive()
        \brief an archive of files and directories UTI: public.archive
      • UTTypeGZIP

        public static UTType UTTypeGZIP()
        \brief A GNU zip archive. UTI: org.gnu.gnu-zip-archive conforms to: public.data, public.archive
      • UTTypeBZ2

        public static UTType UTTypeBZ2()
        \brief A bzip2 archive. UTI: public.bzip2-archive conforms to: public.data, public.archive
      • UTTypeZIP

        public static UTType UTTypeZIP()
        \brief A zip archive. UTI: public.zip-archive conforms to: com.pkware.zip-archive
      • UTTypeAppleArchive

        public static UTType UTTypeAppleArchive()
        \brief An Apple Archive. UTI: com.apple.archive conforms to: public.data, public.archive
      • UTTypeSpreadsheet

        public static UTType UTTypeSpreadsheet()
        \brief A base type for spreadsheet documents. UTI: public.spreadsheet conforms to: public.content
      • UTTypePresentation

        public static UTType UTTypePresentation()
        \brief A base type for presentation documents. UTI: public.presentation conforms to: public.composite-content
      • UTTypeDatabase

        public static UTType UTTypeDatabase()
        \brief A database store. UTI: public.database
      • UTTypeMessage

        public static UTType UTTypeMessage()
        \brief A base type for messages (email, IM, etc.) UTI: public.message
      • UTTypeContact

        public static UTType UTTypeContact()
        \brief contact information, e.g. for a person, group, organization UTI: public.contact
      • UTTypeVCard

        public static UTType UTTypeVCard()
        \brief A vCard file. UTI: public.vcard conforms to: public.text, public.contact
      • UTTypeToDoItem

        public static UTType UTTypeToDoItem()
        \brief A to-do item. UTI: public.to-do-item
      • UTTypeCalendarEvent

        public static UTType UTTypeCalendarEvent()
        \brief A calendar event. UTI: public.calendar-event
      • UTTypeEmailMessage

        public static UTType UTTypeEmailMessage()
        \brief An e-mail message. UTI: public.email-message conforms to: public.message
      • UTTypeInternetLocation

        public static UTType UTTypeInternetLocation()
        \brief A base type for Apple Internet location files. UTI: com.apple.internet-location conforms to: public.data
      • UTTypeInternetShortcut

        public static UTType UTTypeInternetShortcut()
        \brief Microsoft Internet shortcut files (.url). UTI: com.apple.internet-location conforms to: public.data
      • UTTypeFont

        public static UTType UTTypeFont()
        \brief A base type for fonts. UTI: public.font
      • UTTypeBookmark

        public static UTType UTTypeBookmark()
        \brief A bookmark. UTI: public.bookmark \sa UTTypeURLBookmarkData
      • UTTypePKCS12

        public static UTType UTTypePKCS12()
        \brief PKCS#12 data. UTI: com.rsa.pkcs-12 conforms to: public.data
      • UTTypeX509Certificate

        public static UTType UTTypeX509Certificate()
        \brief An X.509 certificate. UTI: public.x509-certificate conforms to: public.data
      • UTTypeEPUB

        public static UTType UTTypeEPUB()
        \brief The EPUB format. UTI: org.idpf.epub-container conforms to: public.data, public.composite-content
      • UTTypeLog

        public static UTType UTTypeLog()
        \brief A base type for console logs. UTI: public.log