Package com.sun.syndication.fetcher.impl

Examples of com.sun.syndication.fetcher.impl.DiskFeedInfoCache


  /**
   * Constructor
   * @param sDiskCachePath String Full path to directory where cached feed info will be stored
   **/
  public FeedReader(String sDiskCachePath) {
    oDche = new DiskFeedInfoCache(sDiskCachePath);
  }
View Full Code Here


        assertTrue("testPlanetCache not zero length", testPlanetCache.trim().length() > 0);
       
        File cacheDir = new File(testPlanetCache);
        if (!cacheDir.exists()) cacheDir.mkdirs();
       
        DiskFeedInfoCache cache =
                new DiskFeedInfoCache(PlanetConfig.getProperty("cache.dir"));
        cache.setFeedInfo(info.getUrl(), info);
       
        SyndFeedInfo info2 = cache.getFeedInfo(url);
        assertNotNull(info2);
        assertEquals(url, info2.getUrl());
    }
View Full Code Here

        if (!cacheDir.canWrite()) {
            log.error("Planet cache directory is not writable: " + cacheDir.getPath());
            return null;
        }
       
        return new DiskFeedInfoCache(cacheDirName);
    }
View Full Code Here

TOP

Related Classes of com.sun.syndication.fetcher.impl.DiskFeedInfoCache

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.