|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.WeaselReader.PalmIO.Bookmarks
public class Bookmarks
A collection of bookmarks. Each bookmark is mark/anchor in the text represented by a byte offset from the beginning of the text, plus a title string.
Field Summary | |
---|---|
int |
length
The number of bookmarks in this collection. |
private int[] |
offsets
Bookmark offsets, measured in bytes from the beginning of the document. |
private java.lang.String[] |
titles
Bookmark titles. |
Constructor Summary | |
---|---|
Bookmarks(int[] offsets,
java.lang.String[] titles)
Create a new annotation collection. |
Method Summary | |
---|---|
int |
getOffset(int index)
Get the byte offset for the given bookmark. |
int[] |
getOffsetArray()
Get the array containing the bookmark offsets. |
java.lang.String |
getTitle(int index)
Get the title string for the given bookmark. |
java.lang.String[] |
getTitleArray()
Get the array containing the bookmark titles. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private final int[] offsets
private final java.lang.String[] titles
public final int length
Constructor Detail |
---|
public Bookmarks(int[] offsets, java.lang.String[] titles)
offsets
- an int array containing the byte offsets for each
bookmark.titles
- a String array containing the titles for each bookmark.Method Detail |
---|
public int getOffset(int index)
index
- the index of the bookmark for which to get the offset.
public int[] getOffsetArray()
public java.lang.String getTitle(int index)
index
- the index of the bookmark for which to get the title.
public java.lang.String[] getTitleArray()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |