|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
ObjectMarkPos
BasicMarkPos
public class BasicMarkPos
Stores a position within a single document field. Used by
BasicWordIter
to provide basic context marking over normal fields.
Created: Jan 15, 2005
Field Summary | |
---|---|
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 Summary | |
---|---|
BasicMarkPos()
|
Method Summary | |
---|---|
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. |
Methods inherited from class MarkPos |
---|
clone |
Methods inherited from class Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected int wordPos
protected int charPos
protected String fullText
Constructor Detail |
---|
public BasicMarkPos()
Method Detail |
---|
public int wordPos()
wordPos
in class MarkPos
public int countTextTo(MarkPos other)
countTextTo
in class MarkPos
public String getTextTo(MarkPos other)
getTextTo
in class MarkPos
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |