A B C D E F G H I J L M N O P R S T U V W X

A

addAttribute(String, String) - Method in class org.htmlcleaner.TagNode
Adds specified attribute to this tag or overrides existing one.
addAttributePatternTransformation(Pattern, String) - Method in class org.htmlcleaner.TagTransformation
 
addAttributePatternTransformation(Pattern, Pattern, String) - Method in class org.htmlcleaner.TagTransformation
 
addAttributePatternTransformation(AttributeTransformation) - Method in class org.htmlcleaner.TagTransformation
 
addAttributeTransformation(String, String) - Method in class org.htmlcleaner.TagTransformation
Adds new attribute transformation to this tag transformation.
addAttributeTransformation(String) - Method in class org.htmlcleaner.TagTransformation
Adds new attribute transformation in which destination attrbute will not exists (simply removes it from list of attributes).
addChild(Object) - Method in class org.htmlcleaner.TagNode
 
addChildren(List<? extends BaseToken>) - Method in class org.htmlcleaner.TagNode
Add all elements from specified list to this node.
addGlobalTransformation(AttributeTransformation) - Method in class org.htmlcleaner.CleanerTransformations
 
addHtmlModificationListener(HtmlModificationListener) - Method in class org.htmlcleaner.CleanerProperties
Adds a listener to the list of objects that will be notified about changes that cleaner does during cleanup process.
addNamespaceDeclaration(String, String) - Method in class org.htmlcleaner.TagNode
Adds namespace declaration to the node
addPruneNode(TagNode, CleanTimeValues) - Method in class org.htmlcleaner.HtmlCleaner
 
addPruneTagNodeCondition(ITagNodeCondition) - Method in class org.htmlcleaner.CleanerProperties
Adds the condition to existing prune tag set.
addText(String) - Method in class org.htmlcleaner.HtmlCleanerForAnt
 
addTransformation(TagTransformation) - Method in class org.htmlcleaner.CleanerTransformations
Adds specified tag transformation to the collection.
applyTagTransformations(Map<String, String>) - Method in class org.htmlcleaner.TagTransformation
 
AttributeTransformation - Interface in org.htmlcleaner
 
AttributeTransformationPatternImpl - Class in org.htmlcleaner
 
AttributeTransformationPatternImpl(Pattern, Pattern, String) - Constructor for class org.htmlcleaner.AttributeTransformationPatternImpl
 
AttributeTransformationPatternImpl(String, String, String) - Constructor for class org.htmlcleaner.AttributeTransformationPatternImpl
 

B

BaseToken - Interface in org.htmlcleaner
Base token interface.
BaseTokenImpl - Class in org.htmlcleaner
Base class for all tokens.
BaseTokenImpl() - Constructor for class org.htmlcleaner.BaseTokenImpl
 
BaseTokenImpl(int, int) - Constructor for class org.htmlcleaner.BaseTokenImpl
 
BEGIN_CDATA - Static variable in class org.htmlcleaner.CData
 
BelongsTo - Enum in org.htmlcleaner
 
blank - Variable in class org.htmlcleaner.ContentNode
 
BOOL_ATT_EMPTY - Static variable in class org.htmlcleaner.CleanerProperties
 
BOOL_ATT_SELF - Static variable in class org.htmlcleaner.CleanerProperties
 
BOOL_ATT_TRUE - Static variable in class org.htmlcleaner.CleanerProperties
 
BrowserCompactXmlSerializer - Class in org.htmlcleaner
Browser compact XML serializer - creates resulting XML by stripping whitespaces wherever possible, but preserving single whitespace where at least one exists.
BrowserCompactXmlSerializer(CleanerProperties) - Constructor for class org.htmlcleaner.BrowserCompactXmlSerializer
 

C

CData - Class in org.htmlcleaner
 
CData(String) - Constructor for class org.htmlcleaner.CData
 
charValue() - Method in class org.htmlcleaner.SpecialEntity
 
clean(String) - Method in class org.htmlcleaner.HtmlCleaner
 
clean(File, String) - Method in class org.htmlcleaner.HtmlCleaner
 
clean(File) - Method in class org.htmlcleaner.HtmlCleaner
 
clean(URL, String) - Method in class org.htmlcleaner.HtmlCleaner
Deprecated. 
clean(URL) - Method in class org.htmlcleaner.HtmlCleaner
Creates instance from the content downloaded from specified URL.
clean(InputStream, String) - Method in class org.htmlcleaner.HtmlCleaner
 
clean(InputStream) - Method in class org.htmlcleaner.HtmlCleaner
 
clean(Reader) - Method in class org.htmlcleaner.HtmlCleaner
 
clean(Reader, CleanTimeValues) - Method in class org.htmlcleaner.HtmlCleaner
Basic version of the cleaning call.
CleanerProperties - Class in org.htmlcleaner
Properties defining cleaner's behaviour
CleanerProperties() - Constructor for class org.htmlcleaner.CleanerProperties
 
CleanerProperties(ITagInfoProvider) - Constructor for class org.htmlcleaner.CleanerProperties
 
CleanerTransformations - Class in org.htmlcleaner
Contains transformation collection.
CleanerTransformations() - Constructor for class org.htmlcleaner.CleanerTransformations
 
CleanerTransformations(Map) - Constructor for class org.htmlcleaner.CleanerTransformations
 
clear() - Method in class org.htmlcleaner.CleanerTransformations
 
CloseTag - Enum in org.htmlcleaner
 
CommandLine - Class in org.htmlcleaner
Command line usage class.
CommandLine() - Constructor for class org.htmlcleaner.CommandLine
 
CommentNode - Class in org.htmlcleaner
HTML comment token.
CommentNode(String) - Constructor for class org.htmlcleaner.CommentNode
 
CompactHtmlSerializer - Class in org.htmlcleaner
Compact HTML serializer - creates resulting HTML by stripping whitespaces wherever possible.
CompactHtmlSerializer(CleanerProperties) - Constructor for class org.htmlcleaner.CompactHtmlSerializer
 
CompactXmlSerializer - Class in org.htmlcleaner
Compact XML serializer - creates resulting XML by stripping whitespaces.
CompactXmlSerializer(CleanerProperties) - Constructor for class org.htmlcleaner.CompactXmlSerializer
 
ConfigFileTagProvider - Class in org.htmlcleaner
Configuration file tag provider - reads XML file in specified format and creates a Tag Provider.
ConfigFileTagProvider(InputSource) - Constructor for class org.htmlcleaner.ConfigFileTagProvider
 
ConfigFileTagProvider(File) - Constructor for class org.htmlcleaner.ConfigFileTagProvider
 
ConfigFileTagProvider(URL) - Constructor for class org.htmlcleaner.ConfigFileTagProvider
 
content - Variable in class org.htmlcleaner.ContentNode
 
ContentNode - Class in org.htmlcleaner
HTML text token.
ContentNode(String) - Constructor for class org.htmlcleaner.ContentNode
 
ContentType - Enum in org.htmlcleaner
 
createDOM(TagNode) - Method in class org.htmlcleaner.DomSerializer
 
createJDom(TagNode) - Method in class org.htmlcleaner.JDomSerializer
 

D

DECIMAL - Static variable in class org.htmlcleaner.Utils
 
DEFAULT_CHARSET - Static variable in class org.htmlcleaner.CleanerProperties
 
DefaultTagProvider - Class in org.htmlcleaner
This is the default tag provider for HTML Cleaner Note this is no longer generated from XML - see https://sourceforge.net/p/htmlcleaner/bugs/81/
DefaultTagProvider() - Constructor for class org.htmlcleaner.DefaultTagProvider
 
