public class ChunkMarkPos extends MarkPos
ChunkedWordIter as it progresses through
a document which has been broken into chunks.| Modifier and Type | Field and Description |
|---|---|
protected int |
charPos
Character position within the current chunk
|
protected Chunk |
chunk
Current chunk
|
protected int |
wordPos
Word position within the entire document
|
| Constructor and Description |
|---|
ChunkMarkPos() |
| 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 document or field.
|
protected int wordPos
protected int charPos
protected Chunk chunk
public int wordPos()
MarkPospublic int countTextTo(MarkPos other)
MarkPoscountTextTo in class MarkPos