Uses of Class
net.htmlparser.jericho.Segment
-
Packages that use Segment Package Description net.htmlparser.jericho Jericho HTML Parser 3.3net.htmlparser.jericho.nodoc -
-
Uses of Segment in net.htmlparser.jericho
Subclasses of Segment in net.htmlparser.jericho Modifier and Type Class Description class
Attribute
class
Attributes
class
CharacterEntityReference
Represents an HTML Character Entity Reference.class
CharacterReference
Represents an HTML Character Reference, implemented by the subclassesCharacterEntityReference
andNumericCharacterReference
.class
Element
class
EndTag
class
FormControl
Represents an HTML form control.class
NumericCharacterReference
Represents an HTML Numeric Character Reference.class
Source
Represents a source HTML document.class
StartTag
class
Tag
Methods in net.htmlparser.jericho that return Segment Modifier and Type Method Description Segment
Element. getContent()
Returns the segment representing the content of the element.Segment
StreamedSource. getCurrentSegment()
Returns the currentSegment
from the StreamedSource.iterator().Segment
Attribute. getNameSegment()
Returns the segment spanning the name of this attribute.Segment
Tag. getNameSegment()
Returns the segment spanning the name of this tag.Segment
OutputDocument. getSegment()
Returns the original segment upon which this output document is based.Segment
StartTag. getTagContent()
Returns the segment between the end of the tag's name and the start of its end delimiter.Segment
Attribute. getValueSegment()
Segment
Attribute. getValueSegmentIncludingQuotes()
Returns the segment spanning the value of this attribute, including quotation marks if any, ornull
if it has no value.Methods in net.htmlparser.jericho that return types with arguments of type Segment Modifier and Type Method Description java.util.Iterator<Segment>
Segment. getNodeIterator()
Returns an iterator over every tag, character reference and plain text segment contained within this segment.java.util.List<Segment>
Segment. getStyleURISegments()
java.util.Iterator<Segment>
Source. iterator()
Returns an iterator over every tag, character reference and plain text segment contained within the source document.java.util.Iterator<Segment>
StreamedSource. iterator()
Returns an iterator over every tag, character reference and plain text segment contained within the source document.Methods in net.htmlparser.jericho with parameters of type Segment Modifier and Type Method Description int
Segment. compareTo(Segment segment)
Compares thisSegment
object to another object.boolean
Segment. encloses(Segment segment)
Indicates whether thisSegment
encloses the specifiedSegment
.void
OutputDocument. remove(Segment segment)
Removes the specified segment from this output document.void
OutputDocument. replace(Segment segment, java.lang.CharSequence text)
Replaces the specified segment in this output document with the specified text.Method parameters in net.htmlparser.jericho with type arguments of type Segment Modifier and Type Method Description void
Source. ignoreWhenParsing(java.util.Collection<? extends Segment> segments)
Causes all of the segments in the specified collection to be ignored when parsing.void
OutputDocument. remove(java.util.Collection<? extends Segment> segments)
Removes all the segments from this output document represented by the specified source Segment objects.Constructors in net.htmlparser.jericho with parameters of type Segment Constructor Description OutputDocument(Segment segment)
Constructs a new output document based on the specifiedSegment
.Renderer(Segment segment)
Constructs a newRenderer
based on the specifiedSegment
.SourceCompactor(Segment segment)
Constructs a newSourceCompactor
based on the specifiedSegment
.SourceFormatter(Segment segment)
Constructs a newSourceFormatter
based on the specifiedSegment
.TextExtractor(Segment segment)
Constructs a newTextExtractor
based on the specifiedSegment
. -
Uses of Segment in net.htmlparser.jericho.nodoc
Subclasses of Segment in net.htmlparser.jericho.nodoc Modifier and Type Class Description class
SequentialListSegment<E>
A base class used internally to simulate multiple inheritance ofSegment
andjava.util.AbstractSequentialList
.
-