au.id.jericho.lib.html
Class StringOutputSegment
java.lang.Object
au.id.jericho.lib.html.StringOutputSegment
- CharStreamSource, OutputSegment
public final class StringOutputSegment
extends java.lang.Object
Implements an
OutputSegment
whose content is a
CharSequence
.
This class has been deprecated as of version 2.2 and the functionality replaced with the
OutputDocument.replace(Segment, CharSequence text)
method.
StringOutputSegment(Segment segment, CharSequence text) - Constructs a new StringOutputSegment with the same span as the specified
Segment .
|
StringOutputSegment(int begin, int end, CharSequence text) - Constructs a new
StringOutputSegment with the specified begin and end positions and the specified content.
|
StringOutputSegment
public StringOutputSegment(Segment segment,
CharSequence text)
Constructs a new StringOutputSegment with the same span as the specified
Segment
.
Specifying a
null
argument to the
text
parameter is exactly equivalent to specifying an empty string,
and results in the segment being completely removed from the output document.
segment
- a segment defining the beginning and ending positions of the new output segment.text
- the textual content of the new output segment, or null
if no content.
StringOutputSegment
public StringOutputSegment(int begin,
int end,
CharSequence text)
Constructs a new
StringOutputSegment
with the specified begin and end positions and the specified content.
Specifying a
null
argument to the
text
parameter is exactly equivalent to specifying an empty string,
and results in the segment being completely removed from the output document.
begin
- the position in the OutputDocument
where this output segment begins.end
- the position in the OutputDocument
where this output segment ends.text
- the textual content of the new output segment, or null
if no content.
output
public void output(Writer writer)
throws IOException