Package org.apache.poi.hwpf.usermodel
Class BookmarksImpl
java.lang.Object
org.apache.poi.hwpf.usermodel.BookmarksImpl
- All Implemented Interfaces:
Bookmarks
Implementation of user-friendly interface for document bookmarks
- Author:
- Sergey Vladimirov (vlsergey {at} gmail {doc} com)
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetBookmark
(int index) getBookmarksAt
(int startCp) int
getBookmarksStartedBetween
(int startInclusive, int endExclusive) void
remove
(int index) Remove bookmark from document (but not the bookmark text)
-
Constructor Details
-
BookmarksImpl
-
-
Method Details
-
getBookmark
- Specified by:
getBookmark
in interfaceBookmarks
- Parameters:
index
- bookmark document index- Returns:
Bookmark
with specified index
-
getBookmarksAt
-
getBookmarksCount
public int getBookmarksCount()- Specified by:
getBookmarksCount
in interfaceBookmarks
- Returns:
- count of
Bookmark
s in document
-
getBookmarksStartedBetween
- Specified by:
getBookmarksStartedBetween
in interfaceBookmarks
- Returns:
Map
of bookmarks started in specified range, where key is start position and value is sortedList
ofBookmark
-
remove
public void remove(int index) Description copied from interface:Bookmarks
Remove bookmark from document (but not the bookmark text)
-