Renamed and harmonized packages

This commit is contained in:
Patrick Gotthard 2014-05-30 16:30:10 +02:00
parent ed8691df13
commit 46b852cf80
197 changed files with 1109 additions and 1098 deletions

View file

@ -15,7 +15,7 @@
* limitations under the License.
*
*/
package com.sun.syndication.feed;
package com.rometools.rome.feed;
/**
* @author Alejandro Abdelnur

View file

@ -15,18 +15,18 @@
* limitations under the License.
*
*/
package com.sun.syndication.feed;
package com.rometools.rome.feed;
import java.io.Serializable;
import java.util.List;
import org.jdom2.Element;
import com.rometools.rome.feed.impl.ObjectBean;
import com.rometools.rome.feed.module.Extendable;
import com.rometools.rome.feed.module.Module;
import com.rometools.rome.feed.module.impl.ModuleUtils;
import com.rometools.utils.Lists;
import com.sun.syndication.feed.impl.ObjectBean;
import com.sun.syndication.feed.module.Extendable;
import com.sun.syndication.feed.module.Module;
import com.sun.syndication.feed.module.impl.ModuleUtils;
/**
* Parent class of the RSS (Channel) and Atom (Feed) feed beans.

View file

@ -14,12 +14,12 @@
* limitations under the License.
*
*/
package com.sun.syndication.feed.atom;
package com.rometools.rome.feed.atom;
import java.io.Serializable;
import com.rometools.rome.feed.impl.ObjectBean;
import com.rometools.utils.Alternatives;
import com.sun.syndication.feed.impl.ObjectBean;
/**
* Bean for category elements of Atom feeds.

View file

@ -14,14 +14,14 @@
* limitations under the License.
*
*/
package com.sun.syndication.feed.atom;
package com.rometools.rome.feed.atom;
import java.io.Serializable;
import java.util.HashSet;
import java.util.Set;
import com.rometools.rome.feed.impl.ObjectBean;
import com.rometools.utils.Strings;
import com.sun.syndication.feed.impl.ObjectBean;
/**
* Bean for content elements of Atom feeds.

View file

@ -14,7 +14,7 @@
* limitations under the License.
*
*/
package com.sun.syndication.feed.atom;
package com.rometools.rome.feed.atom;
import java.io.Serializable;
import java.util.Date;
@ -22,13 +22,13 @@ import java.util.List;
import org.jdom2.Element;
import com.rometools.rome.feed.impl.ObjectBean;
import com.rometools.rome.feed.module.Extendable;
import com.rometools.rome.feed.module.Module;
import com.rometools.rome.feed.module.impl.ModuleUtils;
import com.rometools.rome.feed.synd.SyndPerson;
import com.rometools.utils.Dates;
import com.rometools.utils.Lists;
import com.sun.syndication.feed.impl.ObjectBean;
import com.sun.syndication.feed.module.Extendable;
import com.sun.syndication.feed.module.Module;
import com.sun.syndication.feed.module.impl.ModuleUtils;
import com.sun.syndication.feed.synd.SyndPerson;
/**
* Bean for entry elements of Atom feeds.

View file

@ -14,16 +14,16 @@
* limitations under the License.
*
*/
package com.sun.syndication.feed.atom;
package com.rometools.rome.feed.atom;
import java.util.Date;
import java.util.List;
import com.rometools.rome.feed.WireFeed;
import com.rometools.rome.feed.module.Module;
import com.rometools.rome.feed.module.impl.ModuleUtils;
import com.rometools.rome.feed.synd.SyndPerson;
import com.rometools.utils.Lists;
import com.sun.syndication.feed.WireFeed;
import com.sun.syndication.feed.module.Module;
import com.sun.syndication.feed.module.impl.ModuleUtils;
import com.sun.syndication.feed.synd.SyndPerson;
/**
* Bean for Atom feeds.
@ -249,7 +249,7 @@ public class Feed extends WireFeed {
/**
* Sets the feed tagline (Atom 0.3, maps to
* {@link #setSubtitle(com.sun.syndication.feed.atom.Content)}).
* {@link #setSubtitle(com.rometools.rome.feed.atom.Content)}).
* <p>
*
* @param tagline the feed tagline to set, <b>null</b> if none.

View file

@ -14,11 +14,11 @@
* limitations under the License.
*
*/
package com.sun.syndication.feed.atom;
package com.rometools.rome.feed.atom;
import java.io.Serializable;
import com.sun.syndication.feed.impl.ObjectBean;
import com.rometools.rome.feed.impl.ObjectBean;
/**
* Bean for the generator element of Atom feeds.

View file

@ -14,12 +14,12 @@
* limitations under the License.
*
*/
package com.sun.syndication.feed.atom;
package com.rometools.rome.feed.atom;
import java.io.Serializable;
import com.rometools.rome.feed.impl.ObjectBean;
import com.rometools.utils.Alternatives;
import com.sun.syndication.feed.impl.ObjectBean;
/**
* Bean for link elements of Atom feeds.

View file

@ -14,18 +14,18 @@
* limitations under the License.
*
*/
package com.sun.syndication.feed.atom;
package com.rometools.rome.feed.atom;
import java.io.Serializable;
import java.util.List;
import com.rometools.rome.feed.impl.ObjectBean;
import com.rometools.rome.feed.module.Extendable;
import com.rometools.rome.feed.module.Module;
import com.rometools.rome.feed.module.impl.ModuleUtils;
import com.rometools.rome.feed.synd.SyndPerson;
import com.rometools.utils.Alternatives;
import com.rometools.utils.Lists;
import com.sun.syndication.feed.impl.ObjectBean;
import com.sun.syndication.feed.module.Extendable;
import com.sun.syndication.feed.module.Module;
import com.sun.syndication.feed.module.impl.ModuleUtils;
import com.sun.syndication.feed.synd.SyndPerson;
/**
* Bean for person elements of Atom feeds.

View file

@ -14,7 +14,7 @@
* limitations under the License.
*
*/
package com.sun.syndication.feed.impl;
package com.rometools.rome.feed.impl;
import java.beans.IntrospectionException;
import java.beans.Introspector;

View file

@ -14,7 +14,7 @@
* limitations under the License.
*
*/
package com.sun.syndication.feed.impl;
package com.rometools.rome.feed.impl;
import java.beans.PropertyDescriptor;
import java.io.Serializable;

View file

@ -1,4 +1,4 @@
package com.sun.syndication.feed.impl;
package com.rometools.rome.feed.impl;
/**
* This class addresses some ClassLoader problems in OSGi environments. If you have ClassLoader

View file

@ -14,7 +14,7 @@
* limitations under the License.
*
*/
package com.sun.syndication.feed.impl;
package com.rometools.rome.feed.impl;
import java.beans.PropertyDescriptor;
import java.lang.reflect.Array;
@ -33,7 +33,7 @@ import java.util.Set;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import com.sun.syndication.feed.CopyFrom;
import com.rometools.rome.feed.CopyFrom;
/**
* @author Alejandro Abdelnur

View file

@ -14,7 +14,7 @@
* limitations under the License.
*
*/
package com.sun.syndication.feed.impl;
package com.rometools.rome.feed.impl;
import java.beans.PropertyDescriptor;
import java.io.Serializable;

View file

@ -14,7 +14,7 @@
* limitations under the License.
*
*/
package com.sun.syndication.feed.impl;
package com.rometools.rome.feed.impl;
import java.io.Serializable;
import java.util.Set;

View file

@ -14,7 +14,7 @@
* limitations under the License.
*
*/
package com.sun.syndication.feed.impl;
package com.rometools.rome.feed.impl;
import java.beans.PropertyDescriptor;
import java.io.Serializable;

View file

@ -14,7 +14,7 @@
* limitations under the License.
*
*/
package com.sun.syndication.feed.module;
package com.rometools.rome.feed.module;
import java.util.Date;
import java.util.List;

View file

@ -14,7 +14,7 @@
* limitations under the License.
*
*/
package com.sun.syndication.feed.module;
package com.rometools.rome.feed.module;
import java.util.Collections;
import java.util.Date;
@ -24,10 +24,10 @@ import java.util.List;
import java.util.Map;
import java.util.Set;
import com.rometools.rome.feed.CopyFrom;
import com.rometools.rome.feed.impl.CopyFromHelper;
import com.rometools.rome.feed.impl.ObjectBean;
import com.rometools.utils.Lists;
import com.sun.syndication.feed.CopyFrom;
import com.sun.syndication.feed.impl.CopyFromHelper;
import com.sun.syndication.feed.impl.ObjectBean;
/**
* Dublin Core ModuleImpl, default implementation.

View file

@ -14,9 +14,9 @@
* limitations under the License.
*
*/
package com.sun.syndication.feed.module;
package com.rometools.rome.feed.module;
import com.sun.syndication.feed.CopyFrom;
import com.rometools.rome.feed.CopyFrom;
/**
* Subject of the Dublin Core ModuleImpl.

View file

@ -14,16 +14,16 @@
* limitations under the License.
*
*/
package com.sun.syndication.feed.module;
package com.rometools.rome.feed.module;
import java.io.Serializable;
import java.util.Collections;
import java.util.HashMap;
import java.util.Map;
import com.sun.syndication.feed.CopyFrom;
import com.sun.syndication.feed.impl.CopyFromHelper;
import com.sun.syndication.feed.impl.ObjectBean;
import com.rometools.rome.feed.CopyFrom;
import com.rometools.rome.feed.impl.CopyFromHelper;
import com.rometools.rome.feed.impl.ObjectBean;
/**
* Subject of the Dublin Core ModuleImpl, default implementation.

View file

@ -15,7 +15,7 @@
*
*/
package com.sun.syndication.feed.module;
package com.rometools.rome.feed.module;
import java.util.List;

