org.rometools.fetcher.impl
Class DiskFeedInfoCache

java.lang.Object
  extended by org.rometools.fetcher.impl.DiskFeedInfoCache
All Implemented Interfaces:
FeedFetcherCache

public class DiskFeedInfoCache
extends Object
implements FeedFetcherCache

Disk based cache.


Field Summary
protected  String cachePath
           
 
Constructor Summary
DiskFeedInfoCache(String cachePath)
           
 
Method Summary
 void clear()
          Clear the cache.
 SyndFeedInfo getFeedInfo(URL url)
          Get a SyndFeedInfo object from the cache.
 SyndFeedInfo remove(URL url)
          Removes the SyndFeedInfo identified by the url from the cache.
static String replaceNonAlphanumeric(String str, char subst)
           
 void setFeedInfo(URL url, SyndFeedInfo feedInfo)
          Add a SyndFeedInfo object to the cache
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

cachePath

protected String cachePath
Constructor Detail

DiskFeedInfoCache

public DiskFeedInfoCache(String cachePath)
Method Detail

getFeedInfo

public SyndFeedInfo getFeedInfo(URL url)
Description copied from interface: FeedFetcherCache
Get a SyndFeedInfo object from the cache.

Specified by:
getFeedInfo in interface FeedFetcherCache
Parameters:
url - The url of the feed
Returns:
A SyndFeedInfo or null if it is not in the cache

setFeedInfo

public void setFeedInfo(URL url,
                        SyndFeedInfo feedInfo)
Description copied from interface: FeedFetcherCache
Add a SyndFeedInfo object to the cache

Specified by:
setFeedInfo in interface FeedFetcherCache
Parameters:
url - The url of the feed
feedInfo - A SyndFeedInfo for the feed

replaceNonAlphanumeric

public static String replaceNonAlphanumeric(String str,
                                            char subst)

clear

public void clear()
Clear the cache.

Specified by:
clear in interface FeedFetcherCache

remove

public SyndFeedInfo remove(URL url)
Description copied from interface: FeedFetcherCache
Removes the SyndFeedInfo identified by the url from the cache.

Specified by:
remove in interface FeedFetcherCache
Returns:
The removed SyndFeedInfo


Copyright © 2004-2013 ROME Project. All Rights Reserved.