public class XmlStreamFilter extends AbstractMarkupFilter
SUB_FILTER| Constructor and Description |
|---|
XmlStreamFilter() |
| Modifier and Type | Method and Description |
|---|---|
protected TaggedFilterConfiguration |
getConfig()
Get the current
TaggedFilterConfiguration. |
Parameters |
getParameters()
Gets the current parameters for this filter.
|
protected String |
normalizeAttributeName(String attrName,
String attrValue,
net.htmlparser.jericho.Tag tag)
Some attributes names are converted to Okapi standards such as HTML charset to "encoding" and lang to "language"
|
void |
setParameters(IParameters params)
Sets new parameters for this filter.
|
void |
setParametersFromURL(URL config)
Initialize filter parameters from a URL.
|
protected void |
startFilter()
Initialize rule state and parser.
|
addCodeToCurrentTextUnit, addCodeToCurrentTextUnit, addToDocumentPart, addToTextUnit, addToTextUnit, addToTextUnit, addToTextUnit, canStartNewTextUnit, close, createEventBuilder, createPropertyTextUnitPlaceholder, createPropertyTextUnitPlaceholders, detectEncoding, determineTagType, disambiguateElementRuleTypes, endDocumentPart, endFilter, endGroup, endTextUnit, getCurrentDocName, getEventBuilder, getMainAttributeRule, getMainElementRule, getParsedHeader, getRuleState, getRuleTypeFromStartTag, getTextUnitId, handleCdataSection, handleCharacterEntity, handleComment, handleDocTypeDeclaration, handleDocumentPart, handleEndTag, handleNumericEntity, handleProcessingInstruction, handleServerCommon, handleServerCommonEscaped, handleStartTag, handleText, handleXmlDeclaration, hasNext, isBOM, isDocumentEncoding, isInline, isInsideTextRun, isMatchedTag, isPreserveWhitespace, isUtf8Bom, isUtf8Encoding, isWhiteSpace, next, open, open, peekTempEvent, postProcessTextUnit, preProcess, setCurrentDocName, setDocumentPartId, setMimeType, setPreserveWhitespace, setTextUnitMimeType, setTextUnitName, setTextUnitType, startDocumentPart, startGroup, startGroup, startTextUnit, startTextUnit, startTextUnit, startTextUnit, updateEndTagRuleState, updateStartTagRuleStateaddConfiguration, addConfiguration, addConfiguration, addConfigurations, cancel, createEndFilterEvent, createFilterWriter, createSkeletonWriter, createStartFilterEvent, findConfiguration, getConfiguration, getConfigurations, getDisplayName, getDocumentId, getDocumentName, getEncoderManager, getEncoding, getFilterConfigurationMapper, getFilterWriter, getMimeType, getName, getNewlineType, getParameters, getParametersClassName, getParentId, getSrcLoc, getTrgLoc, isCanceled, isGenerateSkeleton, isMultilingual, removeConfiguration, setDisplayName, setDocumentName, setEncoding, setFilterConfigurationMapper, setFilterWriter, setGenerateSkeleton, setMultilingual, setName, setNewlineType, setOptions, setParentId, setSrcLoc, setTrgLocclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitforEachRemaining, removeprotected void startFilter()
startFilter in class AbstractMarkupFilterprotected String normalizeAttributeName(String attrName, String attrValue, net.htmlparser.jericho.Tag tag)
AbstractMarkupFilternormalizeAttributeName in class AbstractMarkupFilterattrName - - the attribute nameattrValue - - the attribute valuetag - - the Jericho Tag that contains the attributeprotected TaggedFilterConfiguration getConfig()
AbstractMarkupFilterTaggedFilterConfiguration. A TaggedFilterConfiguration is the result of reading in a YAML
configuration file and converting it into Java Objects.getConfig in class AbstractMarkupFilterTaggedFilterConfigurationpublic void setParameters(IParameters params)
IFiltersetParameters in interface IFiltersetParameters in class AbstractFilterparams - The new parameters to use.public Parameters getParameters()
IFiltergetParameters in interface IFiltergetParameters in class AbstractFilterpublic void setParametersFromURL(URL config)
config - Copyright © 2022. All rights reserved.