Skip to content

Commit efaf482

Browse files
committed
TIKA-1817 Mime magic for AutoCAD DXF in Ascii and Binary, plus the related DXB
git-svn-id: https://svn.apache.org/repos/asf/tika/trunk@1721390 13f79535-47bb-0310-9956-ffa450edef68
1 parent caa2b5a commit efaf482

File tree

1 file changed

+29
-0
lines changed

1 file changed

+29
-0
lines changed

tika-core/src/main/resources/org/apache/tika/mime/tika-mimetypes.xml

+29
Original file line numberDiff line numberDiff line change
@@ -4795,12 +4795,41 @@
47954795
</magic>
47964796
</mime-type>
47974797

4798+
<mime-type type="image/vnd.dxb">
4799+
<acronym>DXB</acronym>
4800+
<_comment>AutoCAD DXF simplified Binary</_comment>
4801+
<tika:link>http://en.wikipedia.org/wiki/AutoCAD_DXF</tika:link>
4802+
<magic priority="50">
4803+
<match value="AutoCAD DXB 1.0\r\n0x1A00" type="string" offset="0"/>
4804+
</magic>
4805+
<glob pattern="*.dxb"/>
4806+
</mime-type>
4807+
47984808
<mime-type type="image/vnd.dxf">
47994809
<acronym>DXF</acronym>
48004810
<_comment>AutoCAD DXF</_comment>
48014811
<tika:link>http://en.wikipedia.org/wiki/AutoCAD_DXF</tika:link>
4812+
<!-- DXF can be the text or binary representation -->
48024813
<glob pattern="*.dxf"/>
48034814
</mime-type>
4815+
<mime-type type="image/vnd.dxf;format=binary">
4816+
<sub-class-of type="image/vnd.dxf"/>
4817+
<_comment>AutoCAD DXF in Binary form</_comment>
4818+
<magic priority="50">
4819+
<match value="AutoCAD Binary DXF\r\n0x1A00" type="string" offset="0"/>
4820+
</magic>
4821+
</mime-type>
4822+
<mime-type type="image/vnd.dxf;format=ascii">
4823+
<sub-class-of type="image/vnd.dxf"/>
4824+
<_comment>AutoCAD DXF in ASCII Text form</_comment>
4825+
<magic priority="50">
4826+
<!-- Variable number of spaces before the code groups -->
4827+
<match value="0\r\nSECTION\r\n" offset="0:3">
4828+
<match value="2\r\nHEADER\r\n" offset="12:18"/>
4829+
</match>
4830+
</magic>
4831+
</mime-type>
4832+
48044833
<mime-type type="image/vnd.fastbidsheet">
48054834
<glob pattern="*.fbs"/>
48064835
</mime-type>

0 commit comments

Comments
 (0)