View file

@ -14,11 +14,11 @@
* limitations under the License.
*
*/
package com.sun.syndication.feed.module;
package com.rometools.rome.feed.module;
import java.io.Serializable;
import com.sun.syndication.feed.CopyFrom;
import com.rometools.rome.feed.CopyFrom;
/**
* Base class for modules describing Metadata of feeds. Examples of such modules are the Dublin Core

View file

@ -14,11 +14,11 @@
* limitations under the License.
*
*/
package com.sun.syndication.feed.module;
package com.rometools.rome.feed.module;
import java.io.Serializable;
import com.sun.syndication.feed.impl.ObjectBean;
import com.rometools.rome.feed.impl.ObjectBean;
/**
* Base class for modules describing Metadata of feeds, default implementations. Examples of such

View file

@ -14,7 +14,7 @@
* limitations under the License.
*
*/
package com.sun.syndication.feed.module;
package com.rometools.rome.feed.module;
import java.util.Date;

View file

@ -14,7 +14,7 @@
* limitations under the License.
*
*/
package com.sun.syndication.feed.module;
package com.rometools.rome.feed.module;
import java.util.Collections;
import java.util.Date;
@ -23,9 +23,9 @@ import java.util.HashSet;
import java.util.Map;
import java.util.Set;
import com.rometools.rome.feed.CopyFrom;
import com.rometools.rome.feed.impl.CopyFromHelper;
import com.rometools.utils.Dates;
import com.sun.syndication.feed.CopyFrom;
import com.sun.syndication.feed.impl.CopyFromHelper;
/**
* Syndication ModuleImpl, default implementation.

View file

@ -14,7 +14,7 @@
* limitations under the License.
*
*/
package com.sun.syndication.feed.module.impl;
package com.rometools.rome.feed.module.impl;
import java.util.ArrayList;
import java.util.List;
@ -22,7 +22,7 @@ import java.util.List;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import com.sun.syndication.feed.module.Module;
import com.rometools.rome.feed.module.Module;
/**
*/

View file

