Package org.apache.poi.hwpf.usermodel
Interface Bookmarks
- 
- All Known Implementing Classes:
 BookmarksImpl
public interface BookmarksUser-friendly interface to access document bookmarks 
- 
- 
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description BookmarkgetBookmark(int index)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) 
 - 
 
- 
- 
Method Detail
- 
getBookmark
Bookmark getBookmark(int index) throws java.lang.IndexOutOfBoundsException
- Parameters:
 index- bookmark document index- Returns:
 Bookmarkwith specified index- Throws:
 java.lang.IndexOutOfBoundsException- if bookmark with specified index not present in document
 
- 
getBookmarksCount
int getBookmarksCount()
- Returns:
 - count of 
Bookmarks in document 
 
- 
getBookmarksStartedBetween
java.util.Map<java.lang.Integer,java.util.List<Bookmark>> getBookmarksStartedBetween(int startInclusive, int endExclusive)
- Returns:
 Mapof bookmarks started in specified range, where key is start position and value is sortedListofBookmark
 
- 
remove
void remove(int index)
Remove bookmark from document (but not the bookmark text)- Parameters:
 index- bookmark document index to be removed
 
 - 
 
 -