defineAllowedChildrenTags(String) - Method in class org.htmlcleaner.TagInfo
 
defineCloseBeforeCopyInsideTags(String) - Method in class org.htmlcleaner.TagInfo
 
defineCloseBeforeTags(String) - Method in class org.htmlcleaner.TagInfo
 
defineCloseInsideCopyAfterTags(String) - Method in class org.htmlcleaner.TagInfo
 
defineFatalTags(String) - Method in class org.htmlcleaner.TagInfo
 
defineForbiddenTags(String) - Method in class org.htmlcleaner.TagInfo
 
defineHigherLevelTags(String) - Method in class org.htmlcleaner.TagInfo
 
defineRequiredEnclosingTags(String) - Method in class org.htmlcleaner.TagInfo
 
Display - Enum in org.htmlcleaner
Most HTML 4 elements permitted within the BODY are classified as either block-level elements or inline elements.
DoctypeToken - Class in org.htmlcleaner
HTML doctype token.
DoctypeToken(String, String, String, String) - Constructor for class org.htmlcleaner.DoctypeToken
 
DoctypeToken(String, String, String, String, String) - Constructor for class org.htmlcleaner.DoctypeToken
 
DomSerializer - Class in org.htmlcleaner
DOM serializer - creates xml DOM.
DomSerializer(CleanerProperties, boolean) - Constructor for class org.htmlcleaner.DomSerializer
 
DomSerializer(CleanerProperties) - Constructor for class org.htmlcleaner.DomSerializer
 
dontEscape(Element) - Method in class org.htmlcleaner.DomSerializer
encapsulate content with <[CDATA[ ]]> for things like script and style elements
dontEscape(TagNode) - Method in class org.htmlcleaner.HtmlSerializer
 
dontEscape(TagNode) - Method in class org.htmlcleaner.XmlSerializer
 

E

END_CDATA - Static variable in class org.htmlcleaner.CData
 
EndTagToken - Class in org.htmlcleaner
HTML tag end token.
EndTagToken() - Constructor for class org.htmlcleaner.EndTagToken
 
EndTagToken(String) - Constructor for class org.htmlcleaner.EndTagToken
 
ErrorType - Enum in org.htmlcleaner.audit
Possible error codes (read messages) that cleaner uses to inform clients about reasons/actions that modification involves.
escapeHtml(String, CleanerProperties) - Static method in class org.htmlcleaner.Utils
Escapes HTML string
escapeText(String) - Method in class org.htmlcleaner.HtmlSerializer
 
escapeXml - Variable in class org.htmlcleaner.DomSerializer
Whether XML entities should be escaped or not.
escapeXml - Variable in class org.htmlcleaner.JDomSerializer
 
escapeXml(String, CleanerProperties, boolean) - Static method in class org.htmlcleaner.Utils
Escapes XML string.
escapeXml(String, boolean, boolean, boolean, boolean, boolean, boolean) - Static method in class org.htmlcleaner.Utils
change notes: 1) convert ascii characters encoded using &#xx; format to the ascii characters -- may be an attempt to slip in malicious html 2) convert &#xxx; format characters to " style representation if available for the character.
escapeXml(String, boolean, boolean, boolean, boolean, boolean, boolean, boolean) - Static method in class org.htmlcleaner.Utils
change notes: 1) convert ascii characters encoded using &#xx; format to the ascii characters -- may be an attempt to slip in malicious html 2) convert &#xxx; format characters to " style representation if available for the character.
escapeXml(String) - Method in class org.htmlcleaner.XmlSerializer
 
evaluateAgainstNode(TagNode) - Method in class org.htmlcleaner.XPather
Main public method for this class - a way to execute XPath expression against specified TagNode instance.
evaluateTemplate(String, Map<String, String>) - Method in class org.htmlcleaner.TagTransformation
Evaluates string template for specified map of variables.
evaluateXPath(String) - Method in class org.htmlcleaner.TagNode
Evaluates XPath expression on give node.
execute() - Method in class org.htmlcleaner.HtmlCleanerForAnt
Implementation of Ant task execution.

F

findElementByAttValue(String, String, boolean, boolean) - Method in class org.htmlcleaner.TagNode
 
findElementByName(String, boolean) - Method in class org.htmlcleaner.TagNode
 
findElementHavingAttribute(String, boolean) - Method in class org.htmlcleaner.TagNode
 
fireConditionModification(ITagNodeCondition, TagNode) - Method in interface org.htmlcleaner.audit.HtmlModificationListener
Fired when cleaner modifies html due to ITagNodeCondition match.
fireConditionModification(ITagNodeCondition, TagNode) - Method in class org.htmlcleaner.audit.HtmlModificationListenerLogger
 
fireConditionModification(ITagNodeCondition, TagNode) - Method in class org.htmlcleaner.CleanerProperties
 
fireHtmlError(boolean, TagNode, ErrorType) - Method in interface org.htmlcleaner.audit.HtmlModificationListener
Fired when cleaner fixes some error in html syntax.
fireHtmlError(boolean, TagNode, ErrorType) - Method in class org.htmlcleaner.audit.HtmlModificationListenerLogger
 
fireHtmlError(boolean, TagNode, ErrorType) - Method in class org.htmlcleaner.CleanerProperties
 
fireUglyHtml(boolean, TagNode, ErrorType) - Method in interface org.htmlcleaner.audit.HtmlModificationListener
Fired when cleaner fixes ugly html -- when syntax was correct but task was implemented by weird code.
fireUglyHtml(boolean, TagNode, ErrorType) - Method in class org.htmlcleaner.audit.HtmlModificationListenerLogger
 
fireUglyHtml(boolean, TagNode, ErrorType) - Method in class org.htmlcleaner.CleanerProperties
 
fireUserDefinedModification(boolean, TagNode, ErrorType) - Method in interface org.htmlcleaner.audit.HtmlModificationListener
Fired when cleaner modifies html due to user specified rules.
fireUserDefinedModification(boolean, TagNode, ErrorType) - Method in class org.htmlcleaner.audit.HtmlModificationListenerLogger
 
fireUserDefinedModification(boolean, TagNode, ErrorType) - Method in class org.htmlcleaner.CleanerProperties
 

G

getAllChildren() - Method in class org.htmlcleaner.TagNode
 
getAllElements(boolean) - Method in class org.htmlcleaner.TagNode
 
getAllElementsList(boolean) - Method in class org.htmlcleaner.TagNode
 
getAllowTags() - Method in class org.htmlcleaner.CleanerProperties
 
getAllowTagSet() - Method in class org.htmlcleaner.CleanerProperties
 
getAllowTagSet(CleanTimeValues) - Method in class org.htmlcleaner.HtmlCleaner
 
getAllTags(CleanTimeValues) - Method in class org.htmlcleaner.HtmlCleaner
 
getAsString(TagNode, String, boolean) - Method in class org.htmlcleaner.Serializer
 
getAsString(TagNode, String) - Method in class org.htmlcleaner.Serializer
 
getAsString(TagNode, boolean) - Method in class org.htmlcleaner.Serializer
 
getAsString(TagNode) - Method in class org.htmlcleaner.Serializer
 
getAsString(String) - Method in class org.htmlcleaner.Serializer
 
getAttributeByName(String) - Method in class org.htmlcleaner.TagNode
 
getAttributes() - Method in class org.htmlcleaner.TagNode
Returns the attributes of the tagnode.
getAttributesInLowerCase() - Method in class org.htmlcleaner.TagNode
Returns the attributes of the tagnode in lower case.
getBelongsTo() - Method in class org.htmlcleaner.TagInfo
 