@ -15,11 +15,11 @@
* limitations under the License.
*
*/
package com.sun.syndication.feed.rss;
package com.rometools.rome.feed.rss;
import java.io.Serializable;
import com.sun.syndication.feed.impl.ObjectBean;
import com.rometools.rome.feed.impl.ObjectBean;
/**
* Bean for categories of RSS feeds.

View file

@ -15,7 +15,7 @@
* limitations under the License.
*
*/
package com.sun.syndication.feed.rss;
package com.rometools.rome.feed.rss;
import java.util.Collections;
import java.util.Date;
@ -23,11 +23,11 @@ import java.util.HashSet;
import java.util.List;
import java.util.Set;
import com.rometools.rome.feed.WireFeed;
import com.rometools.rome.feed.module.Module;
import com.rometools.rome.feed.module.impl.ModuleUtils;
import com.rometools.utils.Dates;
import com.rometools.utils.Lists;
import com.sun.syndication.feed.WireFeed;
import com.sun.syndication.feed.module.Module;
import com.sun.syndication.feed.module.impl.ModuleUtils;
/**
* Bean for RSS feeds.

View file

@ -15,11 +15,11 @@
* limitations under the License.
*
*/
package com.sun.syndication.feed.rss;
package com.rometools.rome.feed.rss;
import java.io.Serializable;
import com.sun.syndication.feed.impl.ObjectBean;
import com.rometools.rome.feed.impl.ObjectBean;
/**
* Bean for clouds of RSS feeds.

View file

@ -15,11 +15,11 @@
* limitations under the License.
*
*/
package com.sun.syndication.feed.rss;
package com.rometools.rome.feed.rss;
import java.io.Serializable;
import com.sun.syndication.feed.impl.ObjectBean;
import com.rometools.rome.feed.impl.ObjectBean;
/**
* Bean for item descriptions of RSS feeds.

View file

@ -15,11 +15,11 @@
* limitations under the License.
*
*/
package com.sun.syndication.feed.rss;
package com.rometools.rome.feed.rss;
import java.io.Serializable;
import com.sun.syndication.feed.impl.ObjectBean;
import com.rometools.rome.feed.impl.ObjectBean;
/**
* Bean for item descriptions of RSS feeds.

View file

@ -15,11 +15,11 @@
* limitations under the License.
*
*/
package com.sun.syndication.feed.rss;
package com.rometools.rome.feed.rss;
import java.io.Serializable;
import com.sun.syndication.feed.impl.ObjectBean;
import com.rometools.rome.feed.impl.ObjectBean;
/**
* Bean for item enclosures of RSS feeds.

View file

@ -15,11 +15,11 @@
* limitations under the License.
*
*/
package com.sun.syndication.feed.rss;
package com.rometools.rome.feed.rss;
import java.io.Serializable;
import com.sun.syndication.feed.impl.ObjectBean;
import com.rometools.rome.feed.impl.ObjectBean;
/**
* Bean for item GUIDs of RSS feeds.

View file

@ -14,11 +14,11 @@
* limitations under the License.
*
*/
package com.sun.syndication.feed.rss;
package com.rometools.rome.feed.rss;
import java.io.Serializable;
import com.sun.syndication.feed.impl.ObjectBean;
import com.rometools.rome.feed.impl.ObjectBean;
/**
* Bean for images of RSS feeds.

View file

@ -15,7 +15,7 @@
* limitations under the License.
*
*/
package com.sun.syndication.feed.rss;
package com.rometools.rome.feed.rss;
import java.io.Serializable;
import java.util.Date;
@ -23,12 +23,12 @@ import java.util.List;
import org.jdom2.Element;
import com.rometools.rome.feed.impl.ObjectBean;
import com.rometools.rome.feed.module.Extendable;
import com.rometools.rome.feed.module.Module;
import com.rometools.rome.feed.module.impl.ModuleUtils;
import com.rometools.utils.Dates;
import com.rometools.utils.Lists;
import com.sun.syndication.feed.impl.ObjectBean;
import com.sun.syndication.feed.module.Extendable;
import com.sun.syndication.feed.module.Module;
import com.sun.syndication.feed.module.impl.ModuleUtils;
/**
* Bean for items of RSS feeds.

View file

@ -15,11 +15,11 @@
* limitations under the License.
*
*/
package com.sun.syndication.feed.rss;
package com.rometools.rome.feed.rss;
import java.io.Serializable;
import com.sun.syndication.feed.impl.ObjectBean;
import com.rometools.rome.feed.impl.ObjectBean;
/**
* Bean for item sources of RSS feeds.

View file

@ -15,11 +15,11 @@
* limitations under the License.
*
*/
package com.sun.syndication.feed.rss;
package com.rometools.rome.feed.rss;
import java.io.Serializable;
import com.sun.syndication.feed.impl.ObjectBean;
import com.rometools.rome.feed.impl.ObjectBean;
/**
* Bean for text input of RSS feeds.

View file

@ -14,9 +14,9 @@
* limitations under the License.
*
*/
package com.sun.syndication.feed.synd;
package com.rometools.rome.feed.synd;
import com.sun.syndication.feed.WireFeed;
import com.rometools.rome.feed.WireFeed;
/**
* Interface that defines the functionality to convert a SyndFeedImpl to a real feed (RSS or Atom)

View file

@ -15,9 +15,9 @@
* limitations under the License.
*
*/
package com.sun.syndication.feed.synd;
package com.rometools.rome.feed.synd;
import com.sun.syndication.feed.CopyFrom;
import com.rometools.rome.feed.CopyFrom;
/**
* Bean interface for categories of SyndFeedImpl feeds and entries.

View file

@ -15,18 +15,18 @@
* limitations under the License.
*
*/
package com.sun.syndication.feed.synd;
package com.rometools.rome.feed.synd;
import java.io.Serializable;
import java.util.Collections;
import java.util.HashMap;
import java.util.Map;
import com.sun.syndication.feed.CopyFrom;
import com.sun.syndication.feed.impl.CopyFromHelper;
import com.sun.syndication.feed.impl.ObjectBean;
import com.sun.syndication.feed.module.DCSubject;
import com.sun.syndication.feed.module.DCSubjectImpl;
import com.rometools.rome.feed.CopyFrom;
import com.rometools.rome.feed.impl.CopyFromHelper;
import com.rometools.rome.feed.impl.ObjectBean;
import com.rometools.rome.feed.module.DCSubject;
import com.rometools.rome.feed.module.DCSubjectImpl;
/**
* Bean for categories of SyndFeedImpl feeds and entries.

View file

@ -1,10 +1,10 @@
package com.sun.syndication.feed.synd;
package com.rometools.rome.feed.synd;
import java.util.AbstractList;
import java.util.ArrayList;
import java.util.List;
import com.sun.syndication.feed.module.DCSubject;
import com.rometools.rome.feed.module.DCSubject;
/**
* List implementation for SyndCategoryImpl elements. To be directly used by the SyndFeedImpl and

View file

@ -14,9 +14,9 @@
* limitations under the License.
*
*/
package com.sun.syndication.feed.synd;
package com.rometools.rome.feed.synd;
import com.sun.syndication.feed.CopyFrom;
import com.rometools.rome.feed.CopyFrom;
/**
* Bean interface for content of SyndFeedImpl entries.

View file

@ -14,16 +14,16 @@
* limitations under the License.
*
*/
package com.sun.syndication.feed.synd;
package com.rometools.rome.feed.synd;
import java.io.Serializable;
import java.util.Collections;
import java.util.HashMap;
import java.util.Map;
import com.sun.syndication.feed.CopyFrom;
import com.sun.syndication.feed.impl.CopyFromHelper;
import com.sun.syndication.feed.impl.ObjectBean;
import com.rometools.rome.feed.CopyFrom;
import com.rometools.rome.feed.impl.CopyFromHelper;
import com.rometools.rome.feed.impl.ObjectBean;
/**
* Bean for content of SyndFeedImpl entries.

View file

@ -1,6 +1,6 @@
package com.sun.syndication.feed.synd;
package com.rometools.rome.feed.synd;
import com.sun.syndication.feed.CopyFrom;
import com.rometools.rome.feed.CopyFrom;
/**
* @author Alejandro Abdelnur

View file

@ -1,13 +1,13 @@
package com.sun.syndication.feed.synd;
package com.rometools.rome.feed.synd;
import java.io.Serializable;
import java.util.Collections;
import java.util.HashMap;
import java.util.Map;
import com.sun.syndication.feed.CopyFrom;
import com.sun.syndication.feed.impl.CopyFromHelper;
import com.sun.syndication.feed.impl.ObjectBean;
import com.rometools.rome.feed.CopyFrom;
import com.rometools.rome.feed.impl.CopyFromHelper;
import com.rometools.rome.feed.impl.ObjectBean;
/**
* @author Alejandro Abdelnur

View file

@ -14,16 +14,16 @@
* limitations under the License.
*
*/
package com.sun.syndication.feed.synd;
package com.rometools.rome.feed.synd;
import java.util.Date;
import java.util.List;
import org.jdom2.Element;
import com.sun.syndication.feed.CopyFrom;
import com.sun.syndication.feed.module.Extendable;
import com.sun.syndication.feed.module.Module;
import com.rometools.rome.feed.CopyFrom;
import com.rometools.rome.feed.module.Extendable;
import com.rometools.rome.feed.module.Module;
/**
* Bean interface for entries of SyndFeedImpl feeds.
@ -347,8 +347,8 @@ public interface SyndEntry extends Cloneable, CopyFrom, Extendable {
/**
* Return the original item this SyndEntry is generated from. The type of the object returned
* depends on the original type of the feed. Atom 0.3/1.0 will return
* com.sun.syndication.feed.atom.Entry, while RSS will return
* com.sun.syndication.feed.rss.Item.java. If this entry was not generated from a WireFeed, or
* com.rometools.rome.feed.atom.Entry, while RSS will return
* com.rometools.rome.feed.rss.Item.java. If this entry was not generated from a WireFeed, or
* the SyndFeed was not set to preserve the WireFeed then it will return null
*
* @return the WireFeed Item or Entry this Entry is generated from, or null

View file

@ -14,7 +14,7 @@
* limitations under the License.
*
*/
package com.sun.syndication.feed.synd;
package com.rometools.rome.feed.synd;
import java.io.Serializable;
import java.util.ArrayList;
@ -28,19 +28,19 @@ import java.util.Set;
import org.jdom2.Element;
import com.rometools.rome.feed.CopyFrom;
import com.rometools.rome.feed.impl.CopyFromHelper;
import com.rometools.rome.feed.impl.ObjectBean;
import com.rometools.rome.feed.module.DCModule;
import com.rometools.rome.feed.module.DCModuleImpl;
import com.rometools.rome.feed.module.Module;
import com.rometools.rome.feed.module.SyModule;
import com.rometools.rome.feed.module.SyModuleImpl;
import com.rometools.rome.feed.module.impl.ModuleUtils;
import com.rometools.rome.feed.synd.impl.URINormalizer;
import com.rometools.utils.Dates;
import com.rometools.utils.Lists;
import com.rometools.utils.Strings;
import com.sun.syndication.feed.CopyFrom;
import com.sun.syndication.feed.impl.CopyFromHelper;
import com.sun.syndication.feed.impl.ObjectBean;
import com.sun.syndication.feed.module.DCModule;
import com.sun.syndication.feed.module.DCModuleImpl;
import com.sun.syndication.feed.module.Module;
import com.sun.syndication.feed.module.SyModule;
import com.sun.syndication.feed.module.SyModuleImpl;
import com.sun.syndication.feed.module.impl.ModuleUtils;
import com.sun.syndication.feed.synd.impl.URINormalizer;
/**
* Bean for entries of SyndFeedImpl feeds.
@ -72,7 +72,7 @@ public class SyndEntryImpl implements Serializable, SyndEntry {
private SyndFeed source;
private List<Element> foreignMarkup;
// com.sun.syndication.feed.atom.Entry or com.sun.syndication.feed.rss.Item
// com.rometools.rome.feed.atom.Entry or com.rometools.rome.feed.rss.Item
private Object wireEntry;
// ISSUE: some converters assume this is never null

View file

@ -14,17 +14,17 @@
* limitations under the License.
*
*/
package com.sun.syndication.feed.synd;
package com.rometools.rome.feed.synd;
import java.util.Date;
import java.util.List;
import org.jdom2.Element;
import com.sun.syndication.feed.CopyFrom;
import com.sun.syndication.feed.WireFeed;
import com.sun.syndication.feed.module.Extendable;
import com.sun.syndication.feed.module.Module;
import com.rometools.rome.feed.CopyFrom;
import com.rometools.rome.feed.WireFeed;
import com.rometools.rome.feed.module.Extendable;
import com.rometools.rome.feed.module.Module;
/**
* Bean interface for all types of feeds.

View file

@ -14,7 +14,7 @@
* limitations under the License.
*
*/
package com.sun.syndication.feed.synd;
package com.rometools.rome.feed.synd;
import java.io.Serializable;
import java.util.Collections;
@ -27,19 +27,19 @@ import java.util.Set;
import org.jdom2.Element;
import com.rometools.rome.feed.CopyFrom;
import com.rometools.rome.feed.WireFeed;
import com.rometools.rome.feed.impl.CopyFromHelper;
import com.rometools.rome.feed.impl.ObjectBean;
import com.rometools.rome.feed.module.DCModule;
import com.rometools.rome.feed.module.DCModuleImpl;
import com.rometools.rome.feed.module.Module;
import com.rometools.rome.feed.module.SyModule;
import com.rometools.rome.feed.module.SyModuleImpl;
import com.rometools.rome.feed.module.impl.ModuleUtils;
import com.rometools.rome.feed.synd.impl.Converters;
import com.rometools.rome.feed.synd.impl.URINormalizer;
import com.rometools.utils.Lists;
import com.sun.syndication.feed.CopyFrom;
import com.sun.syndication.feed.WireFeed;
import com.sun.syndication.feed.impl.CopyFromHelper;
import com.sun.syndication.feed.impl.ObjectBean;
import com.sun.syndication.feed.module.DCModule;
import com.sun.syndication.feed.module.DCModuleImpl;
import com.sun.syndication.feed.module.Module;
import com.sun.syndication.feed.module.SyModule;
import com.sun.syndication.feed.module.SyModuleImpl;
import com.sun.syndication.feed.module.impl.ModuleUtils;
import com.sun.syndication.feed.synd.impl.Converters;
import com.sun.syndication.feed.synd.impl.URINormalizer;
/**
* Bean for all types of feeds.

View file

@ -15,9 +15,9 @@
* limitations under the License.
*
*/
package com.sun.syndication.feed.synd;
package com.rometools.rome.feed.synd;
import com.sun.syndication.feed.CopyFrom;
import com.rometools.rome.feed.CopyFrom;
/**
* Bean interface for images of SyndFeedImpl feeds.

View file

@ -14,16 +14,16 @@
* limitations under the License.
*
*/
package com.sun.syndication.feed.synd;
package com.rometools.rome.feed.synd;
import java.io.Serializable;
import java.util.Collections;
import java.util.HashMap;
import java.util.Map;
import com.sun.syndication.feed.CopyFrom;
import com.sun.syndication.feed.impl.CopyFromHelper;
import com.sun.syndication.feed.impl.ObjectBean;
import com.rometools.rome.feed.CopyFrom;
import com.rometools.rome.feed.impl.CopyFromHelper;
import com.rometools.rome.feed.impl.ObjectBean;
/**
* Bean for images of SyndFeedImpl feeds.

View file

@ -15,7 +15,7 @@
* limitations under the License.
*
*/
package com.sun.syndication.feed.synd;
package com.rometools.rome.feed.synd;
/**
* Represents a link or enclosure associated with entry.

View file

@ -15,11 +15,11 @@
* limitations under the License.
*
*/
package com.sun.syndication.feed.synd;
package com.rometools.rome.feed.synd;
import java.io.Serializable;
import com.sun.syndication.feed.impl.ObjectBean;
import com.rometools.rome.feed.impl.ObjectBean;
/**
* Represents a link or an enclosure.

View file

@ -15,9 +15,9 @@
* limitations under the License.
*
*/
package com.sun.syndication.feed.synd;
package com.rometools.rome.feed.synd;
import com.sun.syndication.feed.module.Extendable;
import com.rometools.rome.feed.module.Extendable;
/**
* Bean interface for authors and contributors of SyndFeedImpl feeds and entries.

View file

@ -15,15 +15,15 @@
* limitations under the License.
*
*/
package com.sun.syndication.feed.synd;
package com.rometools.rome.feed.synd;
import java.io.Serializable;
import java.util.List;
import com.rometools.rome.feed.impl.ObjectBean;
import com.rometools.rome.feed.module.Module;
import com.rometools.rome.feed.module.impl.ModuleUtils;
import com.rometools.utils.Lists;
import com.sun.syndication.feed.impl.ObjectBean;
import com.sun.syndication.feed.module.Module;
import com.sun.syndication.feed.module.impl.ModuleUtils;
/**
* Bean for authors and contributors of SyndFeedImpl feeds and entries.

View file

@ -15,7 +15,7 @@
* limitations under the License.
*
*/
package com.sun.syndication.feed.synd.impl;
package com.rometools.rome.feed.synd.impl;
import java.util.ArrayList;
import java.util.Date;
@ -23,30 +23,30 @@ import java.util.List;
import org.jdom2.Element;
import com.rometools.rome.feed.WireFeed;
import com.rometools.rome.feed.atom.Content;
import com.rometools.rome.feed.atom.Entry;
import com.rometools.rome.feed.atom.Feed;
import com.rometools.rome.feed.atom.Link;
import com.rometools.rome.feed.atom.Person;
import com.rometools.rome.feed.module.impl.ModuleUtils;
import com.rometools.rome.feed.synd.Converter;
import com.rometools.rome.feed.synd.SyndContent;
import com.rometools.rome.feed.synd.SyndContentImpl;
import com.rometools.rome.feed.synd.SyndEnclosure;
import com.rometools.rome.feed.synd.SyndEnclosureImpl;
import com.rometools.rome.feed.synd.SyndEntry;
import com.rometools.rome.feed.synd.SyndEntryImpl;
import com.rometools.rome.feed.synd.SyndFeed;
import com.rometools.rome.feed.synd.SyndImage;
import com.rometools.rome.feed.synd.SyndImageImpl;
import com.rometools.rome.feed.synd.SyndLink;
import com.rometools.rome.feed.synd.SyndLinkImpl;
import com.rometools.rome.feed.synd.SyndPerson;
import com.rometools.rome.feed.synd.SyndPersonImpl;
import com.rometools.utils.Alternatives;
import com.rometools.utils.Lists;
import com.rometools.utils.Strings;
import com.sun.syndication.feed.WireFeed;
import com.sun.syndication.feed.atom.Content;
import com.sun.syndication.feed.atom.Entry;
import com.sun.syndication.feed.atom.Feed;
import com.sun.syndication.feed.atom.Link;
import com.sun.syndication.feed.atom.Person;
import com.sun.syndication.feed.module.impl.ModuleUtils;
import com.sun.syndication.feed.synd.Converter;
import com.sun.syndication.feed.synd.SyndContent;
import com.sun.syndication.feed.synd.SyndContentImpl;
import com.sun.syndication.feed.synd.SyndEnclosure;
import com.sun.syndication.feed.synd.SyndEnclosureImpl;
import com.sun.syndication.feed.synd.SyndEntry;
import com.sun.syndication.feed.synd.SyndEntryImpl;
import com.sun.syndication.feed.synd.SyndFeed;
import com.sun.syndication.feed.synd.SyndImage;
import com.sun.syndication.feed.synd.SyndImageImpl;
import com.sun.syndication.feed.synd.SyndLink;
import com.sun.syndication.feed.synd.SyndLinkImpl;
import com.sun.syndication.feed.synd.SyndPerson;
import com.sun.syndication.feed.synd.SyndPersonImpl;
/**
*/

