org.codehaus.mojo.delicious
Class BookmarkGroup

java.lang.Object
  extended by org.codehaus.mojo.delicious.BookmarkGroup

public class BookmarkGroup
extends Object


Constructor Summary
BookmarkGroup()
           
 
Method Summary
 Object addBookmark(Bookmark bookmark)
          Adds the given bookmark.
 void addLinks(File linksPage)
          Adds any links found in the given page to this group as bookmarks.
 void addLinks(Reader linksPage)
          Adds any links found in the given page to this group as bookmarks.
 void addLinks(String linksPage)
          Adds any links found in the given page to this group as bookmarks.
 void addTag(String tag)
          Adds the given tag to all those bookmarks that don't already include it.
 Bookmark get(int i)
           
 List getBookmarks()
           
 Object removeBookmark(Bookmark bookmark)
          Removes the given bookmark.
 int size()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

BookmarkGroup

public BookmarkGroup()
Method Detail

addLinks

public void addLinks(String linksPage)
              throws IOException
Adds any links found in the given page to this group as bookmarks. The page can be file:// or http:// url.

Parameters:
linksPage -
Throws:
IOException

addLinks

public void addLinks(File linksPage)
              throws IOException
Adds any links found in the given page to this group as bookmarks.

Parameters:
linksPage -
Throws:
IOException

addLinks

public void addLinks(Reader linksPage)
              throws IOException
Adds any links found in the given page to this group as bookmarks.

Parameters:
linksPage -
Throws:
IOException

addBookmark

public Object addBookmark(Bookmark bookmark)
Adds the given bookmark. If a bookmark already exists with the same location it is replaced and the old one returned.

Parameters:
bookmark -
Returns:

removeBookmark

public Object removeBookmark(Bookmark bookmark)
Removes the given bookmark.

Parameters:
bookmark -
Returns:

addTag

public void addTag(String tag)
Adds the given tag to all those bookmarks that don't already include it.

Parameters:
tag -

toString

public String toString()
Overrides:
toString in class Object

getBookmarks

public List getBookmarks()

size

public int size()

get

public Bookmark get(int i)


Copyright © 2005-2011 Codehaus. All Rights Reserved.