getBooleanAttributeValues() - Method in class org.htmlcleaner.CleanerProperties
 
getCharset() - Method in class org.htmlcleaner.CleanerProperties
 
getChildBreaks() - Method in class org.htmlcleaner.HtmlCleaner.NestingState
 
getChildIndex(HtmlNode) - Method in class org.htmlcleaner.TagNode
 
getChildren() - Method in class org.htmlcleaner.TagNode
Deprecated. use TagNode.getChildTagList(), will be refactored and possibly removed in future versions. TODO This method should be refactored because is does not properly match the commonly used Java's getter/setter strategy.
getChildTagList() - Method in class org.htmlcleaner.TagNode
 
getChildTags() - Method in class org.htmlcleaner.TagInfo
 
getChildTags() - Method in class org.htmlcleaner.TagNode
 
getCleanerTransformations() - Method in class org.htmlcleaner.CleanerProperties
 
getCol() - Method in interface org.htmlcleaner.BaseToken
 
getCol() - Method in class org.htmlcleaner.BaseTokenImpl
 
getCommentedContent() - Method in class org.htmlcleaner.CommentNode
 
getContent() - Method in class org.htmlcleaner.CData
 
getContent() - Method in class org.htmlcleaner.CommentNode
 
getContent() - Method in class org.htmlcleaner.ContentNode
 
getContent() - Method in class org.htmlcleaner.DoctypeToken
 
getContentType() - Method in class org.htmlcleaner.TagInfo
 
getContentWithoutStartAndEndTokens() - Method in class org.htmlcleaner.CData
 
getContentWithStartAndEndTokens() - Method in class org.htmlcleaner.CData
 
getContinueAfterTags() - Method in class org.htmlcleaner.TagInfo
 
getCopyTags() - Method in class org.htmlcleaner.TagInfo
 
getDbCode() - Method in enum org.htmlcleaner.BelongsTo
 
getDbCode() - Method in enum org.htmlcleaner.ContentType
 
getDecimalNCR() - Method in class org.htmlcleaner.SpecialEntity
 
getDisplay() - Method in class org.htmlcleaner.TagInfo
 
getDocType() - Method in class org.htmlcleaner.HtmlTokenizer
 
getDocType() - Method in class org.htmlcleaner.TagNode
 
getElementList(ITagNodeCondition, boolean) - Method in class org.htmlcleaner.TagNode
Get all elements in the tree that satisfy specified condition.
getElementListByAttValue(String, String, boolean, boolean) - Method in class org.htmlcleaner.TagNode
 
getElementListByName(String, boolean) - Method in class org.htmlcleaner.TagNode
 
getElementListHavingAttribute(String, boolean) - Method in class org.htmlcleaner.TagNode
 
getElementsByAttValue(String, String, boolean, boolean) - Method in class org.htmlcleaner.TagNode
 
getElementsByName(String, boolean) - Method in class org.htmlcleaner.TagNode
 
getElementsHavingAttribute(String, boolean) - Method in class org.htmlcleaner.TagNode
 
getEscaped(boolean) - Method in class org.htmlcleaner.SpecialEntity
 
getEscapedValue() - Method in class org.htmlcleaner.SpecialEntity
 
getEscapedXmlString() - Method in class org.htmlcleaner.SpecialEntity
 
getFatalTag() - Method in class org.htmlcleaner.TagInfo
 
getHexNCR() - Method in class org.htmlcleaner.SpecialEntity
 
getHigherTags() - Method in class org.htmlcleaner.TagInfo
 
getHtmlString() - Method in class org.htmlcleaner.SpecialEntity
 
getHyphenReplacementInComment() - Method in class org.htmlcleaner.CleanerProperties
 
getInnerHtml(TagNode) - Method in class org.htmlcleaner.HtmlCleaner
For the specified node, returns it's content as string.
getKey() - Method in class org.htmlcleaner.SpecialEntity
 
getMaxEntityLength() - Method in class org.htmlcleaner.SpecialEntities
 
getMustCloseTags() - Method in class org.htmlcleaner.TagInfo
 
getName() - Method in class org.htmlcleaner.DoctypeToken
 
getName() - Method in class org.htmlcleaner.TagInfo
 
getName() - Method in class org.htmlcleaner.TagNode
 
getName() - Method in class org.htmlcleaner.TagToken
 
getNamespaceDeclarations() - Method in class org.htmlcleaner.TagNode
 
getOpenTags() - Method in class org.htmlcleaner.HtmlCleaner.NestingState
 
getParent() - Method in class org.htmlcleaner.TagNode
 
getPart1() - Method in class org.htmlcleaner.DoctypeToken
 
getPart2() - Method in class org.htmlcleaner.DoctypeToken
 
getPart3() - Method in class org.htmlcleaner.DoctypeToken
Deprecated. 
getPart4() - Method in class org.htmlcleaner.DoctypeToken
Deprecated. 
getPermittedTags() - Method in class org.htmlcleaner.TagInfo
 
getProperties() - Method in class org.htmlcleaner.HtmlCleaner
 
getPruneTags() - Method in class org.htmlcleaner.CleanerProperties
 
getPruneTagSet() - Method in class org.htmlcleaner.CleanerProperties
 
getPruneTagSet(CleanTimeValues) - Method in class org.htmlcleaner.HtmlCleaner
 
getPublicId() - Method in class org.htmlcleaner.DoctypeToken
This will retrieve the public ID of an externally referenced DTD, or an empty String if none is referenced.
getRequiredParent() - Method in class org.htmlcleaner.TagInfo
 
getRow() - Method in interface org.htmlcleaner.BaseToken
 
getRow() - Method in class org.htmlcleaner.BaseTokenImpl
 
getSpecialEntity(String) - Method in class org.htmlcleaner.SpecialEntities
 
getSpecialEntityByUnicode(int) - Method in class org.htmlcleaner.SpecialEntities
 
getSystemId() - Method in class org.htmlcleaner.DoctypeToken
This will retrieve the system ID of an externally referenced DTD, or an empty String if none is referenced.
getTagInfo(String) - Method in class org.htmlcleaner.ConfigFileTagProvider
 
getTagInfo(String) - Method in class org.htmlcleaner.DefaultTagProvider
 
getTagInfo(String) - Method in interface org.htmlcleaner.ITagInfoProvider
 
getTagInfoProvider() - Method in class org.htmlcleaner.CleanerProperties
 
getTagInfoProvider() - Method in class org.htmlcleaner.HtmlCleaner
 
getTagName(String) - Method in class org.htmlcleaner.CleanerTransformations
 
getTemplate() - Method in interface org.htmlcleaner.AttributeTransformation
 
getTemplate() - Method in class org.htmlcleaner.AttributeTransformationPatternImpl
 
getText() - Method in class org.htmlcleaner.TagNode
 
getTransformation(String) - Method in class org.htmlcleaner.CleanerTransformations
 
getTransformations() - Method in class org.htmlcleaner.HtmlCleaner
 
getType() - Method in class org.htmlcleaner.DoctypeToken
This will retrieve an integer representing the identified DocType
getXmlAsString(TagNode, String) - Method in class org.htmlcleaner.XmlSerializer
Deprecated. Use getAsString() instead.
getXmlAsString(TagNode) - Method in class org.htmlcleaner.XmlSerializer
Deprecated. Use getAsString() instead.
getXmlName(String) - Static method in class org.htmlcleaner.Utils
 
getXmlNSPrefix(String) - Static method in class org.htmlcleaner.Utils
 

