public void removeBookmarkedURL ( String bookmarkURL ) throws NoResponseException , XMPPErrorException , NotConnectedException , InterruptedException { retrieveBookmarks ( ) ; Iterator < BookmarkedURL > it = bookmarks . getBookmarkedURLS ( ) . iterator ( ) ; while ( it . hasNext ( ) ) { BookmarkedURL bookmark = it . next ( ) ; if ( bookmark . getURL ( ) . equalsIgnoreCase ( bookmarkURL ) ) { if ( bookmark . isShared ( ) ) { throw new IllegalArgumentException ( "Cannot delete a shared bookmark." ) ; } it . remove ( ) ; privateDataManager . setPrivateData ( bookmarks ) ; return ; } } }
Removes a url from the bookmarks .