org.apache.tika.metadata
Class MetadataHelper

java.lang.Object
  extended by org.apache.tika.metadata.MetadataHelper

public class MetadataHelper
extends java.lang.Object

Collection of static helper methods for handling metadata.

Since:
Apache Tika 0.7

Method Summary
static java.io.InputStream getInputStream(java.net.URL url, Metadata metadata)
          Returns the content at the given URL, and sets any related metadata entries.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInputStream

public static java.io.InputStream getInputStream(java.net.URL url,
                                                 Metadata metadata)
                                          throws java.io.IOException
Returns the content at the given URL, and sets any related metadata entries.

Parameters:
url - the URL of the resource to be read
metadata - where the resource metadata is stored
Returns:
resource content
Throws:
java.io.IOException - if the URL can not be accessed


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