[
https://issues.apache.org/jira/browse/TIKA-3104?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17145878#comment-17145878
]
Tim Allison commented on TIKA-3104:
-----------------------------------
Fix pushed to the main branch and branch_1x. Example code for xml...I'm not
sure how best to handle this. If you can code a new PListParser, just
copy/past the plistparser the plist detector and add a custom mime along the
lines of what I added to our mimes. Tika will pick it right up.
Be warned that the xml plist subtypes can't be detected with only a "detect" at
this point. We don't have a mechanism to detect xml subtypes, we only look at
the root (plist) during the detection step. The subtype detection happens
during parsing.
With the bplist...I added a whole new detector because there's mime magic that
makes it easy to ignore non-bplist files.
> Detection of memgraph files exported from Xcode
> -----------------------------------------------
>
> Key: TIKA-3104
> URL: https://issues.apache.org/jira/browse/TIKA-3104
> Project: Tika
> Issue Type: Wish
> Components: core
> Affects Versions: 1.24
> Reporter: Parth
> Assignee: Tim Allison
> Priority: Major
> Labels: detection, features, new-parser
> Fix For: 1.25
>
> Attachments: DeepScroll_Example[4988].memgraph,
> DeepScroll_Example[6314]_bplist.memgraph,
> DeepScroll_Example[6314]_xml.memgraph, memgraph.xml, out.memgraph.json,
> out.memgraph.xhtml
>
>
> I wanted to detect a memgraph file linked by a url. But currently detection
> of memgraph file is not supported. I tried adding to custom-mimetypes but
> that did not help.
> <mime-info>
> <mime-type type="application/memgraph">
> <glob pattern="*.memgraph"/>
> </mime-type>
> </mime-info>
>
--
This message was sent by Atlassian Jira
(v8.3.4#803005)