Class StripBetweenTransformerConfig
java.lang.Object
com.norconex.importer.handler.BaseLabelableConfig
com.norconex.importer.handler.BaseDocHandlerConfig
com.norconex.importer.handler.transformer.impl.StripBetweenTransformerConfig
- All Implemented Interfaces:
Labelable,ChunkedTextSupport
public class StripBetweenTransformerConfig
extends BaseDocHandlerConfig
implements ChunkedTextSupport
Strips any content found between a matching start and end strings. The matching strings are defined in pairs and multiple ones can be specified at once.
This class can be used as a pre-parsing (text content-types only) or post-parsing handlers.
The following will strip all text between (and including) these two
HTML comments:
<!-- SIDENAV_START --> and
<!-- SIDENAV_END -->.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanbooleanGets source field matcher for fields to transform.intinthashCode()setFieldMatcher(TextMatcher fieldMatcher) Sets source field matcher for fields to transform.setMaxReadSize(int maxReadSize) setOperations(List<StripBetweenOperation> operations) setSourceCharset(Charset sourceCharset) toString()Methods inherited from class com.norconex.importer.handler.BaseLabelableConfig
getLabel, setLabel
-
Constructor Details
-
StripBetweenTransformerConfig
public StripBetweenTransformerConfig()
-
-
Method Details
-
getFieldMatcher
Gets source field matcher for fields to transform.- Specified by:
getFieldMatcherin interfaceChunkedTextSupport- Returns:
- field matcher
-
setFieldMatcher
Sets source field matcher for fields to transform.- Parameters:
fieldMatcher- field matcher
-
getOperations
-
setOperations
-
getMaxReadSize
public int getMaxReadSize()- Specified by:
getMaxReadSizein interfaceChunkedTextSupport
-
getSourceCharset
- Specified by:
getSourceCharsetin interfaceChunkedTextSupport
-
setMaxReadSize
- Returns:
this.
-
setSourceCharset
- Returns:
this.
-
equals
- Overrides:
equalsin classBaseLabelableConfig
-
canEqual
- Overrides:
canEqualin classBaseLabelableConfig
-
hashCode
public int hashCode()- Overrides:
hashCodein classBaseLabelableConfig
-
toString
- Overrides:
toStringin classBaseLabelableConfig
-