Author: nick
Date: Tue Dec 23 06:02:52 2014
New Revision: 1647485
URL: http://svn.apache.org/r1647485
Log:
Start on magic for subtypes of Berkeley DB TIKA-1502
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=1647485&r1=1647484&r2=1647485&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 06:02:52 2014
@@ -2523,26 +2523,137 @@
<glob pattern="*.bcpio"/>
</mime-type>
+ <!-- TODO Rationalise to add a third level -->
<mime-type type="application/x-berkeley-db">
+ <alias type="application/x-dbm"/>
<magic priority="50">
+ <!-- Hash -->
<match value="0x00061561" type="big32" offset="0"/>
<match value="0x00061561" type="host32" offset="12"/>
<match value="0x00061561" type="big32" offset="12"/>
<match value="0x00061561" type="little32" offset="12"/>
+ <!-- BTree -->
+ <match value="0x00053162" type="host32" offset="0"/>
+ <match value="0x00053162" type="big32" offset="0"/>
+ <match value="0x00053162" type="little32" offset="0"/>
<match value="0x00053162" type="host32" offset="12"/>
<match value="0x00053162" type="big32" offset="12"/>
<match value="0x00053162" type="little32" offset="12"/>
+ <!-- Queue -->
<match value="0x00042253" type="host32" offset="12"/>
<match value="0x00042253" type="big32" offset="12"/>
<match value="0x00042253" type="little32" offset="12"/>
+ <!-- Log -->
<match value="0x00040988" type="host32" offset="12"/>
<match value="0x00040988" type="little32" offset="12"/>
<match value="0x00040988" type="big32" offset="12"/>
- <match value="0x00053162" type="host32" offset="0"/>
- <match value="0x00053162" type="big32" offset="0"/>
- <match value="0x00053162" type="little32" offset="0"/>
</magic>
</mime-type>
+ <mime-type type="application/x-berkeley-db;format=hash;version=2">
+ <_comment>Berkeley DB Version 2 Hash Database</_comment>
+ <magic priority="60">
+ <match value="0x00061561" type="host32" offset="12">
+ <match value="0x0005" type="host32" offset="16"/>
+ </match>
+ <match value="0x00061561" type="big32" offset="12">
+ <match value="0x0005" type="big32" offset="16"/>
+ </match>
+ <match value="0x00061561" type="little32" offset="12">
+ <match value="0x0005" type="little32" offset="16"/>
+ </match>
+ </magic>
+ <sub-class-of type="application/x-berkeley-db"/>
+ </mime-type>
+ <mime-type type="application/x-berkeley-db;format=hash;version=3">
+ <_comment>Berkeley DB Version 3 Hash Database</_comment>
+ <magic priority="60">
+ <match value="0x00061561" type="host32" offset="12">
+ <match value="0x0007" type="host32" offset="16"/>
+ </match>
+ <match value="0x00061561" type="big32" offset="12">
+ <match value="0x0007" type="big32" offset="16"/>
+ </match>
+ <match value="0x00061561" type="little32" offset="12">
+ <match value="0x0007" type="little32" offset="16"/>
+ </match>
+ </magic>
+ <sub-class-of type="application/x-berkeley-db"/>
+ </mime-type>
+ <mime-type type="application/x-berkeley-db;format=hash;version=4">
+ <_comment>Berkeley DB Version 4 Hash Database</_comment>
+ <magic priority="60">
+ <match value="0x00061561" type="host32" offset="12">
+ <match value="0x0008" type="host32" offset="16"/>
+ </match>
+ <match value="0x00061561" type="big32" offset="12">
+ <match value="0x0008" type="big32" offset="16"/>
+ </match>
+ <match value="0x00061561" type="little32" offset="12">
+ <match value="0x0008" type="little32" offset="16"/>
+ </match>
+ </magic>
+ <sub-class-of type="application/x-berkeley-db"/>
+ </mime-type>
+ <mime-type type="application/x-berkeley-db;format=hash;version=5">
+ <_comment>Berkeley DB Version 5 Hash Database</_comment>
+ <magic priority="60">
+ <match value="0x00061561" type="host32" offset="12">
+ <match value="0x0009" type="host32" offset="16"/>
+ </match>
+ <match value="0x00061561" type="big32" offset="12">
+ <match value="0x0009" type="big32" offset="16"/>
+ </match>
+ <match value="0x00061561" type="little32" offset="12">
+ <match value="0x0009" type="little32" offset="16"/>
+ </match>
+ </magic>
+ <sub-class-of type="application/x-berkeley-db"/>
+ </mime-type>
+ <mime-type type="application/x-berkeley-db;format=btree;version=2">
+ <_comment>Berkeley DB Version 2 BTree Database</_comment>
+ <magic priority="60">
+ <match value="0x00053162" type="host32" offset="12">
+ <match value="0x0006" type="host32" offset="16"/>
+ </match>
+ <match value="0x00053162" type="big32" offset="12">
+ <match value="0x0006" type="big32" offset="16"/>
+ </match>
+ <match value="0x00053162" type="little32" offset="12">
+ <match value="0x0006" type="little32" offset="16"/>
+ </match>
+ </magic>
+ <sub-class-of type="application/x-berkeley-db"/>
+ </mime-type>
+ <mime-type type="application/x-berkeley-db;format=btree;version=3">
+ <_comment>Berkeley DB Version 3 BTree Database</_comment>
+ <magic priority="60">
+ <match value="0x00053162" type="host32" offset="12">
+ <match value="0x0008" type="host32" offset="16"/>
+ </match>
+ <match value="0x00053162" type="big32" offset="12">
+ <match value="0x0008" type="big32" offset="16"/>
+ </match>
+ <match value="0x00053162" type="little32" offset="12">
+ <match value="0x0008" type="little32" offset="16"/>
+ </match>
+ </magic>
+ <sub-class-of type="application/x-berkeley-db"/>
+ </mime-type>
+ <mime-type type="application/x-berkeley-db;format=btree;version=4">
+ <_comment>Berkeley DB Version 4 and 5 BTree Database</_comment>
+ <magic priority="60">
+ <match value="0x00053162" type="host32" offset="12">
+ <match value="0x0009" type="host32" offset="16"/>
+ </match>
+ <match value="0x00053162" type="big32" offset="12">
+ <match value="0x0009" type="big32" offset="16"/>
+ </match>
+ <match value="0x00053162" type="little32" offset="12">
+ <match value="0x0009" type="little32" offset="16"/>
+ </match>
+ </magic>
+ <sub-class-of type="application/x-berkeley-db"/>
+ </mime-type>
<mime-type type="application/x-bibtex-text-file">
<magic priority="50">