[ 
https://issues.apache.org/jira/browse/TIKA-1420?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14152634#comment-14152634
 ] 

Hudson commented on TIKA-1420:
------------------------------

FAILURE: Integrated in tika-trunk-jdk1.6 #214 (See 
[https://builds.apache.org/job/tika-trunk-jdk1.6/214/])
TIKA-1420, move the PhoneExtractingContentHandler to tika-core. Tests in 
tika-parsers. (tpalsulich: 
http://svn.apache.org/viewvc/tika/trunk/?view=rev&rev=1628340)
* /tika/trunk/tika-core/src/main/java/org/apache/tika/sax/CleanPhoneText.java
* 
/tika/trunk/tika-core/src/main/java/org/apache/tika/sax/PhoneExtractingContentHandler.java
* 
/tika/trunk/tika-example/src/main/java/org/apache/tika/example/CleanPhoneText.java
* 
/tika/trunk/tika-example/src/main/java/org/apache/tika/example/GrabPhoneNumbersExample.java
* 
/tika/trunk/tika-example/src/main/java/org/apache/tika/example/PhoneExtractingContentHandler.java
* 
/tika/trunk/tika-example/src/test/java/org/apache/tika/example/ContentHandlerExampleTest.java
* 
/tika/trunk/tika-example/src/test/java/org/apache/tika/example/PhoneExtractingContentHandlerTest.java
* 
/tika/trunk/tika-example/src/test/resources/org/apache/tika/example/testPhoneNumberExtractor.odt
* /tika/trunk/tika-parsers/src/test/java/org/apache/tika/sax
* 
/tika/trunk/tika-parsers/src/test/java/org/apache/tika/sax/PhoneExtractingContentHandlerTest.java
* 
/tika/trunk/tika-parsers/src/test/resources/test-documents/testPhoneNumberExtractor.odt


> Add Metadata Extraction to Arbitrary Parsers
> --------------------------------------------
>
>                 Key: TIKA-1420
>                 URL: https://issues.apache.org/jira/browse/TIKA-1420
>             Project: Tika
>          Issue Type: Improvement
>          Components: parser
>            Reporter: Tyler Palsulich
>            Assignee: Tyler Palsulich
>            Priority: Minor
>             Fix For: 1.7
>
>
> Suppose you wish to extract information from arbitrary file types and add it 
> to a Metadata Object. This type of task is best handled by a... Handler. But, 
> Handlers do not have access to the Metadata Object passed to a Parser. 
> So, I see a few ways we could do using existing functionality.
> 1) Make an intermediate XML representation of the desired metadata in a 
> handler, then convert the XML to the Metadata after parsing. 
> 2) Create a second Parser which extracts the desired information.
>      a) Assume the Handler passed to this Parser is already filled with 
> content. So, we could simply get whatever content from the Handler and 
> populate the Metadata directly.
>      b) Create a new Stream in the first Parser to pass to the second, which 
> in turn populates the Metadata.
> None of these options seem ideal. Is there a better way to handle this 
> scenario? Or, can we create some sort of... wrapper for a Handler which can 
> accept a Metadata Object to populate directly? 



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to