|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.weblab_project.core.util.TextUtil
public class TextUtil
A very simple util class that enable to handle LinearSegment
and Text
.
Method Summary | |
---|---|
static java.lang.String |
getSegmentText(Text text,
LinearSegment segment)
Extract the String covered in text by
segment . |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static java.lang.String getSegmentText(Text text, LinearSegment segment) throws WebLabCheckedException
String
covered in text
by
segment
. This cannot work in the case of a
Text
that do not have content (and uses a
TextContent
object instead).
text
- The Text
section in which we look for content.segment
- The Segment
defining the position of the text
to retrieve. segment
must be contained by the
List>Segment<
of text.
String
content of the Text
at
the position defined by the Segment
WebLabCheckedException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |