org.codehaus.mojo.delicious
Class BookmarkGroup

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

public class BookmarkGroup
extends java.lang.Object


Constructor Summary
BookmarkGroup()
           
 
Method Summary
 java.lang.Object addBookmark(Bookmark bookmark)
          Adds the given bookmark.
 void addLinks(java.io.File linksPage)
          Adds any links found in the given page to this group as bookmarks.
 void addLinks(java.io.Reader linksPage)
          Adds any links found in the given page to this group as bookmarks.
 void addLinks(java.lang.String linksPage)
          Adds any links found in the given page to this group as bookmarks.
 void addTag(java.lang.String tag)
          Adds the given tag to all those bookmarks that don't already include it.
 Bookmark get(int i)
           
 java.util.List getBookmarks()
           
 java.lang.Object removeBookmark(Bookmark bookmark)
          Removes the given bookmark.
 int size()
           
 java.lang.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(java.lang.String linksPage)
              throws java.io.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:
java.io.IOException

addLinks

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

Parameters:
linksPage -
Throws:
java.io.IOException

addLinks

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

Parameters:
linksPage -
Throws:
java.io.IOException

addBookmark

public java.lang.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 java.lang.Object removeBookmark(Bookmark bookmark)
Removes the given bookmark.

Parameters:
bookmark -
Returns:

addTag

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

Parameters:
tag -

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

getBookmarks

public java.util.List getBookmarks()

size

public int size()

get

public Bookmark get(int i)


Copyright © 2005-2010. All Rights Reserved.