|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
ObjectMarkPos
ChunkMarkPos
public class ChunkMarkPos
Tracks the position of a ChunkedWordIter
as it progresses through
a document which has been broken into chunks.
Field Summary | |
---|---|
protected int |
charPos
Character position within the current chunk |
protected Chunk |
chunk
Current chunk |
protected int |
wordPos
Word position within the entire document |
Constructor Summary | |
---|---|
ChunkMarkPos()
|
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 document or 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 Chunk chunk
Constructor Detail |
---|
public ChunkMarkPos()
Method Detail |
---|
public int wordPos()
MarkPos
wordPos
in class MarkPos
public int countTextTo(MarkPos other)
MarkPos
countTextTo
in class MarkPos
public String getTextTo(MarkPos other)
MarkPos
getTextTo
in class MarkPos
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |