Package org.apache.poi.hwpf.usermodel
Class BookmarksImpl
- java.lang.Object
-
- org.apache.poi.hwpf.usermodel.BookmarksImpl
-
-
Constructor Summary
Constructors Constructor Description BookmarksImpl(BookmarksTables bookmarksTables)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description BookmarkgetBookmark(int index)java.util.List<Bookmark>getBookmarksAt(int startCp)intgetBookmarksCount()java.util.Map<java.lang.Integer,java.util.List<Bookmark>>getBookmarksStartedBetween(int startInclusive, int endExclusive)voidremove(int index)Remove bookmark from document (but not the bookmark text)
-
-
-
Constructor Detail
-
BookmarksImpl
public BookmarksImpl(BookmarksTables bookmarksTables)
-
-
Method Detail
-
getBookmark
public Bookmark getBookmark(int index)
- Specified by:
getBookmarkin interfaceBookmarks- Parameters:
index- bookmark document index- Returns:
Bookmarkwith specified index
-
getBookmarksAt
public java.util.List<Bookmark> getBookmarksAt(int startCp)
-
getBookmarksCount
public int getBookmarksCount()
- Specified by:
getBookmarksCountin interfaceBookmarks- Returns:
- count of
Bookmarks in document
-
getBookmarksStartedBetween
public java.util.Map<java.lang.Integer,java.util.List<Bookmark>> getBookmarksStartedBetween(int startInclusive, int endExclusive)
- Specified by:
getBookmarksStartedBetweenin interfaceBookmarks- Returns:
Mapof bookmarks started in specified range, where key is start position and value is sortedListofBookmark
-
-