View file

@ -14,7 +14,7 @@
* limitations under the License.
*
*/
package com.sun.syndication.feed.synd.impl;
package com.rometools.rome.feed.synd.impl;
import java.util.ArrayList;
import java.util.Date;
@ -22,32 +22,32 @@ import java.util.List;
import org.jdom2.Element;
import com.rometools.rome.feed.WireFeed;
import com.rometools.rome.feed.atom.Category;
import com.rometools.rome.feed.atom.Content;
import com.rometools.rome.feed.atom.Entry;
import com.rometools.rome.feed.atom.Feed;
import com.rometools.rome.feed.atom.Link;
import com.rometools.rome.feed.atom.Person;
import com.rometools.rome.feed.module.impl.ModuleUtils;
import com.rometools.rome.feed.synd.Converter;
import com.rometools.rome.feed.synd.SyndCategory;
import com.rometools.rome.feed.synd.SyndCategoryImpl;
import com.rometools.rome.feed.synd.SyndContent;
import com.rometools.rome.feed.synd.SyndContentImpl;
import com.rometools.rome.feed.synd.SyndEnclosure;
import com.rometools.rome.feed.synd.SyndEnclosureImpl;
import com.rometools.rome.feed.synd.SyndEntry;
import com.rometools.rome.feed.synd.SyndEntryImpl;
import com.rometools.rome.feed.synd.SyndFeed;
import com.rometools.rome.feed.synd.SyndFeedImpl;
import com.rometools.rome.feed.synd.SyndImage;
import com.rometools.rome.feed.synd.SyndImageImpl;
import com.rometools.rome.feed.synd.SyndLink;
import com.rometools.rome.feed.synd.SyndLinkImpl;
import com.rometools.rome.feed.synd.SyndPerson;
import com.rometools.utils.Lists;
import com.rometools.utils.Strings;
import com.sun.syndication.feed.WireFeed;
import com.sun.syndication.feed.atom.Category;
import com.sun.syndication.feed.atom.Content;
import com.sun.syndication.feed.atom.Entry;
import com.sun.syndication.feed.atom.Feed;
import com.sun.syndication.feed.atom.Link;
import com.sun.syndication.feed.atom.Person;
import com.sun.syndication.feed.module.impl.ModuleUtils;
import com.sun.syndication.feed.synd.Converter;
import com.sun.syndication.feed.synd.SyndCategory;
import com.sun.syndication.feed.synd.SyndCategoryImpl;
import com.sun.syndication.feed.synd.SyndContent;
import com.sun.syndication.feed.synd.SyndContentImpl;
import com.sun.syndication.feed.synd.SyndEnclosure;
import com.sun.syndication.feed.synd.SyndEnclosureImpl;
import com.sun.syndication.feed.synd.SyndEntry;
import com.sun.syndication.feed.synd.SyndEntryImpl;
import com.sun.syndication.feed.synd.SyndFeed;
import com.sun.syndication.feed.synd.SyndFeedImpl;
import com.sun.syndication.feed.synd.SyndImage;
import com.sun.syndication.feed.synd.SyndImageImpl;
import com.sun.syndication.feed.synd.SyndLink;
import com.sun.syndication.feed.synd.SyndLinkImpl;
import com.sun.syndication.feed.synd.SyndPerson;
/**
*/

View file

