Class DocImageHandler
java.lang.Object
com.norconex.crawler.web.fetch.util.DocImageHandler
- All Implemented Interfaces:
Configurable<DocImageHandlerConfig>
Handles images associated with a document (which is different than a document being itself an image). Examples can be screenshots, featured image, etc. Images can be stored in a document metadata/field or in a local directory.
- Since:
- 3.0.0
-
Field Summary
Fields inherited from interface com.norconex.commons.lang.config.Configurable
PROPERTY -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanboolean@NonNull DocImageHandlerConfigvoidhandleImage(InputStream imageStream, Doc doc) inthashCode()voidsetConfiguration(@NonNull DocImageHandlerConfig configuration) toString()
-
Constructor Details
-
DocImageHandler
public DocImageHandler()
-
-
Method Details
-
handleImage
-
toString
-
equals
-
canEqual
-
hashCode
public int hashCode() -
getConfiguration
- Specified by:
getConfigurationin interfaceConfigurable<DocImageHandlerConfig>
-
setConfiguration
-