Modifier and Type | Class and Description |
---|---|
class |
Attribute
|
class |
Attributes
|
class |
CharacterEntityReference
Represents an HTML Character Entity Reference.
|
class |
CharacterReference
Represents an HTML Character Reference,
implemented by the subclasses
CharacterEntityReference and NumericCharacterReference . |
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
|
Modifier and Type | Method and Description |
---|---|
Segment |
Element.getContent()
Returns the segment representing the content of the element.
|
Segment |
StreamedSource.getCurrentSegment()
Returns the current
Segment from the StreamedSource.iterator(). |
Segment |
Tag.getNameSegment()
Returns the segment spanning the name of this tag.
|
Segment |
Attribute.getNameSegment()
Returns the segment spanning the name of this attribute.
|
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,
or
null if it has no value. |
Modifier and Type | Method and 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> |
StreamedSource.iterator()
Returns an iterator over every tag, character reference and plain text segment contained within the source document.
|
java.util.Iterator<Segment> |
Source.iterator()
Returns an iterator over every tag, character reference and plain text segment contained within the source document.
|
Modifier and Type | Method and Description |
---|---|
int |
Segment.compareTo(Segment segment)
Compares this
Segment object to another object. |
boolean |
Segment.encloses(Segment segment)
Indicates whether this
Segment encloses the specified Segment . |
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.
|
Modifier and Type | Method and 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.
|
Constructor and Description |
---|
OutputDocument(Segment segment)
Constructs a new output document based on the specified
Segment . |
Renderer(Segment segment)
Constructs a new
Renderer based on the specified Segment . |
SourceCompactor(Segment segment)
Constructs a new
SourceCompactor based on the specified Segment . |
SourceFormatter(Segment segment)
Constructs a new
SourceFormatter based on the specified Segment . |
TextExtractor(Segment segment)
Constructs a new
TextExtractor based on the specified Segment . |
Modifier and Type | Class and Description |
---|---|
class |
net.htmlparser.jericho.nodoc.ListSegment<E>
A base class used internally to simulate multiple inheritance of
Segment and java.util.AbstractList . |