@ -14,27 +14,27 @@
* limitations under the License.
*
*/
package com.sun.syndication.feed.synd.impl;
package com.rometools.rome.feed.synd.impl;
import java.util.ArrayList;
import java.util.List;
import org.jdom2.Element;
import com.sun.syndication.feed.WireFeed;
import com.sun.syndication.feed.module.impl.ModuleUtils;
import com.sun.syndication.feed.rss.Channel;
import com.sun.syndication.feed.rss.Image;
import com.sun.syndication.feed.rss.Item;
import com.sun.syndication.feed.rss.Source;
import com.sun.syndication.feed.synd.Converter;
import com.sun.syndication.feed.synd.SyndEntry;
import com.sun.syndication.feed.synd.SyndEntryImpl;
import com.sun.syndication.feed.synd.SyndFeed;
import com.sun.syndication.feed.synd.SyndFeedImpl;
import com.sun.syndication.feed.synd.SyndImage;
import com.sun.syndication.feed.synd.SyndImageImpl;
import com.sun.syndication.feed.synd.SyndLink;
import com.rometools.rome.feed.WireFeed;
import com.rometools.rome.feed.module.impl.ModuleUtils;
import com.rometools.rome.feed.rss.Channel;
import com.rometools.rome.feed.rss.Image;
import com.rometools.rome.feed.rss.Item;
import com.rometools.rome.feed.rss.Source;
import com.rometools.rome.feed.synd.Converter;
import com.rometools.rome.feed.synd.SyndEntry;
import com.rometools.rome.feed.synd.SyndEntryImpl;
import com.rometools.rome.feed.synd.SyndFeed;
import com.rometools.rome.feed.synd.SyndFeedImpl;
import com.rometools.rome.feed.synd.SyndImage;
import com.rometools.rome.feed.synd.SyndImageImpl;
import com.rometools.rome.feed.synd.SyndLink;
/**
*/

View file

@ -14,7 +14,7 @@
* limitations under the License.
*
*/
package com.sun.syndication.feed.synd.impl;
package com.rometools.rome.feed.synd.impl;
/**
*/

View file

