1 17 package com.sun.syndication.fetcher; 18 19 import java.io.IOException ; 20 import java.net.URL ; 21 22 import com.sun.syndication.feed.synd.SyndFeed; 23 import com.sun.syndication.io.FeedException; 24 25 public interface FeedFetcher { 26 35 public static String DEFAULT_USER_AGENT = "Rome Client (http://tinyurl.com/64t5n)"; 36 37 40 public abstract String getUserAgent(); 41 44 public abstract void setUserAgent(String string); 45 55 public abstract SyndFeed retrieveFeed(URL feedUrl) throws IllegalArgumentException , IOException , FeedException, FetcherException; 56 57 65 public abstract void addFetcherEventListener(FetcherListener listener); 66 67 72 public abstract void removeFetcherEventListener(FetcherListener listener); 73 74 79 public abstract boolean isUsingDeltaEncoding(); 80 81 90 public abstract void setUsingDeltaEncoding(boolean useDeltaEncoding); 91 92 } | Popular Tags |