Project

General

Profile

« Previous | Next » 

Revision d4cc7b98

IDd4cc7b98929e3cf2dc32763bb31fdbbfcd91f5e9
Parent 9b8a77aa
Child 16ecea71

Added by Matthew Jones about 12 years ago

Added ObjectFormatInfo class to act as a source of metadaata about ObjectFormats without actually modifying the ObjectFormat class itself. For now, ObjectFormatInfo is a singleton that loads a CSV containing format metadata such as mime type and file extension for each format. It provides accessors to look up the mime type and extension using the formatID string and an ObjectFormat instance. Mapping data between formats and mimetpye/extension is currently maintained in a CSV file that is included as a resource in libclient. Updates to this file can occur in application-controlled filesystem copies of this CSV file. See the "D1Client.resourcesDir" property for the location of this CSV file. If this Setting is unset, the mappings file is placed in $HOME/DataONE.

Files

  • added
  • modified
  • copied
  • renamed
  • deleted

Add picture from clipboard (Maximum size: 14.8 MB)