@ -14,7 +14,7 @@
* limitations under the License.
*
*/
package com.sun.syndication.feed.synd.impl;
package com.rometools.rome.feed.synd.impl;
import java.util.ArrayList;
import java.util.Date;
@ -22,20 +22,20 @@ import java.util.LinkedHashSet;
import java.util.List;
import java.util.Set;
import com.rometools.rome.feed.WireFeed;
import com.rometools.rome.feed.module.DCModule;
import com.rometools.rome.feed.rss.Channel;
import com.rometools.rome.feed.rss.Content;
import com.rometools.rome.feed.rss.Description;
import com.rometools.rome.feed.rss.Image;
import com.rometools.rome.feed.rss.Item;
import com.rometools.rome.feed.synd.SyndContent;
import com.rometools.rome.feed.synd.SyndContentImpl;
import com.rometools.rome.feed.synd.SyndEntry;
import com.rometools.rome.feed.synd.SyndFeed;
import com.rometools.rome.feed.synd.SyndImage;
import com.rometools.rome.feed.synd.SyndPerson;
import com.rometools.utils.Lists;
import com.sun.syndication.feed.WireFeed;
import com.sun.syndication.feed.module.DCModule;
import com.sun.syndication.feed.rss.Channel;
import com.sun.syndication.feed.rss.Content;
import com.sun.syndication.feed.rss.Description;
import com.sun.syndication.feed.rss.Image;
import com.sun.syndication.feed.rss.Item;
import com.sun.syndication.feed.synd.SyndContent;
import com.sun.syndication.feed.synd.SyndContentImpl;
import com.sun.syndication.feed.synd.SyndEntry;
import com.sun.syndication.feed.synd.SyndFeed;
import com.sun.syndication.feed.synd.SyndImage;
import com.sun.syndication.feed.synd.SyndPerson;
public class ConverterForRSS091Userland extends ConverterForRSS090 {

View file

@ -14,21 +14,21 @@
* limitations under the License.
*
*/
package com.sun.syndication.feed.synd.impl;
package com.rometools.rome.feed.synd.impl;
import java.util.ArrayList;
import java.util.LinkedHashSet;
import java.util.List;
import java.util.Set;
import com.sun.syndication.feed.rss.Category;
import com.sun.syndication.feed.rss.Enclosure;
import com.sun.syndication.feed.rss.Item;
import com.sun.syndication.feed.synd.SyndCategory;
import com.sun.syndication.feed.synd.SyndCategoryImpl;
import com.sun.syndication.feed.synd.SyndEnclosure;
import com.sun.syndication.feed.synd.SyndEnclosureImpl;
import com.sun.syndication.feed.synd.SyndEntry;
import com.rometools.rome.feed.rss.Category;
import com.rometools.rome.feed.rss.Enclosure;
import com.rometools.rome.feed.rss.Item;
import com.rometools.rome.feed.synd.SyndCategory;
import com.rometools.rome.feed.synd.SyndCategoryImpl;
import com.rometools.rome.feed.synd.SyndEnclosure;
import com.rometools.rome.feed.synd.SyndEnclosureImpl;
import com.rometools.rome.feed.synd.SyndEntry;
/**
*/

View file

@ -14,12 +14,12 @@
* limitations under the License.
*
*/
package com.sun.syndication.feed.synd.impl;
package com.rometools.rome.feed.synd.impl;
import java.util.Date;
import com.sun.syndication.feed.rss.Item;
import com.sun.syndication.feed.synd.SyndEntry;
import com.rometools.rome.feed.rss.Item;
import com.rometools.rome.feed.synd.SyndEntry;
public class ConverterForRSS093 extends ConverterForRSS092 {

View file

@ -14,26 +14,26 @@
* limitations under the License.
*
*/
package com.sun.syndication.feed.synd.impl;
package com.rometools.rome.feed.synd.impl;
import java.util.ArrayList;
import java.util.LinkedHashSet;
import java.util.List;
import java.util.Set;
import com.rometools.rome.feed.WireFeed;
import com.rometools.rome.feed.module.DCModule;
import com.rometools.rome.feed.rss.Category;
import com.rometools.rome.feed.rss.Channel;
import com.rometools.rome.feed.rss.Guid;
import com.rometools.rome.feed.rss.Item;
import com.rometools.rome.feed.synd.SyndCategory;
import com.rometools.rome.feed.synd.SyndEntry;
import com.rometools.rome.feed.synd.SyndFeed;
import com.rometools.rome.feed.synd.SyndLink;
import com.rometools.rome.feed.synd.SyndLinkImpl;
import com.rometools.rome.feed.synd.SyndPerson;
import com.rometools.utils.Lists;
import com.sun.syndication.feed.WireFeed;
import com.sun.syndication.feed.module.DCModule;
import com.sun.syndication.feed.rss.Category;
import com.sun.syndication.feed.rss.Channel;
import com.sun.syndication.feed.rss.Guid;
import com.sun.syndication.feed.rss.Item;
import com.sun.syndication.feed.synd.SyndCategory;
import com.sun.syndication.feed.synd.SyndEntry;
import com.sun.syndication.feed.synd.SyndFeed;
import com.sun.syndication.feed.synd.SyndLink;
import com.sun.syndication.feed.synd.SyndLinkImpl;
import com.sun.syndication.feed.synd.SyndPerson;
public class ConverterForRSS094 extends ConverterForRSS093 {

View file

@ -14,21 +14,21 @@
* limitations under the License.
*
*/
package com.sun.syndication.feed.synd.impl;
package com.rometools.rome.feed.synd.impl;
import java.util.ArrayList;
import java.util.List;
import com.rometools.rome.feed.WireFeed;
import com.rometools.rome.feed.rss.Channel;
import com.rometools.rome.feed.rss.Content;
import com.rometools.rome.feed.rss.Description;
import com.rometools.rome.feed.rss.Item;
import com.rometools.rome.feed.synd.SyndContent;
import com.rometools.rome.feed.synd.SyndContentImpl;
import com.rometools.rome.feed.synd.SyndEntry;
import com.rometools.rome.feed.synd.SyndFeed;
import com.rometools.utils.Lists;
import com.sun.syndication.feed.WireFeed;
import com.sun.syndication.feed.rss.Channel;
import com.sun.syndication.feed.rss.Content;
import com.sun.syndication.feed.rss.Description;
import com.sun.syndication.feed.rss.Item;
import com.sun.syndication.feed.synd.SyndContent;
import com.sun.syndication.feed.synd.SyndContentImpl;
import com.sun.syndication.feed.synd.SyndEntry;
import com.sun.syndication.feed.synd.SyndFeed;
public class ConverterForRSS10 extends ConverterForRSS090 {

View file

@ -14,7 +14,7 @@
* limitations under the License.
*
*/
package com.sun.syndication.feed.synd.impl;
package com.rometools.rome.feed.synd.impl;
public class ConverterForRSS20 extends ConverterForRSS094 {

View file

@ -14,12 +14,12 @@
* limitations under the License.
*
*/
package com.sun.syndication.feed.synd.impl;
package com.rometools.rome.feed.synd.impl;
import java.util.List;
import com.sun.syndication.feed.synd.Converter;
import com.sun.syndication.io.impl.PluginManager;
import com.rometools.rome.feed.synd.Converter;
import com.rometools.rome.io.impl.PluginManager;
/**
* Created by IntelliJ IDEA. User: tucu Date: May 21, 2004 Time: 5:26:04 PM To change this template

View file

@ -1,4 +1,4 @@
package com.sun.syndication.feed.synd.impl;
package com.rometools.rome.feed.synd.impl;
/**
* Utility class for normalizing an URI as specified in RFC 2396bis.

View file

@ -1,4 +1,4 @@
package com.sun.syndication.io;
package com.rometools.rome.io;
/**
* Adds the ability to give a direct wire feed generator reference to plugin modules that need to

View file

@ -1,4 +1,4 @@
package com.sun.syndication.io;
package com.rometools.rome.io;
/**
* Adds the ability to give a direct wire feed reference to plugin modules that need to call back to

View file

@ -14,7 +14,7 @@
* limitations under the License.
*
*/
package com.sun.syndication.io;
package com.rometools.rome.io;
/**
* Exception thrown by WireFeedInput, WireFeedOutput, WireFeedParser and WireFeedGenerator instances

View file

@ -14,14 +14,14 @@
* limitations under the License.
*
*/
package com.sun.syndication.io;
package com.rometools.rome.io;
import java.util.Set;
import org.jdom2.Element;
import org.jdom2.Namespace;
import com.sun.syndication.feed.module.Module;
import com.rometools.rome.feed.module.Module;
/**
* Injects module metadata into a XML node (JDOM element).

View file

@ -14,13 +14,13 @@
* limitations under the License.
*
*/
package com.sun.syndication.io;
package com.rometools.rome.io;
import java.util.Locale;
import org.jdom2.Element;
import com.sun.syndication.feed.module.Module;
import com.rometools.rome.feed.module.Module;
/**
* Parses module metadata from a XML node (JDOM element).

View file

@ -14,7 +14,7 @@
* limitations under the License.
*
*/
package com.sun.syndication.io;
package com.rometools.rome.io;
import org.jdom2.input.JDOMParseException;

View file

@ -1,4 +1,4 @@
package com.sun.syndication.io;
package com.rometools.rome.io;
import org.jdom2.JDOMException;
import org.jdom2.input.sax.XMLReaderJDOMFactory;

View file

@ -14,7 +14,7 @@
* limitations under the License.
*
*/
package com.sun.syndication.io;
package com.rometools.rome.io;
import java.io.File;
import java.io.FileNotFoundException;
@ -25,8 +25,8 @@ import java.util.Locale;
import org.jdom2.Document;
import org.xml.sax.InputSource;
import com.sun.syndication.feed.synd.SyndFeed;
import com.sun.syndication.feed.synd.SyndFeedImpl;
import com.rometools.rome.feed.synd.SyndFeed;
import com.rometools.rome.feed.synd.SyndFeedImpl;
/**
* Parses an XML document (File, InputStream, Reader, W3C SAX InputSource, W3C DOM Document or JDom

View file

@ -14,7 +14,7 @@
* limitations under the License.
*
*/
package com.sun.syndication.io;
package com.rometools.rome.io;
import java.io.File;
import java.io.IOException;
@ -22,7 +22,7 @@ import java.io.Writer;
import org.jdom2.Document;
import com.sun.syndication.feed.synd.SyndFeed;
import com.rometools.rome.feed.synd.SyndFeed;
/**
* Generates an XML document (String, File, OutputStream, Writer, W3C DOM document or JDOM document)

View file

@ -14,11 +14,11 @@
* limitations under the License.
*
*/
package com.sun.syndication.io;
package com.rometools.rome.io;
import org.jdom2.Document;
import com.sun.syndication.feed.WireFeed;
import com.rometools.rome.feed.WireFeed;
/**
* Generates an XML document (JDOM) out of a feed for a specific real feed type.

View file

@ -14,7 +14,7 @@
* limitations under the License.
*
*/
package com.sun.syndication.io;
package com.rometools.rome.io;
import java.io.ByteArrayInputStream;
import java.io.File;
@ -38,10 +38,10 @@ import org.xml.sax.SAXNotRecognizedException;
import org.xml.sax.SAXNotSupportedException;
import org.xml.sax.XMLReader;
import com.sun.syndication.feed.WireFeed;
import com.sun.syndication.feed.impl.ConfigurableClassLoader;
import com.sun.syndication.io.impl.FeedParsers;
import com.sun.syndication.io.impl.XmlFixerReader;
import com.rometools.rome.feed.WireFeed;
import com.rometools.rome.feed.impl.ConfigurableClassLoader;
import com.rometools.rome.io.impl.FeedParsers;
import com.rometools.rome.io.impl.XmlFixerReader;
/**
* Parses an XML document (File, InputStream, Reader, W3C SAX InputSource, W3C DOM Document or JDom

View file

@ -14,7 +14,7 @@
* limitations under the License.
*
*/
package com.sun.syndication.io;
package com.rometools.rome.io;
import java.io.File;
import java.io.FileWriter;
@ -30,9 +30,9 @@ import org.jdom2.output.DOMOutputter;
import org.jdom2.output.Format;
import org.jdom2.output.XMLOutputter;
import com.sun.syndication.feed.WireFeed;
import com.sun.syndication.feed.impl.ConfigurableClassLoader;
import com.sun.syndication.io.impl.FeedGenerators;
import com.rometools.rome.feed.WireFeed;
import com.rometools.rome.feed.impl.ConfigurableClassLoader;
import com.rometools.rome.io.impl.FeedGenerators;
/**
* Generates an XML document (String, File, OutputStream, Writer, W3C DOM document or JDOM document)

View file

@ -14,13 +14,13 @@
* limitations under the License.
*
*/
package com.sun.syndication.io;
package com.rometools.rome.io;
import java.util.Locale;
import org.jdom2.Document;
import com.sun.syndication.feed.WireFeed;
import com.rometools.rome.feed.WireFeed;
/**
* Parses an XML document (JDOM) into a feed bean.

View file

@ -14,7 +14,7 @@
* limitations under the License.
*
*/
package com.sun.syndication.io;
package com.rometools.rome.io;
import java.io.BufferedInputStream;
import java.io.BufferedReader;

View file

@ -1,4 +1,4 @@
package com.sun.syndication.io;
package com.rometools.rome.io;
import java.io.IOException;
import java.io.InputStream;

View file

@ -14,7 +14,7 @@
* limitations under the License.
*
*/
package com.sun.syndication.io.impl;
package com.rometools.rome.io.impl;
import java.io.StringReader;
import java.util.Date;
@ -27,15 +27,15 @@ import org.jdom2.Element;
import org.jdom2.Namespace;
import org.jdom2.input.SAXBuilder;
import com.rometools.rome.feed.WireFeed;
import com.rometools.rome.feed.atom.Content;
import com.rometools.rome.feed.atom.Entry;
import com.rometools.rome.feed.atom.Feed;
import com.rometools.rome.feed.atom.Generator;
import com.rometools.rome.feed.atom.Link;
import com.rometools.rome.feed.synd.SyndPerson;
import com.rometools.rome.io.FeedException;
import com.rometools.utils.Lists;
import com.sun.syndication.feed.WireFeed;
import com.sun.syndication.feed.atom.Content;
import com.sun.syndication.feed.atom.Entry;
import com.sun.syndication.feed.atom.Feed;
import com.sun.syndication.feed.atom.Generator;
import com.sun.syndication.feed.atom.Link;
import com.sun.syndication.feed.synd.SyndPerson;
import com.sun.syndication.io.FeedException;
/**
* Feed Generator for Atom

View file

@ -14,7 +14,7 @@
* limitations under the License.
*
*/
package com.sun.syndication.io.impl;
package com.rometools.rome.io.impl;
import java.util.ArrayList;
import java.util.List;
@ -25,16 +25,16 @@ import org.jdom2.Element;
import org.jdom2.Namespace;
import org.jdom2.output.XMLOutputter;
import com.rometools.rome.feed.WireFeed;
import com.rometools.rome.feed.atom.Content;
import com.rometools.rome.feed.atom.Entry;
import com.rometools.rome.feed.atom.Feed;
import com.rometools.rome.feed.atom.Generator;
import com.rometools.rome.feed.atom.Link;
import com.rometools.rome.feed.atom.Person;
import com.rometools.rome.feed.synd.SyndPerson;
import com.rometools.rome.io.FeedException;
import com.rometools.utils.Lists;
import com.sun.syndication.feed.WireFeed;
import com.sun.syndication.feed.atom.Content;
import com.sun.syndication.feed.atom.Entry;
import com.sun.syndication.feed.atom.Feed;
import com.sun.syndication.feed.atom.Generator;
import com.sun.syndication.feed.atom.Link;
import com.sun.syndication.feed.atom.Person;
import com.sun.syndication.feed.synd.SyndPerson;
import com.sun.syndication.io.FeedException;
public class Atom03Parser extends BaseWireFeedParser {

View file

@ -14,7 +14,7 @@
* limitations under the License.
*
*/
package com.sun.syndication.io.impl;
package com.rometools.rome.io.impl;
import java.io.IOException;
import java.io.StringReader;
@ -31,17 +31,17 @@ import org.jdom2.Namespace;
import org.jdom2.input.SAXBuilder;
import org.jdom2.output.XMLOutputter;
import com.rometools.rome.feed.WireFeed;
import com.rometools.rome.feed.atom.Category;
import com.rometools.rome.feed.atom.Content;
import com.rometools.rome.feed.atom.Entry;
import com.rometools.rome.feed.atom.Feed;
import com.rometools.rome.feed.atom.Generator;
import com.rometools.rome.feed.atom.Link;
import com.rometools.rome.feed.synd.SyndPerson;
import com.rometools.rome.io.FeedException;
import com.rometools.rome.io.WireFeedOutput;
import com.rometools.utils.Lists;
import com.sun.syndication.feed.WireFeed;
import com.sun.syndication.feed.atom.Category;
import com.sun.syndication.feed.atom.Content;
import com.sun.syndication.feed.atom.Entry;
import com.sun.syndication.feed.atom.Feed;
import com.sun.syndication.feed.atom.Generator;
import com.sun.syndication.feed.atom.Link;
import com.sun.syndication.feed.synd.SyndPerson;
import com.sun.syndication.io.FeedException;
import com.sun.syndication.io.WireFeedOutput;
/**
* Feed Generator for Atom

View file

@ -14,7 +14,7 @@
* limitations under the License.
*
*/
package com.sun.syndication.io.impl;
package com.rometools.rome.io.impl;
import java.io.IOException;
import java.io.Reader;
@ -33,19 +33,19 @@ import org.jdom2.Parent;
import org.jdom2.input.SAXBuilder;
import org.jdom2.output.XMLOutputter;
import com.rometools.rome.feed.WireFeed;
import com.rometools.rome.feed.atom.Category;
import com.rometools.rome.feed.atom.Content;
import com.rometools.rome.feed.atom.Entry;
import com.rometools.rome.feed.atom.Feed;
import com.rometools.rome.feed.atom.Generator;
import com.rometools.rome.feed.atom.Link;
import com.rometools.rome.feed.atom.Person;
import com.rometools.rome.feed.synd.SyndPerson;
import com.rometools.rome.io.FeedException;
import com.rometools.rome.io.WireFeedInput;
import com.rometools.rome.io.WireFeedOutput;
import com.rometools.utils.Lists;
import com.sun.syndication.feed.WireFeed;
import com.sun.syndication.feed.atom.Category;
import com.sun.syndication.feed.atom.Content;
import com.sun.syndication.feed.atom.Entry;
import com.sun.syndication.feed.atom.Feed;
import com.sun.syndication.feed.atom.Generator;
import com.sun.syndication.feed.atom.Link;
import com.sun.syndication.feed.atom.Person;
import com.sun.syndication.feed.synd.SyndPerson;
import com.sun.syndication.io.FeedException;
import com.sun.syndication.io.WireFeedInput;
import com.sun.syndication.io.WireFeedOutput;
/**
* Parser for Atom 1.0
@ -134,7 +134,7 @@ public class Atom10Parser extends BaseWireFeedParser {
private Feed parseFeedMetadata(final String baseURI, final Element eFeed, final Locale locale) {
final com.sun.syndication.feed.atom.Feed feed = new com.sun.syndication.feed.atom.Feed(getType());
final com.rometools.rome.feed.atom.Feed feed = new com.rometools.rome.feed.atom.Feed(getType());
final Element title = eFeed.getChild("title", getAtomNamespace());
if (title != null) {

View file

@ -1,4 +1,4 @@
package com.sun.syndication.io.impl;
package com.rometools.rome.io.impl;
/*
* Copyright 2004 Sun Microsystems, Inc.
@ -48,7 +48,7 @@ public class Base64 {
* @param s String to decode.
* @return encoded string.
* @throws java.lang.IllegalArgumentException thrown if the given byte array was not valid
* com.sun.syndication.io.impl.Base64 encoding.
* com.rometools.rome.io.impl.Base64 encoding.
*
*/
public static String decode(String s) throws IllegalArgumentException {
@ -140,13 +140,13 @@ public class Base64 {
}
/**
* Dencodes a com.sun.syndication.io.impl.Base64 byte array.
* Dencodes a com.rometools.rome.io.impl.Base64 byte array.
* <p>
*
* @param eData byte array to decode.
* @return decoded byte array.
* @throws java.lang.IllegalArgumentException thrown if the given byte array was not valid
* com.sun.syndication.io.impl.Base64 encoding.
* com.rometools.rome.io.impl.Base64 encoding.
*
*/
public static byte[] decode(final byte[] eData) {
@ -175,7 +175,7 @@ public class Base64 {
int dIndex = 0;
for (int i = 0; i < eData.length; i += 4) {
if (i + 3 > eData.length) {
throw new IllegalArgumentException("byte array is not a valid com.sun.syndication.io.impl.Base64 encoding");
throw new IllegalArgumentException("byte array is not a valid com.rometools.rome.io.impl.Base64 encoding");
}
final int e1 = CODES[cleanEData[i]];
final int e2 = CODES[cleanEData[i + 1]];

View file

@ -1,4 +1,4 @@
package com.sun.syndication.io.impl;
package com.rometools.rome.io.impl;
import java.util.ArrayList;
import java.util.HashSet;
@ -9,8 +9,8 @@ import org.jdom2.Element;
import org.jdom2.Namespace;
import org.jdom2.Parent;
import com.sun.syndication.feed.module.Module;
import com.sun.syndication.io.WireFeedGenerator;
import com.rometools.rome.feed.module.Module;
import com.rometools.rome.io.WireFeedGenerator;
/**
* @author Alejandro Abdelnur

View file

@ -1,4 +1,4 @@
package com.sun.syndication.io.impl;
package com.rometools.rome.io.impl;
import java.util.ArrayList;
import java.util.List;
@ -12,10 +12,10 @@ import org.jdom2.Namespace;
import org.jdom2.ProcessingInstruction;
import org.jdom2.filter.ContentFilter;
import com.sun.syndication.feed.WireFeed;
import com.sun.syndication.feed.module.Extendable;
import com.sun.syndication.feed.module.Module;
import com.sun.syndication.io.WireFeedParser;
import com.rometools.rome.feed.WireFeed;
import com.rometools.rome.feed.module.Extendable;
import com.rometools.rome.feed.module.Module;
import com.rometools.rome.io.WireFeedParser;
/**
* @author Alejandro Abdelnur

View file

@ -14,7 +14,7 @@
* limitations under the License.
*
*/
package com.sun.syndication.io.impl;
package com.rometools.rome.io.impl;
import java.util.ArrayList;
import java.util.Collections;
@ -28,10 +28,10 @@ import org.jdom2.Attribute;
import org.jdom2.Element;
import org.jdom2.Namespace;
import com.sun.syndication.feed.module.DCModule;
import com.sun.syndication.feed.module.DCSubject;
import com.sun.syndication.feed.module.Module;
import com.sun.syndication.io.ModuleGenerator;
import com.rometools.rome.feed.module.DCModule;
import com.rometools.rome.feed.module.DCSubject;
import com.rometools.rome.feed.module.Module;
import com.rometools.rome.io.ModuleGenerator;
/**
* Feed Generator for DublinCore Module.

View file

@ -14,7 +14,7 @@
* limitations under the License.
*
*/
package com.sun.syndication.io.impl;
package com.rometools.rome.io.impl;
import java.util.ArrayList;
import java.util.Date;
@ -25,12 +25,12 @@ import org.jdom2.Attribute;
import org.jdom2.Element;
import org.jdom2.Namespace;
import com.sun.syndication.feed.module.DCModule;
import com.sun.syndication.feed.module.DCModuleImpl;
import com.sun.syndication.feed.module.DCSubject;
import com.sun.syndication.feed.module.DCSubjectImpl;
import com.sun.syndication.feed.module.Module;
import com.sun.syndication.io.ModuleParser;
import com.rometools.rome.feed.module.DCModule;
import com.rometools.rome.feed.module.DCModuleImpl;
import com.rometools.rome.feed.module.DCSubject;
import com.rometools.rome.feed.module.DCSubjectImpl;
import com.rometools.rome.feed.module.Module;
import com.rometools.rome.io.ModuleParser;
/**
* Parser for the Dublin Core module.

View file

@ -14,7 +14,7 @@
* limitations under the License.
*
*/
package com.sun.syndication.io.impl;
package com.rometools.rome.io.impl;
import java.text.DateFormat;
import java.text.ParsePosition;

View file

@ -14,11 +14,11 @@
* limitations under the License.
*
*/
package com.sun.syndication.io.impl;
package com.rometools.rome.io.impl;
import java.util.List;
import com.sun.syndication.io.WireFeedGenerator;
import com.rometools.rome.io.WireFeedGenerator;
/**
* Generates an XML document (JDOM Document) out of a Feed.

View file

@ -14,13 +14,13 @@
* limitations under the License.
*
*/
package com.sun.syndication.io.impl;
package com.rometools.rome.io.impl;
import java.util.List;
import org.jdom2.Document;
import com.sun.syndication.io.WireFeedParser;
import com.rometools.rome.io.WireFeedParser;
/**
* Parses an XML document (JDOM Document) into a Feed.

View file

@ -14,7 +14,7 @@
* limitations under the License.
*
*/
package com.sun.syndication.io.impl;
package com.rometools.rome.io.impl;
import java.util.HashSet;
import java.util.List;
@ -24,8 +24,8 @@ import java.util.Set;
import org.jdom2.Element;
import org.jdom2.Namespace;
import com.sun.syndication.feed.module.Module;
import com.sun.syndication.io.ModuleGenerator;
import com.rometools.rome.feed.module.Module;
import com.rometools.rome.io.ModuleGenerator;
public class ModuleGenerators extends PluginManager<ModuleGenerator> {

View file

@ -14,7 +14,7 @@
* limitations under the License.
*
*/
package com.sun.syndication.io.impl;
package com.rometools.rome.io.impl;
import java.util.List;
import java.util.Locale;
@ -22,10 +22,10 @@ import java.util.Locale;
import org.jdom2.Element;
import org.jdom2.Namespace;
import com.rometools.rome.feed.module.Module;
import com.rometools.rome.io.ModuleParser;
import com.rometools.rome.io.WireFeedParser;
import com.rometools.utils.Lists;
import com.sun.syndication.feed.module.Module;
import com.sun.syndication.io.ModuleParser;
import com.sun.syndication.io.WireFeedParser;
/**
*/

View file

@ -1,4 +1,4 @@
package com.sun.syndication.io.impl;
package com.rometools.rome.io.impl;
/**
* A helper class that parses Numbers out of Strings in a lenient manner.

View file

@ -14,7 +14,7 @@
* limitations under the License.
*
*/
package com.sun.syndication.io.impl;
package com.rometools.rome.io.impl;
import java.util.ArrayList;
import java.util.Collection;
@ -24,11 +24,11 @@ import java.util.Iterator;
import java.util.List;
import java.util.Map;
import com.sun.syndication.feed.impl.ConfigurableClassLoader;
import com.sun.syndication.io.DelegatingModuleGenerator;
import com.sun.syndication.io.DelegatingModuleParser;
import com.sun.syndication.io.WireFeedGenerator;
import com.sun.syndication.io.WireFeedParser;
import com.rometools.rome.feed.impl.ConfigurableClassLoader;
import com.rometools.rome.io.DelegatingModuleGenerator;
import com.rometools.rome.io.DelegatingModuleParser;
import com.rometools.rome.io.WireFeedGenerator;
import com.rometools.rome.io.WireFeedParser;
/**
* <p>

View file

@ -0,0 +1,169 @@
package com.rometools.rome.io.impl;
import java.io.IOException;
import java.io.InputStream;
import java.net.URL;
import java.util.ArrayList;
import java.util.Enumeration;
import java.util.List;
import java.util.Map;
import java.util.Properties;
import java.util.StringTokenizer;
import java.util.WeakHashMap;
import com.rometools.rome.feed.impl.ConfigurableClassLoader;
/**
* Properties loader that aggregates a master properties file and several extra
* properties files, all from the current classpath.
* <P>
* The master properties file has to be in a distinct location than the extra
* properties files. First the master properties file is loaded, then all the
* extra properties files in their order of appearance in the classpath.
* <P>
* Current use cases (plugin manager for parsers/converters/generators for feeds
* and modules and date formats) assume properties are list of tokens, that why
* the only method to get property values is the getTokenizedProperty().
* <p>
*
* @author Alejandro Abdelnur
*
*/
public class PropertiesLoader {
private static final String MASTER_PLUGIN_FILE = "com/rometools/rome/rome.properties";
private static final String EXTRA_PLUGIN_FILE = "rome.properties";
private static Map<ClassLoader, PropertiesLoader> clMap = new WeakHashMap<ClassLoader, PropertiesLoader>();
/**
* Returns the PropertiesLoader singleton used by ROME to load plugin
* components.
*
* @return PropertiesLoader singleton.
*
*/
public static PropertiesLoader getPropertiesLoader() {
synchronized (PropertiesLoader.class) {
final ClassLoader classLoader = ConfigurableClassLoader.INSTANCE.getClassLoader();
PropertiesLoader loader = clMap.get(classLoader);
if (loader == null) {
try {
loader = new PropertiesLoader(MASTER_PLUGIN_FILE, EXTRA_PLUGIN_FILE);
clMap.put(classLoader, loader);
} catch (final IOException ex) {
throw new RuntimeException(ex);
}
}
return loader;
}
}
private final Properties[] properties;
/**
* Creates a PropertiesLoader.
* <p>
*
* @param masterFileLocation
* master file location, there must be only one.
* @param extraFileLocation
* extra file location, there may be many.
* @throws IOException
* thrown if one of the properties file could not be read.
*
*/
private PropertiesLoader(final String masterFileLocation, final String extraFileLocation) throws IOException {
final List<Properties> propertiesList = new ArrayList<Properties>();
final ClassLoader classLoader = ConfigurableClassLoader.INSTANCE.getClassLoader();
try {
final InputStream is = classLoader.getResourceAsStream(masterFileLocation);
final Properties p = new Properties();
p.load(is);
is.close();
propertiesList.add(p);
} catch (final IOException ioex) {
final IOException ex = new IOException("could not load ROME master plugins file [" + masterFileLocation + "], " + ioex.getMessage());
ex.setStackTrace(ioex.getStackTrace());
throw ex;
}
final Enumeration<URL> urls = classLoader.getResources(extraFileLocation);
while (urls.hasMoreElements()) {
final URL url = urls.nextElement();
final Properties p = new Properties();
try {
final InputStream is = url.openStream();
p.load(is);
is.close();
} catch (final IOException ioex) {
final IOException ex = new IOException("could not load ROME extensions plugins file [" + url.toString() + "], " + ioex.getMessage());
ex.setStackTrace(ioex.getStackTrace());
throw ex;
}
propertiesList.add(p);
}
properties = new Properties[propertiesList.size()];
propertiesList.toArray(properties);
}
/**
* Returns an array of tokenized values stored under a property key in all
* properties files. If the master file has this property its tokens will be
* the first ones in the array.
* <p>
*
* @param key
* property key to retrieve values
* @param separator
* String with all separator characters to tokenize from the
* values in all properties files.
* @return all the tokens for the given property key from all the properties
* files.
*
*/
public String[] getTokenizedProperty(final String key, final String separator) {
final List<String> entriesList = new ArrayList<String>();
for (final Properties property : properties) {
final String values = property.getProperty(key);
if (values != null) {
final StringTokenizer st = new StringTokenizer(values, separator);
while (st.hasMoreTokens()) {
final String token = st.nextToken();
entriesList.add(token);
}
}
}
final String[] entries = new String[entriesList.size()];
entriesList.toArray(entries);
return entries;
}
/**
* Returns an array of values stored under a property key in all properties
* files. If the master file has this property it will be the first ones in
* the array.
* <p>
*
* @param key
* property key to retrieve values
* @return all the values for the given property key from all the properties
* files.
*
*/
public String[] getProperty(final String key) {
final List<String> entriesList = new ArrayList<String>();
for (final Properties property : properties) {
final String values = property.getProperty(key);
if (values != null) {
entriesList.add(values);
}
}
final String[] entries = new String[entriesList.size()];
entriesList.toArray(entries);
return entries;
}
}

View file

@ -14,7 +14,7 @@
* limitations under the License.
*
*/
package com.sun.syndication.io.impl;
package com.rometools.rome.io.impl;
import java.util.List;
@ -22,12 +22,12 @@ import org.jdom2.Document;
import org.jdom2.Element;
import org.jdom2.Namespace;
import com.sun.syndication.feed.WireFeed;
import com.sun.syndication.feed.rss.Channel;
import com.sun.syndication.feed.rss.Image;
import com.sun.syndication.feed.rss.Item;
import com.sun.syndication.feed.rss.TextInput;
import com.sun.syndication.io.FeedException;
import com.rometools.rome.feed.WireFeed;
import com.rometools.rome.feed.rss.Channel;
import com.rometools.rome.feed.rss.Image;
import com.rometools.rome.feed.rss.Item;
import com.rometools.rome.feed.rss.TextInput;
import com.rometools.rome.io.FeedException;
/**
* Feed Generator for RSS 0.90

Some files were not shown because too many files have changed in this diff Show more