当前位置: 代码迷 >> Android >> android MINE部类总汇
  详细解决方案

android MINE部类总汇

热度:95   发布时间:2016-05-01 15:56:37.0
android MINE类型总汇

在android开发开始时,都不明白Andriod平台上MIME类型是一个什么概念,偶然知道,整理一下资料,以便以后查看。
?? 多用途互联网邮件扩展(MIMEMultipurpose Internet Mail Extensions)是一个互联网标准,它扩展了电子邮件标准,使其能够支持非ASCII字符、二进制格式附件等多种格式的邮件消息。这个标准被定义在;RFC 2045; RFC 2046; RFC 2047; RFC 2048; RFC 2049RFC中。 由RFC 822转变而来的RFC 2822,规定电子邮件标准并不允许在邮件消息中使用7ASCII字符集以外的字符。正因如此,一些非英语字符消息和二进制文件,图像,声音等非文字消息都不能在电子邮件中传输。MIME规定了用于表示各种各样的数据类型的符号化方法。 此外,在万维网中使用的HTTP协议中也使用了MIME的框架。
??

??MIME headers
??MIME
是通过标准化电子邮件报文的头部的附加领域(fields)而实现的;这些头部的附加领域,描述新的报文类型的内容和组织形式。
??

??MIME版本
??MIME
版本(MIME-Version),这个头部领域在邮件消息的报文用一个版本号码来指明消息遵从的MIME规范的版本。目前版本是1.0
??MIME-Version: 1.0

??内容类型(Content-Type),这个头部领域用于指定消息的类型。一般以下面的形式出现。

??Content-Type: [type]/[subtype]; parameter
??type
有下面的形式。
?? ? Text
:用于标准化地表示的文本信息,文本消息可以是多种字符集和或者多种格式的;
?? ? Multipart
:用于连接消息体的多个部分构成一个消息,这些部分可以是不同类型的数据;
?? ? Application
:用于传输应用程序数据或者二进制数据;
?? ? Message
:用于包装一个E-mail消息;
?? ? Image
:用于传输静态图片数据;
?? ? Audio
:用于传输音频或者音声数据;
?? ? Video
:用于传输动态影像数据,可以是与音频编辑在一起的视频数据格式。
?? ? subtype
用于指定type的详细形式。content-type/subtype配对的集合和与此相关的参数,将随着时间而增长。为了确保这些值在一个有序而且公开的状态下开发,MIME使用Internet Assigned Numbers Authority (IANA)作为中心的注册机制来管理这些值。常用的subtype值如下所示:
?? ?

?? ?

[c-sharp]?
  1. text/plain(纯文本)??
  2. ?????text/html(HTML文档)??
  3. ?????application/xhtml+xml(XHTML文档)??
  4. ?????image/gif(GIF图像)??
  5. ?????image/jpeg(JPEG图像)??
  6. ?????image/png(PNG图像)??
  7. ?????video/mpeg(MPEG动画)??
  8. ?????application/octet-stream(任意的二进制数据)??
  9. ?????application/pdf(PDF文档)??
  10. ?????application/msword(Microsoft?Word文件)??
  11. ?????message/rfc822(RFC?822形式)??
  12. ?????multipart/alternative(HTML邮件的HTML形式和纯文本形式,相同内容使用不同形式表示)??


?
?? ? 此外,尚未被接受为正式数据类型的subtype,可以使用x-开始的独立名称(例如application/x-gzip)。vnd-开始的固有名称也可以使用(例:application/vnd.ms-excel)。

?? ?按照内容类型排列的 Mime 类型列表

??

