[
https://issues.apache.org/jira/browse/TIKA-1182?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13802370#comment-13802370
]
Nick Burch commented on TIKA-1182:
----------------------------------
TikaInputStream.get will wrap the stream if it isn't already a TikaInputStream
TikaInputStream.cast will cast to a TikaInputStream if possible, else return
null. A typical use for this is the code in the ttf parser, where we can
shortcut something with TIS+File but have a backup if not
See
http://tika.apache.org/1.4/api/org/apache/tika/io/TikaInputStream.html#cast%28java.io.InputStream%29
for more details
> Out of memory exception when parsing TTF file
> ---------------------------------------------
>
> Key: TIKA-1182
> URL: https://issues.apache.org/jira/browse/TIKA-1182
> Project: Tika
> Issue Type: Bug
> Affects Versions: 1.4
> Environment: Ubuntu
> java version "1.7.0_40"
> Java(TM) SE Runtime Environment (build 1.7.0_40-b43)
> Java HotSpot(TM) 64-Bit Server VM (build 24.0-b56, mixed mode)
> Reporter: Erik Hetzner
> Attachments: 16A4FF_8.ttf, TIKA-1182-fix1.patch, TIKA_1182.java
>
>
> When parsing attached file using tika-app-1.4.jar, CPU usage is high and
> it never seems to finish.
> When parsing using attached java code, I get an out of memory exception.
> Let me know what other information I can provide.
> Thank you!
--
This message was sent by Atlassian JIRA
(v6.1#6144)