File tree 2 files changed +35
-0
lines changed
tika-core/src/main/resources/org/apache/tika/mime
tika-parsers/src/test/java/org/apache/tika/mime
2 files changed +35
-0
lines changed Original file line number Diff line number Diff line change 5250
5250
</mime-type >
5251
5251
5252
5252
<mime-type type =" model/vnd.dwf" >
5253
+ <acronym >DWF</acronym >
5254
+ <_comment >AutoCAD Design Web Format</_comment >
5255
+ <alias type =" drawing/x-dwf" />
5256
+ <magic priority =" 50" >
5257
+ <match type =" string" offset =" 0" value =" (DWF V" >
5258
+ <match type =" string" offset =" 8" value =" ." >
5259
+ <match type =" string" offset =" 11" value =" )" />
5260
+ </match >
5261
+ </match >
5262
+ </magic >
5253
5263
<glob pattern =" *.dwf" />
5254
5264
</mime-type >
5265
+ <mime-type type =" model/vnd.dwf;version=6" >
5266
+ <!-- Zip file with DWF header on the front -->
5267
+ <magic priority =" 60" >
5268
+ <match type =" string" offset =" 0" value =" (DWF V06." >
5269
+ <match type =" string" offset =" 11" value =" )PK" />
5270
+ </match >
5271
+ </magic >
5272
+ <sub-class-of type =" model/vnd.dwf" />
5273
+ </mime-type >
5274
+ <mime-type type =" model/vnd.dwf;version=5" >
5275
+ <magic priority =" 60" >
5276
+ <match type =" string" offset =" 0" value =" (DWF V00.55)" />
5277
+ </magic >
5278
+ </mime-type >
5279
+ <mime-type type =" model/vnd.dwf;version=2" >
5280
+ <magic priority =" 60" >
5281
+ <match type =" string" offset =" 0" value =" (DWF V00.22)" />
5282
+ </magic >
5283
+ </mime-type >
5284
+
5255
5285
<mime-type type =" model/vnd.dwfx+xps" >
5256
5286
<_comment >AutoCAD Design Web Format</_comment >
5257
5287
<glob pattern =" *.dwfx" />
Original file line number Diff line number Diff line change @@ -537,6 +537,11 @@ public void testAutoCADDetection() throws Exception {
537
537
assertTypeByData ("image/vnd.dwg" , "testDWG2007.dwg" );
538
538
assertTypeByData ("image/vnd.dwg" , "testDWG2010.dwg" );
539
539
540
+ // From name, gets the common parent type
541
+ assertTypeByName ("model/vnd.dwf" , "x.dwf" );
542
+ // With the data, can work out it's the v6 zip-based flavour
543
+ assertTypeByData ("model/vnd.dwf; version=6" , "testDWF2010.dwf" );
544
+
540
545
// From name, gets the common parent type
541
546
assertTypeByName ("image/vnd.dxf" , "x.dxf" );
542
547
// With the data, can work out it's the ASCII flavour
You can’t perform that action at this time.
0 commit comments