Repository: tika Updated Branches: refs/heads/2.x 4636f95b2 -> 9f6241161
TIKA-2064 Mime types, with magic, for mostly-xml Stata DTA files. (Awaiting suitably licensed file for testing) Project: http://git-wip-us.apache.org/repos/asf/tika/repo Commit: http://git-wip-us.apache.org/repos/asf/tika/commit/443a21e3 Tree: http://git-wip-us.apache.org/repos/asf/tika/tree/443a21e3 Diff: http://git-wip-us.apache.org/repos/asf/tika/diff/443a21e3 Branch: refs/heads/2.x Commit: 443a21e3fb564df9bb1c52f6533bd5da6f5cfcc8 Parents: 4636f95 Author: Nick Burch <[email protected]> Authored: Tue Sep 13 16:55:10 2016 +0100 Committer: Nick Burch <[email protected]> Committed: Tue Sep 13 20:47:59 2016 +0100 ---------------------------------------------------------------------- .../org/apache/tika/mime/tika-mimetypes.xml | 52 ++++++++++++++++++++ 1 file changed, 52 insertions(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/tika/blob/443a21e3/tika-core/src/main/resources/org/apache/tika/mime/tika-mimetypes.xml ---------------------------------------------------------------------- diff --git a/tika-core/src/main/resources/org/apache/tika/mime/tika-mimetypes.xml b/tika-core/src/main/resources/org/apache/tika/mime/tika-mimetypes.xml index 1d1f70a..783e097 100644 --- a/tika-core/src/main/resources/org/apache/tika/mime/tika-mimetypes.xml +++ b/tika-core/src/main/resources/org/apache/tika/mime/tika-mimetypes.xml @@ -3823,6 +3823,58 @@ </magic> </mime-type> + <mime-type type="application/x-stata-do"> + <_comment>Stata DTA Script</_comment> + <acronym>DO</acronym> + <tika:link>http://www.stata.com/help.cgi?do</tika:link> + <glob pattern="*.do"/> + </mime-type> + + <mime-type type="application/x-stata-dta"> + <_comment>Stata DTA Dataset</_comment> + <acronym>DTA</acronym> + <tika:link>http://www.stata.com/help.cgi?dta</tika:link> + <root-XML localName="stata_dta"/> + <magic priority="50"> + <match value="<stata_dta><header><release>" type="string" offset="0"/> + </magic> + <magic priority="40"> + <match value="<stata_dta>" type="string" offset="0"/> + </magic> + <glob pattern="*.dta"/> + </mime-type> + + <mime-type type="application/x-stata-dta;version=14"> + <sub-class-of type="application/x-stata-dta"/> + <magic priority="60"> + <match value="<stata_dta><header><release>118</release>" type="string" offset="0"/> + </magic> + </mime-type> + <mime-type type="application/x-stata-dta;version=13"> + <sub-class-of type="application/x-stata-dta"/> + <magic priority="60"> + <match value="<stata_dta><header><release>117</release>" type="string" offset="0"/> + </magic> + </mime-type> + <mime-type type="application/x-stata-dta;version=12"> + <sub-class-of type="application/x-stata-dta"/> + <magic priority="60"> + <match value="<stata_dta><header><release>115</release>" type="string" offset="0"/> + </magic> + </mime-type> + <mime-type type="application/x-stata-dta;version=10"> + <sub-class-of type="application/x-stata-dta"/> + <magic priority="60"> + <match value="<stata_dta><header><release>114</release>" type="string" offset="0"/> + </magic> + </mime-type> + <mime-type type="application/x-stata-dta;version=8"> + <sub-class-of type="application/x-stata-dta"/> + <magic priority="60"> + <match value="<stata_dta><header><release>113</release>" type="string" offset="0"/> + </magic> + </mime-type> + <mime-type type="application/x-stuffit"> <magic priority="50"> <match value="StuffIt" type="string" offset="0"/>