H

hasAttribute(String) - Method in class org.htmlcleaner.TagNode
Checks existence of specified attribute.
hasChildren() - Method in class org.htmlcleaner.TagNode
 
hasTransformationForTag(String) - Method in class org.htmlcleaner.CleanerTransformations
 
HEX_RELAXED - Static variable in class org.htmlcleaner.Utils
 
HEX_STRICT - Static variable in class org.htmlcleaner.Utils
 
HTML4_0 - Static variable in class org.htmlcleaner.DoctypeToken
 
HTML4_01 - Static variable in class org.htmlcleaner.DoctypeToken
 
HTML4_01_FRAMESET - Static variable in class org.htmlcleaner.DoctypeToken
 
HTML4_01_STRICT - Static variable in class org.htmlcleaner.DoctypeToken
 
HTML4_01_TRANSITIONAL - Static variable in class org.htmlcleaner.DoctypeToken
 
HTML5 - Static variable in class org.htmlcleaner.DoctypeToken
 
HTML5_LEGACY_TOOL_COMPATIBLE - Static variable in class org.htmlcleaner.DoctypeToken
 
HtmlCleaner - Class in org.htmlcleaner
Main HtmlCleaner class.
HtmlCleaner() - Constructor for class org.htmlcleaner.HtmlCleaner
Constructor - creates cleaner instance with default tag info provider and default properties.
HtmlCleaner(ITagInfoProvider) - Constructor for class org.htmlcleaner.HtmlCleaner
Constructor - creates the instance with specified tag info provider and default properties
HtmlCleaner(CleanerProperties) - Constructor for class org.htmlcleaner.HtmlCleaner
Constructor - creates the instance with default tag info provider and specified properties
HtmlCleaner(ITagInfoProvider, CleanerProperties) - Constructor for class org.htmlcleaner.HtmlCleaner
Constructor - creates the instance with specified tag info provider and specified properties
HtmlCleaner.NestingState - Class in org.htmlcleaner
 
HtmlCleaner.NestingState() - Constructor for class org.htmlcleaner.HtmlCleaner.NestingState
 
HtmlCleanerException - Exception in org.htmlcleaner
General HtmlCleaner runtime exception.
HtmlCleanerException() - Constructor for exception org.htmlcleaner.HtmlCleanerException
 
HtmlCleanerException(Throwable) - Constructor for exception org.htmlcleaner.HtmlCleanerException
 
HtmlCleanerException(String) - Constructor for exception org.htmlcleaner.HtmlCleanerException
 
HtmlCleanerException(String, Throwable) - Constructor for exception org.htmlcleaner.HtmlCleanerException
 
HtmlCleanerForAnt - Class in org.htmlcleaner
Support for ANT.
HtmlCleanerForAnt() - Constructor for class org.htmlcleaner.HtmlCleanerForAnt
 
HtmlModificationListener - Interface in org.htmlcleaner.audit
Implementors can be registered on CleanerProperties to receive notifications about modifications made by html cleaner.
HtmlModificationListenerLogger - Class in org.htmlcleaner.audit
 
HtmlModificationListenerLogger(Logger) - Constructor for class org.htmlcleaner.audit.HtmlModificationListenerLogger
 
HtmlNode - Interface in org.htmlcleaner
Marker interface denoting nodes of the document tree
HtmlSerializer - Class in org.htmlcleaner
Abstract HTML serializer - contains common logic for descendants.
HtmlSerializer(CleanerProperties) - Constructor for class org.htmlcleaner.HtmlSerializer
 
HtmlTokenizer - Class in org.htmlcleaner
Main HTML tokenizer.
HtmlTokenizer(HtmlCleaner, Reader, CleanTimeValues) - Constructor for class org.htmlcleaner.HtmlTokenizer
Constructor - creates instance of the parser with specified content.

I

initCleanerTransformations(Map) - Method in class org.htmlcleaner.HtmlCleaner
 
insertChild(int, HtmlNode) - Method in class org.htmlcleaner.TagNode
Inserts specified node at specified position in array of children
insertChildAfter(HtmlNode, HtmlNode) - Method in class org.htmlcleaner.TagNode
Inserts specified node in the list of children after specified child
insertChildBefore(HtmlNode, HtmlNode) - Method in class org.htmlcleaner.TagNode
Inserts specified node in the list of children before specified child
INSTANCE - Static variable in class org.htmlcleaner.conditional.TagNodeAutoGeneratedCondition
 
INSTANCE - Static variable in class org.htmlcleaner.DefaultTagProvider
 
INSTANCE - Static variable in class org.htmlcleaner.SpecialEntities
 
intValue() - Method in class org.htmlcleaner.SpecialEntity
 
isAddNewlineToHeadAndBody() - Method in class org.htmlcleaner.CleanerProperties
 
isAdvancedXmlEscape() - Method in class org.htmlcleaner.CleanerProperties
 
isAfterTagLineBreakNeeded() - Method in enum org.htmlcleaner.Display
 
isAllowHtmlInsideAttributes() - Method in class org.htmlcleaner.CleanerProperties
 
isAllowMultiWordAttributes() - Method in class org.htmlcleaner.CleanerProperties
 
isAutoGenerated() - Method in class org.htmlcleaner.TagNode
 
isBlank() - Method in class org.htmlcleaner.ContentNode
 
isCopy() - Method in class org.htmlcleaner.TagNode
 
isCreatingHtmlDom() - Method in class org.htmlcleaner.XmlSerializer
 
isDeprecated() - Method in class org.htmlcleaner.TagInfo
 
isDeserializeEntities() - Method in class org.htmlcleaner.CleanerProperties
 
isEmpty() - Method in class org.htmlcleaner.TagNode
 
isEmptyString(Object) - Static method in class org.htmlcleaner.Utils
 
isEmptyTag() - Method in class org.htmlcleaner.TagInfo
 
isEndTagPermitted() - Method in enum org.htmlcleaner.CloseTag
 
isForbiddenAttribute(TagNode, String, String) - Method in class org.htmlcleaner.XmlSerializer
Override to add additional conditions.
isForbiddenTag(TagNode) - Method in class org.htmlcleaner.XmlSerializer
 
isForeignMarkup() - Method in class org.htmlcleaner.TagNode
 
isHeadOrBody(String) - Method in class org.htmlcleaner.XmlSerializer
 
isHtmlSpecialEntity() - Method in class org.htmlcleaner.SpecialEntity
 
isIdentifierHelperChar(char) - Static method in class org.htmlcleaner.Utils
Checks if specified character can be part of xml identifier (tag name of attribute name) and is not standard identifier character.
isIgnorePermitted() - Method in class org.htmlcleaner.TagInfo
 
isIgnoreQuestAndExclam() - Method in class org.htmlcleaner.CleanerProperties
 
isKeepWhitespaceAndCommentsInHead() - Method in class org.htmlcleaner.CleanerProperties
 
isLeadingAndEndWhitespacesAllowed() - Method in enum org.htmlcleaner.Display
 
isMinimizedTagPermitted() - Method in enum org.htmlcleaner.CloseTag
 
isMinimizedTagPermitted() - Method in class org.htmlcleaner.TagInfo
 
isMinimizedTagSyntax(TagNode) - Method in class org.htmlcleaner.HtmlSerializer
 
isMinimizedTagSyntax(TagNode) - Method in class org.htmlcleaner.XmlSerializer
 
isNamespacesAware() - Method in class org.htmlcleaner.CleanerProperties
 
isOmitCdataOutsideScriptAndStyle() - Method in class org.htmlcleaner.CleanerProperties
 
