各种文件对应的MIMEType

  1. 由上可见,MIME_MapTable是所有文件的后缀名所对应的MIME类型的一个String数组:  
  2.    
  3. Java代码  
  4.   
  5.           final String[][] MIME_MapTable={   
  6.             //{后缀名,MIME类型}   
  7.             {".3gp",    "video/3gpp"},   
  8.             {".apk",    "application/vnd.android.package-archive"},   
  9.             {".asf",    "video/x-ms-asf"},   
  10.             {".avi",    "video/x-msvideo"},   
  11.             {".bin",    "application/octet-stream"},   
  12.             {".bmp",    "image/bmp"},   
  13.             {".c",  "text/plain"},   
  14.             {".class",  "application/octet-stream"},   
  15.             {".conf",   "text/plain"},   
  16.             {".cpp",    "text/plain"},   
  17.             {".doc",    "application/msword"},   
  18.             {".docx",   "application/vnd.openxmlformats-officedocument.wordprocessingml.document"},   
  19.             {".xls",    "application/vnd.ms-excel"},    
  20.             {".xlsx",   "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"},   
  21.             {".exe",    "application/octet-stream"},   
  22.             {".gif",    "image/gif"},   
  23.             {".gtar",   "application/x-gtar"},   
  24.             {".gz""application/x-gzip"},   
  25.             {".h",  "text/plain"},   
  26.             {".htm",    "text/html"},   
  27.             {".html",   "text/html"},   
  28.             {".jar",    "application/java-archive"},   
  29.             {".java",   "text/plain"},   
  30.             {".jpeg",   "image/jpeg"},   
  31.             {".jpg",    "image/jpeg"},   
  32.             {".js""application/x-javascript"},   
  33.             {".log",    "text/plain"},   
  34.             {".m3u",    "audio/x-mpegurl"},   
  35.             {".m4a",    "audio/mp4a-latm"},   
  36.             {".m4b",    "audio/mp4a-latm"},   
  37.             {".m4p",    "audio/mp4a-latm"},   
  38.             {".m4u",    "video/vnd.mpegurl"},   
  39.             {".m4v",    "video/x-m4v"},    
  40.             {".mov",    "video/quicktime"},   
  41.             {".mp2",    "audio/x-mpeg"},   
  42.             {".mp3",    "audio/x-mpeg"},   
  43.             {".mp4",    "video/mp4"},   
  44.             {".mpc",    "application/vnd.mpohun.certificate"},          
  45.             {".mpe",    "video/mpeg"},     
  46.             {".mpeg",   "video/mpeg"},     
  47.             {".mpg",    "video/mpeg"},     
  48.             {".mpg4",   "video/mp4"},      
  49.             {".mpga",   "audio/mpeg"},   
  50.             {".msg",    "application/vnd.ms-outlook"},   
  51.             {".ogg",    "audio/ogg"},   
  52.             {".pdf",    "application/pdf"},   
  53.             {".png",    "image/png"},   
  54.             {".pps",    "application/vnd.ms-powerpoint"},   
  55.             {".ppt",    "application/vnd.ms-powerpoint"},   
  56.             {".pptx",   "application/vnd.openxmlformats-officedocument.presentationml.presentation"},   
  57.             {".prop",   "text/plain"},   
  58.             {".rc""text/plain"},   
  59.             {".rmvb",   "audio/x-pn-realaudio"},   
  60.             {".rtf",    "application/rtf"},   
  61.             {".sh""text/plain"},   
  62.             {".tar",    "application/x-tar"},      
  63.             {".tgz",    "application/x-compressed"},    
  64.             {".txt",    "text/plain"},   
  65.             {".wav",    "audio/x-wav"},   
  66.             {".wma",    "audio/x-ms-wma"},   
  67.             {".wmv",    "audio/x-ms-wmv"},   
  68.             {".wps",    "application/vnd.ms-works"},   
  69.             {".xml",    "text/plain"},   
  70.             {".z",  "application/x-compress"},   
  71.             {".zip",    "application/x-zip-compressed"},   
  72.             {"",        "*/*"}     
  73.         };   

你可能感兴趣的:(andrroid)