[cpp]?
  1. 类型/子类型????????扩展名??
  2. application/envoy????????evy??
  3. application/fractals????????fif??
  4. application/futuresplash????????spl??
  5. application/hta????????hta??
  6. application/internet-property-stream????????acx??
  7. application/mac-binhex40????????hqx??
  8. application/msword????????doc??
  9. application/msword????????dot??
  10. application/octet-stream????????*??
  11. application/octet-stream????????bin??
  12. application/octet-stream????????class??
  13. application/octet-stream????????dms??
  14. application/octet-stream????????exe??
  15. application/octet-stream????????lha??
  16. application/octet-stream????????lzh??
  17. application/oda????????oda??
  18. application/olescript????????axs??
  19. application/pdf????????pdf??
  20. application/pics-rules????????prf??
  21. application/pkcs10????????p10??
  22. application/pkix-crl????????crl??
  23. application/postscript????????ai??
  24. application/postscript????????eps??
  25. application/postscript????????ps??
  26. application/rtf????????rtf??
  27. application/set-payment-initiation????????setpay??
  28. application/set-registration-initiation????????setreg??
  29. application/vnd.ms-excel????????xla??
  30. application/vnd.ms-excel????????xlc??
  31. application/vnd.ms-excel????????xlm??
  32. application/vnd.ms-excel????????xls??
  33. application/vnd.ms-excel????????xlt??
  34. application/vnd.ms-excel????????xlw??
  35. application/vnd.ms-outlook????????msg??
  36. application/vnd.ms-pkicertstore????????sst??
  37. application/vnd.ms-pkiseccat????????cat??
  38. application/vnd.ms-pkistl????????stl??
  39. application/vnd.ms-powerpoint????????pot??
  40. application/vnd.ms-powerpoint????????pps??
  41. application/vnd.ms-powerpoint????????ppt??
  42. application/vnd.ms-project????????mpp??
  43. application/vnd.ms-works????????wcm??
  44. application/vnd.ms-works????????wdb??
  45. application/vnd.ms-works????????wks??
  46. application/vnd.ms-works????????wps??
  47. application/winhlp????????hlp??
  48. application/x-bcpio????????bcpio??
  49. application/x-cdf????????cdf??
  50. application/x-compress????????z??
  51. application/x-compressed????????tgz??
  52. application/x-cpio????????cpio??
  53. application/x-csh????????csh??
  54. application/x-director????????dcr??
  55. application/x-director????????dir??
  56. application/x-director????????dxr??
  57. application/x-dvi????????dvi??
  58. application/x-gtar????????gtar??
  59. application/x-gzip????????gz??
  60. application/x-hdf????????hdf??
  61. application/x-internet-signup????????ins??
  62. application/x-internet-signup????????isp??
  63. application/x-iphone????????iii??
  64. application/x-javascript????????js??
  65. application/x-latex????????latex??
  66. application/x-msaccess????????mdb??
  67. application/x-mscardfile????????crd??
  68. application/x-msclip????????clp??
  69. application/x-msdownload????????dll??
  70. application/x-msmediaview????????m13??
  71. application/x-msmediaview????????m14??
  72. application/x-msmediaview????????mvb??
  73. application/x-msmetafile????????wmf??
  74. application/x-msmoney????????mny??
  75. application/x-mspublisher????????pub??
  76. application/x-msschedule????????scd??
  77. application/x-msterminal????????trm??
  78. application/x-mswrite????????wri??
  79. application/x-netcdf????????cdf??
  80. application/x-netcdf????????nc??
  81. application/x-perfmon????????pma??
  82. application/x-perfmon????????pmc??
  83. application/x-perfmon????????pml??
  84. application/x-perfmon????????pmr??
  85. application/x-perfmon????????pmw??
  86. application/x-pkcs12????????p12??
  87. application/x-pkcs12????????pfx??
  88. application/x-pkcs7-certificates????????p7b??
  89. application/x-pkcs7-certificates????????spc??
  90. application/x-pkcs7-certreqresp????????p7r??
  91. application/x-pkcs7-mime????????p7c??
  92. application/x-pkcs7-mime????????p7m??
  93. application/x-pkcs7-signature????????p7s??
  94. application/x-sh????????sh??
  95. application/x-shar????????shar??
  96. application/x-shockwave-flash????????swf??
  97. application/x-stuffit????????sit??
  98. application/x-sv4cpio????????sv4cpio??
  99. application/x-sv4crc????????sv4crc??
  100. application/x-tar????????tar??
  101. application/x-tcl????????tcl??
  102. application/x-tex????????tex??
  103. application/x-texinfo????????texi??
  104. application/x-texinfo????????texinfo??
  105. application/x-troff????????roff??
  106. application/x-troff????????t??
  107. application/x-troff????????tr??
  108. application/x-troff-man????????man??
  109. application/x-troff-me????????me??
  110. application/x-troff-ms????????ms??
  111. application/x-ustar????????ustar??
  112. application/x-wais-source????????src??
  113. application/x-x509-ca-cert????????cer??
  114. application/x-x509-ca-cert????????crt??
  115. application/x-x509-ca-cert????????der??
  116. application/ynd.ms-pkipko????????pko??
  117. application/zip????????zip??
  118. audio/basic????????au??
  119. audio/basic????????snd??
  120. audio/mid????????mid??
  121. audio/mid????????rmi??
  122. audio/mpeg????????mp3??
  123. audio/x-aiff????????aif??
  124. audio/x-aiff????????aifc??
  125. audio/x-aiff????????aiff??
  126. audio/x-mpegurl????????m3u??
  127. audio/x-pn-realaudio????????ra??
  128. audio/x-pn-realaudio????????ram??
  129. audio/x-wav????????wav??
  130. image/bmp????????bmp??
  131. image/cis-cod????????cod??
  132. image/gif????????gif??
  133. image/ief????????ief??
  134. image/jpeg????????jpe??
  135. image/jpeg????????jpeg??
  136. image/jpeg????????jpg??
  137. image/pipeg????????jfif??
  138. image/svg+xml????????svg??
  139. image/tiff????????tif??

?

  相关解决方案