[
https://issues.apache.org/jira/browse/TIKA-1539?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14303102#comment-14303102
]
Nick Burch commented on TIKA-1539:
----------------------------------
The GRB parser will need one (or possibly a few) test files in order to
validate its behaviour
It might be good to add one now, which we can then use to unit test the
detection, in advance of the parser. Any chance of one?
At first glance this looks good!
> GRB file magic bytes and extension matching
> --------------------------------------------
>
> Key: TIKA-1539
> URL: https://issues.apache.org/jira/browse/TIKA-1539
> Project: Tika
> Issue Type: Improvement
> Components: mime
> Affects Versions: 1.7
> Reporter: Luke sh
>
> GRB type detection with magic bytes and extension probably needs to be
> supported Tika, the GRB parser is under development, so it may be good to
> have its magic bytes and extension matching detection.
> However, GRB does not have standard mime type, the following extension and
> MAGIC matching settings in the tika-mimetypes.xml are proposed to used for
> GRB mime type idenfication.
> <mime-type type="application/x-grib">
> <acronym>GRIB</acronym>
> <_comment>General Regularly-distributed Information in Binary
> form</_comment>
> <tika:link>http://en.wikipedia.org/wiki/GRIB</tika:link>
> <magic priority="50">
> <match value="GRIB" type="string" offset="0"/>
> </magic>
> <glob pattern="*.grb"/>
> <glob pattern="*.grb1"/>
> <glob pattern="*.grb2"/>
> Any kind suggestion and advice will be welcomed and appreciated.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)