isOmitComments() - Method in class org.htmlcleaner.CleanerProperties
 
isOmitDeprecatedTags() - Method in class org.htmlcleaner.CleanerProperties
 
isOmitDoctypeDeclaration() - Method in class org.htmlcleaner.CleanerProperties
 
isOmitHtmlEnvelope() - Method in class org.htmlcleaner.CleanerProperties
 
isOmitUnknownTags() - Method in class org.htmlcleaner.CleanerProperties
 
isOmitXmlDeclaration() - Method in class org.htmlcleaner.CleanerProperties
 
isPruned() - Method in class org.htmlcleaner.TagNode
 
isRecognizeUnicodeChars() - Method in class org.htmlcleaner.CleanerProperties
 
isRemovingNodeReasonablySafe(TagNode) - Method in class org.htmlcleaner.HtmlCleaner
 
isScriptOrStyle(Element) - Method in class org.htmlcleaner.DomSerializer
 
isScriptOrStyle(TagNode) - Method in class org.htmlcleaner.Serializer
 
isTranslateSpecialEntities() - Method in class org.htmlcleaner.CleanerProperties
 
isTransResCharsToNCR() - Method in class org.htmlcleaner.CleanerProperties
 
isTransSpecialEntitiesToNCR() - Method in class org.htmlcleaner.CleanerProperties
 
isTreatDeprecatedTagsAsContent() - Method in class org.htmlcleaner.CleanerProperties
 
isTreatUnknownTagsAsContent() - Method in class org.htmlcleaner.CleanerProperties
 
isUnique() - Method in class org.htmlcleaner.TagInfo
 
isUseCdataForScriptAndStyle() - Method in class org.htmlcleaner.CleanerProperties
 
isUseEmptyElementTags() - Method in class org.htmlcleaner.CleanerProperties
 
isValid() - Method in class org.htmlcleaner.DoctypeToken
 
isValidXmlIdentifier(String) - Static method in class org.htmlcleaner.Utils
Checks whether specified string can be valid tag name or attribute name in xml.
isWhitespaceString(Object) - Static method in class org.htmlcleaner.Utils
Checks whether specified object's string representation is empty string (containing of only whitespaces).
ITagInfoProvider - Interface in org.htmlcleaner
Provides set of TagInfo instances.
ITagNodeCondition - Interface in org.htmlcleaner.conditional
Used as base for different node checkers.

J

JDomSerializer - Class in org.htmlcleaner
JDom serializer - creates xml JDom instance out of the TagNode.
JDomSerializer(CleanerProperties, boolean) - Constructor for class org.htmlcleaner.JDomSerializer
 
JDomSerializer(CleanerProperties) - Constructor for class org.htmlcleaner.JDomSerializer
 

L

ltrim(String) - Static method in class org.htmlcleaner.Utils
Trims specified string from left.

M

main(String[]) - Static method in class org.htmlcleaner.CommandLine
 
main(String[]) - Static method in class org.htmlcleaner.ConfigFileTagProvider
Generates code for tag provider class from specified configuration XML file.
makeCopy() - Method in class org.htmlcleaner.TagNode
 

N

name - Variable in class org.htmlcleaner.TagToken
 
NON_BREAKABLE_SPACE - Static variable in class org.htmlcleaner.SpecialEntities
 

O

OptionalOutput - Enum in org.htmlcleaner
 
org.htmlcleaner - package org.htmlcleaner
 
org.htmlcleaner.audit - package org.htmlcleaner.audit
 
org.htmlcleaner.conditional - package org.htmlcleaner.conditional
 
outputCData(CData) - Method in class org.htmlcleaner.DomSerializer
 

P

PrettyHtmlSerializer - Class in org.htmlcleaner
Pretty HTML serializer - creates resulting HTML with indenting lines.
PrettyHtmlSerializer(CleanerProperties) - Constructor for class org.htmlcleaner.PrettyHtmlSerializer
 
PrettyHtmlSerializer(CleanerProperties, String) - Constructor for class org.htmlcleaner.PrettyHtmlSerializer
 
PrettyXmlSerializer - Class in org.htmlcleaner
Pretty XML serializer - creates resulting XML with indenting lines.
PrettyXmlSerializer(CleanerProperties) - Constructor for class org.htmlcleaner.PrettyXmlSerializer
 
PrettyXmlSerializer(CleanerProperties, String) - Constructor for class org.htmlcleaner.PrettyXmlSerializer
 
props - Variable in class org.htmlcleaner.DomSerializer
The HTML Cleaner properties set by the user to control the HTML cleaning.
props - Variable in class org.htmlcleaner.JDomSerializer
 
props - Variable in class org.htmlcleaner.Serializer
 
put(SpecialEntity) - Method in class org.htmlcleaner.SpecialEntities
 

R

removeAllChildren() - Method in class org.htmlcleaner.TagNode
Removes all children (subelements and text content).
removeAttribute(String) - Method in class org.htmlcleaner.TagNode
Removes specified attribute from this tag.
removeChild(Object) - Method in class org.htmlcleaner.TagNode
Remove specified child element from this node.
removeFromTree() - Method in class org.htmlcleaner.TagNode
Remove this node from the tree.
reset() - Method in class org.htmlcleaner.CleanerProperties
advancedXmlEscape = true; useCdataForScriptAndStyle = true; translateSpecialEntities = true; recognizeUnicodeChars = true; omitUnknownTags = false; treatUnknownTagsAsContent = false; omitDeprecatedTags = false; treatDeprecatedTagsAsContent = false; omitComments = false; omitXmlDeclaration = OptionalOutput.alwaysOutput; omitDoctypeDeclaration = OptionalOutput.alwaysOutput; omitHtmlEnvelope = OptionalOutput.alwaysOutput; useEmptyElementTags = true; allowMultiWordAttributes = true; allowHtmlInsideAttributes = false; ignoreQuestAndExclam = true; namespacesAware = true; keepHeadWhitespace = true; addNewlineToHeadAndBody = true; hyphenReplacementInComment = "="; pruneTags = null; allowTags = null; booleanAttributeValues = BOOL_ATT_SELF; collapseNullHtml = CollapseHtml.none charset = "UTF-8";
rtrim(String) - Static method in class org.htmlcleaner.Utils
Trims specified string from right.

S

SAFE_BEGIN_CDATA - Static variable in class org.htmlcleaner.CData
 
SAFE_BEGIN_CDATA_ALT - Static variable in class org.htmlcleaner.CData
 
SAFE_END_CDATA - Static variable in class org.htmlcleaner.CData
 
SAFE_END_CDATA_ALT - Static variable in class org.htmlcleaner.CData
 
satisfy(String, String) - Method in interface org.htmlcleaner.AttributeTransformation
 
satisfy(String, String) - Method in class org.htmlcleaner.AttributeTransformationPatternImpl
 
satisfy(TagNode) - Method in interface org.htmlcleaner.conditional.ITagNodeCondition
 
satisfy(TagNode) - Method in class org.htmlcleaner.conditional.TagAllCondition
 
satisfy(TagNode) - Method in class org.htmlcleaner.conditional.TagNodeAttExistsCondition
 
satisfy(TagNode) - Method in class org.htmlcleaner.conditional.TagNodeAttNameValueRegexCondition
 
satisfy(TagNode) - Method in class org.htmlcleaner.conditional.TagNodeAttValueCondition
 
satisfy(TagNode) - Method in class org.htmlcleaner.conditional.TagNodeAutoGeneratedCondition
 
satisfy(TagNode) - Method in class org.htmlcleaner.conditional.TagNodeEmptyContentCondition
 
