Class GoogleDriveFetcher
java.lang.Object
org.apache.tika.plugins.AbstractTikaExtension
org.apache.tika.pipes.fetcher.googledrive.GoogleDriveFetcher
- All Implemented Interfaces:
Fetcher,TikaExtension,org.pf4j.ExtensionPoint
-
Field Summary
Fields inherited from class org.apache.tika.plugins.AbstractTikaExtension
pluginConfig -
Constructor Summary
ConstructorsConstructorDescriptionGoogleDriveFetcher(ExtensionConfig pluginConfig, GoogleDriveFetcherConfig config) -
Method Summary
Modifier and TypeMethodDescriptionstatic GoogleDriveFetcherbuild(ExtensionConfig pluginConfig) fetch(String fetchKey, Metadata metadata, ParseContext parseContext) Fetches a resource and returns it as a TikaInputStream.voidMethods inherited from class org.apache.tika.plugins.AbstractTikaExtension
getExtensionConfigMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.tika.plugins.TikaExtension
getExtensionConfig
-
Constructor Details
-
GoogleDriveFetcher
-
-
Method Details
-
build
public static GoogleDriveFetcher build(ExtensionConfig pluginConfig) throws TikaConfigException, IOException - Throws:
TikaConfigExceptionIOException
-
initialize
- Throws:
IOExceptionTikaConfigException
-
fetch
public TikaInputStream fetch(String fetchKey, Metadata metadata, ParseContext parseContext) throws IOException, TikaException Description copied from interface:FetcherFetches a resource and returns it as a TikaInputStream.- Specified by:
fetchin interfaceFetcher- Parameters:
fetchKey- the key identifying the resource to fetch (interpretation depends on the implementation, e.g., file path, URL, S3 key)metadata- metadata object to be updated with resource informationparseContext- the parse context- Returns:
- a TikaInputStream for reading the resource content
- Throws:
IOException- if an I/O error occurs during fetchingTikaException- if a Tika-specific error occurs during fetching
-