Class UrlFetcher
- java.lang.Object
-
- org.apache.tika.pipes.fetcher.AbstractFetcher
-
- org.apache.tika.pipes.fetcher.url.UrlFetcher
-
- All Implemented Interfaces:
Fetcher
public class UrlFetcher extends AbstractFetcher
Simple fetcher for URLs. This simply callsTikaInputStream.get(URL)
. This intentionally does not support fetching for files. Please use the FileSystemFetcher for that. If you need more advanced control (passwords, timeouts, proxies, etc), please use the tika-fetcher-http module.
-
-
Constructor Summary
Constructors Constructor Description UrlFetcher()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description InputStream
fetch(String fetchKey, Metadata metadata)
-
Methods inherited from class org.apache.tika.pipes.fetcher.AbstractFetcher
getName, setName
-
-
-
-
Method Detail
-
fetch
public InputStream fetch(String fetchKey, Metadata metadata) throws IOException, TikaException
- Throws:
IOException
TikaException
-
-