satisfy(TagNode) - Method in class org.htmlcleaner.conditional.TagNodeInsignificantBrCondition
 
satisfy(TagNode) - Method in class org.htmlcleaner.conditional.TagNodeNameCondition
 
serialize(Serializer, Writer) - Method in interface org.htmlcleaner.BaseToken
 
serialize(TagNode, Writer) - Method in class org.htmlcleaner.BrowserCompactXmlSerializer
 
serialize(Serializer, Writer) - Method in class org.htmlcleaner.CommentNode
 
serialize(TagNode, Writer) - Method in class org.htmlcleaner.CompactHtmlSerializer
 
serialize(TagNode, Writer) - Method in class org.htmlcleaner.CompactXmlSerializer
 
serialize(Serializer, Writer) - Method in class org.htmlcleaner.ContentNode
 
serialize(Serializer, Writer) - Method in class org.htmlcleaner.DoctypeToken
 
serialize(Serializer, Writer) - Method in class org.htmlcleaner.EndTagToken
 
serialize(TagNode, Writer) - Method in class org.htmlcleaner.PrettyHtmlSerializer
 
serialize(TagNode, Writer) - Method in class org.htmlcleaner.PrettyXmlSerializer
 
serialize(TagNode, Writer) - Method in class org.htmlcleaner.Serializer
 
serialize(TagNode, Writer) - Method in class org.htmlcleaner.SimpleHtmlSerializer
 
serialize(TagNode, Writer) - Method in class org.htmlcleaner.SimpleXmlSerializer
 
serialize(Serializer, Writer) - Method in class org.htmlcleaner.TagNode
 
