Author: nick
Date: Tue Dec 23 03:22:26 2014
New Revision: 1647478
URL: http://svn.apache.org/r1647478
Log:
TIKA-1502 MySQL and SQLite3 mime types, with magic where possible
Modified:
tika/trunk/tika-core/src/main/resources/org/apache/tika/mime/tika-mimetypes.xml
Modified:
tika/trunk/tika-core/src/main/resources/org/apache/tika/mime/tika-mimetypes.xml
URL:
http://svn.apache.org/viewvc/tika/trunk/tika-core/src/main/resources/org/apache/tika/mime/tika-mimetypes.xml?rev=1647478&r1=1647477&r2=1647478&view=diff
==============================================================================
---
tika/trunk/tika-core/src/main/resources/org/apache/tika/mime/tika-mimetypes.xml
(original)
+++
tika/trunk/tika-core/src/main/resources/org/apache/tika/mime/tika-mimetypes.xml
Tue Dec 23 03:22:26 2014
@@ -3192,6 +3192,46 @@
<mime-type type="application/x-mswrite">
<glob pattern="*.wri"/>
</mime-type>
+
+ <mime-type type="application/x-mysql-db">
+ </mime-type>
+ <mime-type type="application/x-mysql-table-definition">
+ <_comment>MySQL Table Definition (Format)</_comment>
+ <!-- Glob is normally .frm, but that's already taken -->
+ <magic priority="40">
+ <match value="0xfe0107" type="string" offset="0"/>
+ <match value="0xfe0108" type="string" offset="0"/>
+ <match value="0xfe0109" type="string" offset="0"/>
+ <match value="0xfe010a" type="string" offset="0"/>
+ <match value="0xfe010b" type="string" offset="0"/>
+ <match value="0xfe010c" type="string" offset="0"/>
+ </magic>
+ <sub-class-of type="application/x-mysql-db"/>
+ </mime-type>
+ <mime-type type="application/x-mysql-misam-index">
+ <_comment>MySQL MISAM Index</_comment>
+ <magic priority="40">
+ <match value="0xfefe03" type="string" offset="0"/>
+ <match value="0xfefe05" type="string" offset="0"/>
+ </magic>
+ <sub-class-of type="application/x-mysql-db"/>
+ </mime-type>
+ <mime-type type="application/x-mysql-misam-compressed-index">
+ <_comment>MySQL MISAM Compressed Index</_comment>
+ <glob pattern="*.MYI"/>
+ <magic priority="40">
+ <match value="0xfefe06" type="string" offset="0"/>
+ <match value="0xfefe07" type="string" offset="0"/>
+ </magic>
+ <sub-class-of type="application/x-mysql-db"/>
+ </mime-type>
+ <mime-type type="application/x-mysql-misam-data">
+ <_comment>MySQL MISAM Data</_comment>
+ <glob pattern="*.MYD"/>
+ <!-- MISAM Data files are header-less, so no magic -->
+ <sub-class-of type="application/x-mysql-db"/>
+ </mime-type>
+
<mime-type type="application/x-netcdf">
<glob pattern="*.nc"/>
<glob pattern="*.cdf"/>
@@ -3365,6 +3405,12 @@
<glob pattern="*.xap"/>
</mime-type>
+ <mime-type type="application/x-sqlite3">
+ <magic priority="50">
+ <match value="SQLite format 3\x00" type="string" offset="0"/>
+ </magic>
+ </mime-type>
+
<mime-type type="application/x-stuffit">
<magic priority="50">
<match value="StuffIt" type="string" offset="0"/>