public class BasicMarkPos extends MarkPos
BasicWordIter
to provide basic context marking over normal fields.
Created: Jan 15, 2005
Modifier and Type | Field and Description |
---|---|
protected int |
charPos
Absolute position, in number of characters, from start of field
|
protected String |
fullText
The full text of the field
|
protected int |
wordPos
Absolute position, in number of words, from start of field
|
Constructor and Description |
---|
BasicMarkPos() |
Modifier and Type | Method and Description |
---|---|
int |
countTextTo(MarkPos other)
Counts the number of characters of text starting at this position
and ending at another position.
|
String |
getTextTo(MarkPos other)
Retrieves all the text starting at this position and ending at another
position.
|
int |
wordPos()
Retrieves the absolute position, in number of words, from the start
of the field.
|
protected int wordPos
protected int charPos
protected String fullText
public int wordPos()
public int countTextTo(MarkPos other)
countTextTo
in class MarkPos