serializeAttribute(TagNode, Writer, String, String) - Method in class org.htmlcleaner.XmlSerializer
This allows overriding to eliminate forbidden attributes (for example javascript attributes onclick, onblur, etc.
serializeCData(CData, TagNode, Writer) - Method in class org.htmlcleaner.XmlSerializer
Serialize a CDATA section.
serializeContentToken(ContentNode, TagNode, Writer) - Method in class org.htmlcleaner.XmlSerializer
Serialize a content token, escaping where necessary.
serializeEndTag(TagNode, Writer, boolean) - Method in class org.htmlcleaner.HtmlSerializer
 
serializeEndTag(TagNode, Writer) - Method in class org.htmlcleaner.XmlSerializer
 
serializeEndTag(TagNode, Writer, boolean) - Method in class org.htmlcleaner.XmlSerializer
 
serializeOpenTag(TagNode, Writer, boolean) - Method in class org.htmlcleaner.HtmlSerializer
 
serializeOpenTag(TagNode, Writer) - Method in class org.htmlcleaner.XmlSerializer
 
serializeOpenTag(TagNode, Writer, boolean) - Method in class org.htmlcleaner.XmlSerializer
 
serializePrettyHtml(TagNode, Writer, int, boolean, boolean) - Method in class org.htmlcleaner.PrettyHtmlSerializer
 
serializePrettyXml(TagNode, Writer, int) - Method in class org.htmlcleaner.PrettyXmlSerializer
 
Serializer - Class in org.htmlcleaner
Basic abstract serializer - contains common logic for descendants (methods writeXXX().
Serializer(CleanerProperties) - Constructor for class org.htmlcleaner.Serializer
 
setAddNewlineToHeadAndBody(boolean) - Method in class org.htmlcleaner.CleanerProperties
 
setAdvancedXmlEscape(boolean) - Method in class org.htmlcleaner.CleanerProperties
 
setAdvancedxmlescape(boolean) - Method in class org.htmlcleaner.HtmlCleanerForAnt
 
setAllowHtmlInsideAttributes(boolean) - Method in class org.htmlcleaner.CleanerProperties
 
setAllowhtmlinsideattributes(boolean) - Method in class org.htmlcleaner.HtmlCleanerForAnt
 
setAllowMultiWordAttributes(boolean) - Method in class org.htmlcleaner.CleanerProperties
 
setAllowmultiwordattributes(boolean) - Method in class org.htmlcleaner.HtmlCleanerForAnt
 
setAllowTags(String) - Method in class org.htmlcleaner.CleanerProperties
 
setAttributes(Map<String, String>) - Method in class org.htmlcleaner.TagNode
Replace the current set of attributes with a new set.
setAutoGenerated(boolean) - Method in class org.htmlcleaner.TagNode
 
setBelongsTo(BelongsTo) - Method in class org.htmlcleaner.TagInfo
 
setBooleanAttributeValues(String) - Method in class org.htmlcleaner.CleanerProperties
 
setBooleanatts(String) - Method in class org.htmlcleaner.HtmlCleanerForAnt
 
setCharset(String) - Method in class org.htmlcleaner.CleanerProperties
 
setChildren(List<? extends BaseToken>) - Method in class org.htmlcleaner.TagNode
 
setChildTags(Set<String>) - Method in class org.htmlcleaner.TagInfo
 
setCleanerTransformations(CleanerTransformations) - Method in class org.htmlcleaner.CleanerProperties
 
setCol(int) - Method in interface org.htmlcleaner.BaseToken
 
setCol(int) - Method in class org.htmlcleaner.BaseTokenImpl
 
setContinueAfterTags(Set<String>) - Method in class org.htmlcleaner.TagInfo
 
setCopyTags(Set<String>) - Method in class org.htmlcleaner.TagInfo
 
setCreatingHtmlDom(boolean) - Method in class org.htmlcleaner.XmlSerializer
 
setDeprecated(boolean) - Method in class org.htmlcleaner.TagInfo
 
setDeserializeEntities(boolean) - Method in class org.htmlcleaner.CleanerProperties
 
setDest(String) - Method in class org.htmlcleaner.HtmlCleanerForAnt
 
setDisplay(Display) - Method in class org.htmlcleaner.TagInfo
 
setDocType(DoctypeToken) - Method in class org.htmlcleaner.TagNode
 
setFatalTag(String) - Method in class org.htmlcleaner.TagInfo
 
setForeignMarkup(boolean) - Method in class org.htmlcleaner.TagNode
 
setHigherTags(Set<String>) - Method in class org.htmlcleaner.TagInfo
 
setHyphenreplacement(String) - Method in class org.htmlcleaner.HtmlCleanerForAnt
 
setHyphenReplacementInComment(String) - Method in class org.htmlcleaner.CleanerProperties
 
setIgnorePermitted(boolean) - Method in class org.htmlcleaner.TagInfo
 
setIgnoreqe(boolean) - Method in class org.htmlcleaner.HtmlCleanerForAnt
 
setIgnoreQuestAndExclam(boolean) - Method in class org.htmlcleaner.CleanerProperties
 
setIncharset(String) - Method in class org.htmlcleaner.HtmlCleanerForAnt
 
setInnerHtml(TagNode, String) - Method in class org.htmlcleaner.HtmlCleaner
For the specified tag node, defines it's html content.
setKeepWhitespaceAndCommentsInHead(boolean) - Method in class org.htmlcleaner.CleanerProperties
 
setMustCloseTags(Set<String>) - Method in class org.htmlcleaner.TagInfo
 
setName(String) - Method in class org.htmlcleaner.TagInfo
 
setNamespacesAware(boolean) - Method in class org.htmlcleaner.CleanerProperties
 
setNamespacesaware(boolean) - Method in class org.htmlcleaner.HtmlCleanerForAnt
 
setNodebyxpath(String) - Method in class org.htmlcleaner.HtmlCleanerForAnt
 
setOmitCdataOutsideScriptAndStyle(boolean) - Method in class org.htmlcleaner.CleanerProperties
 
setOmitComments(boolean) - Method in class org.htmlcleaner.CleanerProperties
 
setOmitcomments(boolean) - Method in class org.htmlcleaner.HtmlCleanerForAnt
 
setOmitDeprecatedTags(boolean) - Method in class org.htmlcleaner.CleanerProperties
 
setOmitdeprtags(boolean) - Method in class org.htmlcleaner.HtmlCleanerForAnt
 
setOmitdoctypedecl(boolean) - Method in class org.htmlcleaner.HtmlCleanerForAnt
 
setOmitDoctypeDeclaration(boolean) - Method in class org.htmlcleaner.CleanerProperties
 
setOmitHtmlEnvelope(boolean) - Method in class org.htmlcleaner.CleanerProperties
 
setOmithtmlenvelope(boolean) - Method in class org.htmlcleaner.HtmlCleanerForAnt
 
setOmitUnknownTags(boolean) - Method in class org.htmlcleaner.CleanerProperties
 
setOmitunknowntags(boolean) - Method in class org.htmlcleaner.HtmlCleanerForAnt
 
setOmitxmldecl(boolean) - Method in class org.htmlcleaner.HtmlCleanerForAnt
 
setOmitXmlDeclaration(boolean) - Method in class org.htmlcleaner.CleanerProperties
 
setOutcharset(String) - Method in class org.htmlcleaner.HtmlCleanerForAnt
 
setOutputtype(String) - Method in class org.htmlcleaner.HtmlCleanerForAnt
 
setPermittedTags(Set<String>) - Method in class org.htmlcleaner.TagInfo
 
setPruned(boolean) - Method in class org.htmlcleaner.TagNode
 
setPruneTags(String) - Method in class org.htmlcleaner.CleanerProperties
Resets prune tags set and adds tag name conditions to it.
setPrunetags(String) - Method in class org.htmlcleaner.HtmlCleanerForAnt
 
setRecognizeUnicodeChars(boolean) - Method in class org.htmlcleaner.CleanerProperties
 
setRequiredParent(String) - Method in class org.htmlcleaner.TagInfo
 
setRow(int) - Method in interface org.htmlcleaner.BaseToken
 
setRow(int) - Method in class org.htmlcleaner.BaseTokenImpl
 
setSpecialentities(boolean) - Method in class org.htmlcleaner.HtmlCleanerForAnt
 
setSrc(String) - Method in class org.htmlcleaner.HtmlCleanerForAnt
 
setTaginfofile(String) - Method in class org.htmlcleaner.HtmlCleanerForAnt
 
setText(String) - Method in class org.htmlcleaner.HtmlCleanerForAnt
 
setTransform(String) - Method in class org.htmlcleaner.HtmlCleanerForAnt
 
setTranslateSpecialEntities(boolean) - Method in class org.htmlcleaner.CleanerProperties
TODO : use OptionalOutput
setTransResCharsToNCR(boolean) - Method in class org.htmlcleaner.CleanerProperties
 
setTransSpecialEntitiesToNCR(boolean) - Method in class org.htmlcleaner.CleanerProperties
 
setTreatDeprecatedTagsAsContent(boolean) - Method in class org.htmlcleaner.CleanerProperties
 
setTreatdeprtagsascontent(boolean) - Method in class org.htmlcleaner.HtmlCleanerForAnt
 
setTreatUnknownTagsAsContent(boolean) - Method in class org.htmlcleaner.CleanerProperties
 
setTreatunknowntagsascontent(boolean) - Method in class org.htmlcleaner.HtmlCleanerForAnt
 
setUnicodechars(boolean) - Method in class org.htmlcleaner.HtmlCleanerForAnt
 
setUnique(boolean) - Method in class org.htmlcleaner.TagInfo
 
setUsecdata(boolean) - Method in class org.htmlcleaner.HtmlCleanerForAnt
 
setUseCdataForScriptAndStyle(boolean) - Method in class org.htmlcleaner.CleanerProperties
 
setUseEmptyElementTags(boolean) - Method in class org.htmlcleaner.CleanerProperties
 
setUseemptyelementtags(boolean) - Method in class org.htmlcleaner.HtmlCleanerForAnt
 
SimpleHtmlSerializer - Class in org.htmlcleaner
Simple HTML serializer - creates resulting HTML without indenting and/or compacting.
SimpleHtmlSerializer(CleanerProperties) - Constructor for class org.htmlcleaner.SimpleHtmlSerializer
 
SimpleXmlSerializer - Class in org.htmlcleaner
Simple XML serializer - creates resulting XML without indenting lines.
SimpleXmlSerializer(CleanerProperties) - Constructor for class org.htmlcleaner.SimpleXmlSerializer
 
SpecialEntities - Class in org.htmlcleaner
This class contains map with special entities used in HTML and their unicodes.
SpecialEntities(boolean, boolean) - Constructor for class org.htmlcleaner.SpecialEntities
 
SpecialEntity - Class in org.htmlcleaner
 
SpecialEntity(String, int, String, boolean) - Constructor for class org.htmlcleaner.SpecialEntity
 

T

TagAllCondition - Class in org.htmlcleaner.conditional
All nodes.
TagAllCondition() - Constructor for class org.htmlcleaner.conditional.TagAllCondition
 
TagInfo - Class in org.htmlcleaner
Class contains information about single HTML tag.
It also contains rules for tag balancing.
TagInfo(String, ContentType, BelongsTo, boolean, boolean, boolean, CloseTag, Display) - Constructor for class org.htmlcleaner.TagInfo
 
TagNode - Class in org.htmlcleaner
XML node tag - basic node of the cleaned HTML tree.
TagNode(String) - Constructor for class org.htmlcleaner.TagNode
 
TagNodeAttExistsCondition - Class in org.htmlcleaner.conditional
Checks if node contains specified attribute.
TagNodeAttExistsCondition(String) - Constructor for class org.htmlcleaner.conditional.TagNodeAttExistsCondition
 
TagNodeAttNameValueRegexCondition - Class in org.htmlcleaner.conditional
Checks if node has specified attribute with specified value.
TagNodeAttNameValueRegexCondition(Pattern, Pattern) - Constructor for class org.htmlcleaner.conditional.TagNodeAttNameValueRegexCondition
 
TagNodeAttValueCondition - Class in org.htmlcleaner.conditional
Checks if node has specified attribute with specified value.
TagNodeAttValueCondition(String, String, boolean) - Constructor for class org.htmlcleaner.conditional.TagNodeAttValueCondition
 
TagNodeAutoGeneratedCondition - Class in org.htmlcleaner.conditional
Remove empty autogenerated nodes.
TagNodeAutoGeneratedCondition() - Constructor for class org.htmlcleaner.conditional.TagNodeAutoGeneratedCondition
 
TagNodeEmptyContentCondition - Class in org.htmlcleaner.conditional
Checks if node is an inline 0r block element and has empty contents or white/non-breakable spaces only.
TagNodeEmptyContentCondition(ITagInfoProvider) - Constructor for class org.htmlcleaner.conditional.TagNodeEmptyContentCondition
 
TagNodeInsignificantBrCondition - Class in org.htmlcleaner.conditional
Checks if node is an insignificant br tag -- is placed at the end or at the start of a block.
TagNodeInsignificantBrCondition() - Constructor for class org.htmlcleaner.conditional.TagNodeInsignificantBrCondition
 
TagNodeNameCondition - Class in org.htmlcleaner.conditional
Checks if node has specified name.
TagNodeNameCondition(String) - Constructor for class org.htmlcleaner.conditional.TagNodeNameCondition
 
TagNodeVisitor - Interface in org.htmlcleaner
Defines action to be performed on TagNodes
TagToken - Class in org.htmlcleaner
HTML tag token - descendants are start (TagNode) and end token (EndTagToken).
TagToken() - Constructor for class org.htmlcleaner.TagToken
 
TagToken(String) - Constructor for class org.htmlcleaner.TagToken
 
TagTransformation - Class in org.htmlcleaner
Describes how specified tag is transformed to another one, or is ignored during parsing
TagTransformation() - Constructor for class org.htmlcleaner.TagTransformation
 
TagTransformation(String, String, boolean) - Constructor for class org.htmlcleaner.TagTransformation
Creates new tag transformation from source tag to target tag specifying whether source tag attributes are preserved.
TagTransformation(String, String) - Constructor for class org.htmlcleaner.TagTransformation
Creates new tag transformation from source tag to target tag preserving all source tag attributes.
TagTransformation(String) - Constructor for class org.htmlcleaner.TagTransformation
Creates new tag transformation in which specified tag will be skipped (ignored) during parsing process.
tokenize(String, String) - Static method in class org.htmlcleaner.Utils
 
toString() - Method in class org.htmlcleaner.BaseTokenImpl
 
toString() - Method in class org.htmlcleaner.CData
 
toString() - Method in class org.htmlcleaner.CommentNode
 
toString() - Method in class org.htmlcleaner.conditional.TagNodeAutoGeneratedCondition
 
toString() - Method in class org.htmlcleaner.ContentNode
 
toString() - Method in class org.htmlcleaner.DoctypeToken
 
toString() - Method in class org.htmlcleaner.EndTagToken
 
toString() - Method in class org.htmlcleaner.TagToken
 
toValue(Object) - Static method in enum org.htmlcleaner.BelongsTo
 
toValue(Object) - Static method in enum org.htmlcleaner.ContentType
 
transformAttributes(String, Map<String, String>) - Method in class org.htmlcleaner.CleanerTransformations
 
traverse(TagNodeVisitor) - Method in class org.htmlcleaner.TagNode
Traverses the tree and performs visitor's action on each node.

U

UNKNOWN - Static variable in class org.htmlcleaner.DoctypeToken
 
updateTagTransformations(String, String) - Method in class org.htmlcleaner.CleanerTransformations
 
updateTagTransformations(Map) - Method in class org.htmlcleaner.CleanerTransformations
 
Utils - Class in org.htmlcleaner
Common utilities.
Utils() - Constructor for class org.htmlcleaner.Utils
 

V

valueOf(String) - Static method in enum org.htmlcleaner.audit.ErrorType
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum org.htmlcleaner.BelongsTo
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum org.htmlcleaner.CloseTag
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum org.htmlcleaner.ContentType
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum org.htmlcleaner.Display
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum org.htmlcleaner.OptionalOutput
Returns the enum constant of this type with the specified name.
values() - Static method in enum org.htmlcleaner.audit.ErrorType
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum org.htmlcleaner.BelongsTo
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum org.htmlcleaner.CloseTag
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum org.htmlcleaner.ContentType
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum org.htmlcleaner.Display
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum org.htmlcleaner.OptionalOutput
Returns an array containing the constants of this enum type, in the order they are declared.
VAR_END - Static variable in class org.htmlcleaner.TagTransformation
 
VAR_START - Static variable in class org.htmlcleaner.TagTransformation
 
visit(TagNode, HtmlNode) - Method in interface org.htmlcleaner.TagNodeVisitor
Action to be performed on single node in the tree

W

write(TagNode, Writer, String) - Method in class org.htmlcleaner.Serializer
Writes specified node using specified writer.
write(TagNode, Writer, String, boolean) - Method in class org.htmlcleaner.Serializer
Writes specified node using specified writer.
writeToFile(TagNode, String, String, boolean) - Method in class org.htmlcleaner.Serializer
Writes specified TagNode to the file, using specified charset and optionally omits node envelope (skips open and close tags of the node).
writeToFile(TagNode, String, String) - Method in class org.htmlcleaner.Serializer
Writes specified TagNode to the file, using specified charset.
writeToFile(TagNode, String, boolean) - Method in class org.htmlcleaner.Serializer
Writes specified TagNode to the file, using specified charset and optionally omits node envelope (skips open and close tags of the node).
writeToFile(TagNode, String) - Method in class org.htmlcleaner.Serializer
Writes specified TagNode to the file, using system default charset.
writeToStream(TagNode, OutputStream, String, boolean) - Method in class org.htmlcleaner.Serializer
Writes specified TagNode to the output stream, using specified charset and optionally omits node envelope (skips open and close tags of the node).
writeToStream(TagNode, OutputStream, String) - Method in class org.htmlcleaner.Serializer
Writes specified TagNode to the output stream, using specified charset.
writeToStream(TagNode, OutputStream, boolean) - Method in class org.htmlcleaner.Serializer
Writes specified TagNode to the output stream, using system default charset and optionally omits node envelope (skips open and close tags of the node).
writeToStream(TagNode, OutputStream) - Method in class org.htmlcleaner.Serializer
Writes specified TagNode to the output stream, using system default charset.
writeXml(TagNode, Writer, String) - Method in class org.htmlcleaner.XmlSerializer
Deprecated. Use write() instead.
writeXmlToFile(TagNode, String, String) - Method in class org.htmlcleaner.XmlSerializer
Deprecated. Use writeToFile() instead.
writeXmlToFile(TagNode, String) - Method in class org.htmlcleaner.XmlSerializer
Deprecated. Use writeToFile() instead.
writeXmlToStream(TagNode, OutputStream, String) - Method in class org.htmlcleaner.XmlSerializer
Deprecated. Use writeToStream() instead.
writeXmlToStream(TagNode, OutputStream) - Method in class org.htmlcleaner.XmlSerializer
Deprecated. Use writeToStream() instead.

X

XHTML1_0_FRAMESET - Static variable in class org.htmlcleaner.DoctypeToken
 
XHTML1_0_STRICT - Static variable in class org.htmlcleaner.DoctypeToken
 
XHTML1_0_TRANSITIONAL - Static variable in class org.htmlcleaner.DoctypeToken
 
XHTML1_1 - Static variable in class org.htmlcleaner.DoctypeToken
 
XHTML1_1_BASIC - Static variable in class org.htmlcleaner.DoctypeToken
 
XMLNS_NAMESPACE - Static variable in class org.htmlcleaner.XmlSerializer
 
XmlSerializer - Class in org.htmlcleaner
Abstract XML serializer - contains common logic for descendants.
XmlSerializer(CleanerProperties) - Constructor for class org.htmlcleaner.XmlSerializer
 
XPather - Class in org.htmlcleaner
Utility for searching cleaned document tree with XPath expressions.
XPather(String) - Constructor for class org.htmlcleaner.XPather
Constructor - creates XPather instance with specified XPath expression.
XPatherException - Exception in org.htmlcleaner
Exception that could occure during XPather evaluation.
XPatherException() - Constructor for exception org.htmlcleaner.XPatherException
 
XPatherException(Throwable) - Constructor for exception org.htmlcleaner.XPatherException
 
XPatherException(String) - Constructor for exception org.htmlcleaner.XPatherException
 
XPatherException(String, Throwable) - Constructor for exception org.htmlcleaner.XPatherException
 

A B C D E F G H I J L M N O P R S T U V W X

Copyright © 2006-2014. All Rights Reserved.