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 void |
handleEndTag(net.htmlparser.jericho.EndTag endTag)
Handle end tags, including empty tags.
|
protected void |
handleStartTag(net.htmlparser.jericho.StartTag startTag)
Handle start tags.
|
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 |
setParametersFromFile(File config)
Initialize filter parameters from a Java File.
|
void |
setParametersFromString(String config)
Initialize filter parameters from a String.
|
void |
setParametersFromURL(URL config)
Initialize filter parameters from a URL.
|
protected void |
startFilter()
Initialize rule state and parser.
|
addCodeToCurrentTextUnit, addCodeToCurrentTextUnit, addFilterEvent, addToDocumentPart, addToTextUnit, addToTextUnit, addToTextUnit, addToTextUnit, addToTextUnit, appendToFirstSkeletonPart, canStartNewTextUnit, close, createEventBuilder, createPropertyTextUnitPlaceholder, createPropertyTextUnitPlaceholders, detectEncoding, determineTagType, endDocumentPart, endFilter, endGroup, endTextUnit, getBufferedWhiteSpace, getCurrentDocName, getDocumentPartId, getEventBuilder, getGroupIdSequence, getParsedHeader, getRuleState, getTextUnitId, handleCdataSection, handleCharacterEntity, handleComment, handleDocTypeDeclaration, handleDocumentPart, handleMarkupDeclaration, handleNumericEntity, handleProcessingInstruction, handleServerCommon, handleServerCommonEscaped, handleText, handleXmlDeclaration, hasNext, isBOM, isDocumentEncoding, isInsideTextRun, isPreserveWhitespace, isUtf8Bom, isUtf8Encoding, isWhiteSpace, next, open, open, peekTempEvent, popTempEvent, postProcessTextUnit, preProcess, setCurrentDocName, setDocumentPartId, setGroupIdSequence, setMimeType, setPreserveWhitespace, setTextUnitId, setTextUnitMimeType, setTextUnitName, setTextUnitPreserveWhitespace, setTextUnitTranslatable, setTextUnitType, startDocumentPart, startGroup, startGroup, startTextUnit, startTextUnit, startTextUnit, startTextUnit, updateEndTagRuleState, updateStartTagRuleStateaddConfiguration, addConfigurations, cancel, createEndFilterEvent, createFilterWriter, createSkeletonWriter, createStartFilterEvent, getConfiguration, getConfigurations, getDisplayName, getDocumentId, getDocumentName, getEncoderManager, getEncoding, getFilterConfigurationMapper, getFilterWriter, getMimeType, getName, getNewlineType, 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 void handleStartTag(net.htmlparser.jericho.StartTag startTag)
AbstractMarkupFilterhandleStartTag in class AbstractMarkupFilterprotected void handleEndTag(net.htmlparser.jericho.EndTag endTag)
AbstractMarkupFilterhandleEndTag 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)
IFilterparams - The new parameters to use.public Parameters getParameters()
IFilterpublic void setParametersFromURL(URL config)
config - public void setParametersFromFile(File config)
config - public void setParametersFromString(String config)
config - Copyright © 2021. All rights reserved.