org.apache.tika.extractor
Interface EmbeddedResourceHandler


public interface EmbeddedResourceHandler

Tika container extractor callback interface. To work with a ContainerExtractor, your code needs to implement this interface.


Method Summary
 void handle(String filename, MediaType mediaType, InputStream stream)
          Called to process an embedded resource within the container.
 

Method Detail

handle

void handle(String filename,
            MediaType mediaType,
            InputStream stream)
Called to process an embedded resource within the container. This will be called once per embedded resource within the container, along with whatever details are available on the embedded resource.

Parameters:
filename - The filename of the embedded resource, if known
mediaType - The media type of the embedded resource, if known
stream - The contents of the embedded resource
Since:
Apache Tika 0.8


Copyright © 2007-2011 The Apache Software Foundation. All Rights Reserved.