Deprecated API

Contents

Deprecated Classes

AttributesOutputSegment
Use the OutputDocument.replace(Attributes,Map) and OutputDocument.replace(Attributes, boolean convertNamesToLowerCase) methods instead.
StringOutputSegment
Use the OutputDocument.replace(Segment, CharSequence text) method instead.

Deprecated Fields

au.id.jericho.lib.html.Tag.PROCESSING_INSTRUCTION
Use StartTagType.XML_PROCESSING_INSTRUCTION in combination with tag type search methods instead.
au.id.jericho.lib.html.Tag.XML_DECLARATION
Use StartTagType.XML_DECLARATION in combination with tag type search methods instead.
au.id.jericho.lib.html.Tag.DOCTYPE_DECLARATION
Use StartTagType.DOCTYPE_DECLARATION in combination with tag type search methods instead.
au.id.jericho.lib.html.Tag.SERVER_PHP
Use PHPTagTypes.PHP_STANDARD in combination with tag type search methods instead.
au.id.jericho.lib.html.Tag.SERVER_COMMON
Use StartTagType.SERVER_COMMON in combination with tag type search methods instead.
au.id.jericho.lib.html.Tag.SERVER_MASON_NAMED_BLOCK
Use MasonTagTypes.MASON_NAMED_BLOCK in combination with tag type search methods instead.
au.id.jericho.lib.html.Tag.SERVER_MASON_COMPONENT_CALL
Use MasonTagTypes.MASON_COMPONENT_CALL in combination with tag type search methods instead.
au.id.jericho.lib.html.Tag.SERVER_MASON_COMPONENT_CALLED_WITH_CONTENT

Deprecated Methods

au.id.jericho.lib.html.Attributes.getList()
Use the Attributes object itself instead.
au.id.jericho.lib.html.AttributesOutputSegment.output(Writer)
Use writeTo(Writer) instead.
au.id.jericho.lib.html.Element.getContentText()
Use isEmpty() ? null : getContent().toString() instead.
au.id.jericho.lib.html.Element.isBlock(String)
Use HTMLElements.getBlockLevelElementNames().contains(elementName.toLowerCase()) instead.
au.id.jericho.lib.html.Element.isInline(String)
Use HTMLElements.getInlineLevelElementNames().contains(elementName.toLowerCase()) instead.
au.id.jericho.lib.html.EndTag.regenerateHTML()
Use tidy() instead.
au.id.jericho.lib.html.EndTag.isForbidden(String)
Use HTMLElements.getEndTagForbiddenElementNames().contains(name.toLowerCase()) instead.
au.id.jericho.lib.html.EndTag.isOptional(String)
Use HTMLElements.getEndTagOptionalElementNames().contains(name.toLowerCase()) instead.
au.id.jericho.lib.html.EndTag.isRequired(String)
Use HTMLElements.getEndTagRequiredElementNames().contains(name.toLowerCase()) instead.
au.id.jericho.lib.html.FormControlType.getTagName()
Use getElementName() instead.
au.id.jericho.lib.html.FormControlType.isPredefinedValue()
au.id.jericho.lib.html.FormControlType.allowsMultipleValues()
Use the more useful FormField.allowsMultipleValues() method instead.
au.id.jericho.lib.html.FormControlType.getFormControlTypeId()
Use toString() instead.
au.id.jericho.lib.html.FormControlType.get(String)
no replacement
au.id.jericho.lib.html.FormControlType.getAdditionalSubmitNames(String)
no replacement
au.id.jericho.lib.html.FormControlType.isPotentialControl(String)
no replacement
au.id.jericho.lib.html.OutputDocument.add(OutputSegment)
Use the register(OutputSegment) method instead.
au.id.jericho.lib.html.OutputDocument.add(FormControl)
Use the replace(FormControl) method instead.
au.id.jericho.lib.html.OutputDocument.add(FormFields)
Use the replace(FormFields) method instead.
au.id.jericho.lib.html.OutputDocument.output(Writer)
Use the writeTo(Writer) method instead.
au.id.jericho.lib.html.OutputDocument.getReader()
au.id.jericho.lib.html.Segment.isComment()
Use this instanceof Tag && ((Tag)this).getTagType()==StartTagType.COMMENT instead.
au.id.jericho.lib.html.Segment.findAllComments()
au.id.jericho.lib.html.Segment.getSourceText()
Use toString() instead.
au.id.jericho.lib.html.Segment.getSourceTextNoWhitespace()
au.id.jericho.lib.html.Segment.findWords()
no replacement
au.id.jericho.lib.html.Source.findEnclosingStartTag(int)
Use findEnclosingTag(int pos) instead.
au.id.jericho.lib.html.Source.findNextComment(int)
au.id.jericho.lib.html.Source.findEnclosingComment(int)
au.id.jericho.lib.html.Source.getNextTagIterator(int)
Use findAllTags().iterator() instead, or multiple calls to the Tag.findNextTag() method.
au.id.jericho.lib.html.StartTag.regenerateHTML()
Use tidy() instead.
au.id.jericho.lib.html.StartTag.isEndTagOptional()
au.id.jericho.lib.html.StartTag.findEndTag()
au.id.jericho.lib.html.StartTag.getFormControlType()
au.id.jericho.lib.html.StartTag.getFollowingTextSegment()
au.id.jericho.lib.html.StartTag.isServerTag()
au.id.jericho.lib.html.StartTag.isComment()
au.id.jericho.lib.html.StartTag.isProcessingInstruction()
Use charAt(1)=='?' instead for backward compatibility.
au.id.jericho.lib.html.StartTag.isXMLDeclaration()
au.id.jericho.lib.html.StartTag.isDocTypeDeclaration()
au.id.jericho.lib.html.StartTag.isCommonServerTag()
au.id.jericho.lib.html.StartTag.isPHPTag()
au.id.jericho.lib.html.StartTag.isMasonTag()
au.id.jericho.lib.html.StartTag.isMasonNamedBlock()
au.id.jericho.lib.html.StartTag.isMasonComponentCall()
au.id.jericho.lib.html.StartTag.isMasonComponentCalledWithContent()
au.id.jericho.lib.html.Tag.regenerateHTML()
Use tidy() instead.

Deprecated Constructors

au.id.jericho.lib.html.OutputDocument.OutputDocument(CharSequence)
Use the OutputDocument(Source) constructor instead.