From 46b852cf80d10d48a93cbe006120a1947a501136 Mon Sep 17 00:00:00 2001 From: Patrick Gotthard Date: Fri, 30 May 2014 16:30:10 +0200 Subject: [PATCH] Renamed and harmonized packages --- .../rome}/feed/CopyFrom.java | 2 +- .../rome}/feed/WireFeed.java | 10 +- .../rome}/feed/atom/Category.java | 4 +- .../rome}/feed/atom/Content.java | 4 +- .../rome}/feed/atom/Entry.java | 12 +- .../rome}/feed/atom/Feed.java | 12 +- .../rome}/feed/atom/Generator.java | 4 +- .../rome}/feed/atom/Link.java | 4 +- .../rome}/feed/atom/Person.java | 12 +- .../rome}/feed/impl/BeanIntrospector.java | 2 +- .../rome}/feed/impl/CloneableBean.java | 2 +- .../feed/impl/ConfigurableClassLoader.java | 2 +- .../rome}/feed/impl/CopyFromHelper.java | 4 +- .../rome}/feed/impl/EqualsBean.java | 2 +- .../rome}/feed/impl/ObjectBean.java | 2 +- .../rome}/feed/impl/ToStringBean.java | 2 +- .../rome}/feed/module/DCModule.java | 2 +- .../rome}/feed/module/DCModuleImpl.java | 8 +- .../rome}/feed/module/DCSubject.java | 4 +- .../rome}/feed/module/DCSubjectImpl.java | 8 +- .../rome}/feed/module/Extendable.java | 2 +- .../rome}/feed/module/Module.java | 4 +- .../rome}/feed/module/ModuleImpl.java | 4 +- .../rome}/feed/module/SyModule.java | 2 +- .../rome}/feed/module/SyModuleImpl.java | 6 +- .../rome}/feed/module/impl/ModuleUtils.java | 4 +- .../rome}/feed/rss/Category.java | 4 +- .../rome}/feed/rss/Channel.java | 8 +- .../rome}/feed/rss/Cloud.java | 4 +- .../rome}/feed/rss/Content.java | 4 +- .../rome}/feed/rss/Description.java | 4 +- .../rome}/feed/rss/Enclosure.java | 4 +- .../rome}/feed/rss/Guid.java | 4 +- .../rome}/feed/rss/Image.java | 4 +- .../rome}/feed/rss/Item.java | 10 +- .../rome}/feed/rss/Source.java | 4 +- .../rome}/feed/rss/TextInput.java | 4 +- .../rome}/feed/synd/Converter.java | 4 +- .../rome}/feed/synd/SyndCategory.java | 4 +- .../rome}/feed/synd/SyndCategoryImpl.java | 12 +- .../feed/synd/SyndCategoryListFacade.java | 4 +- .../rome}/feed/synd/SyndContent.java | 4 +- .../rome}/feed/synd/SyndContentImpl.java | 8 +- .../rome}/feed/synd/SyndEnclosure.java | 4 +- .../rome}/feed/synd/SyndEnclosureImpl.java | 8 +- .../rome}/feed/synd/SyndEntry.java | 12 +- .../rome}/feed/synd/SyndEntryImpl.java | 24 +-- .../rome}/feed/synd/SyndFeed.java | 10 +- .../rome}/feed/synd/SyndFeedImpl.java | 26 +-- .../rome}/feed/synd/SyndImage.java | 4 +- .../rome}/feed/synd/SyndImageImpl.java | 8 +- .../rome}/feed/synd/SyndLink.java | 2 +- .../rome}/feed/synd/SyndLinkImpl.java | 4 +- .../rome}/feed/synd/SyndPerson.java | 4 +- .../rome}/feed/synd/SyndPersonImpl.java | 8 +- .../feed/synd/impl/ConverterForAtom03.java | 44 ++--- .../feed/synd/impl/ConverterForAtom10.java | 50 +++--- .../feed/synd/impl/ConverterForRSS090.java | 30 ++-- .../synd/impl/ConverterForRSS091Netscape.java | 2 +- .../synd/impl/ConverterForRSS091Userland.java | 28 +-- .../feed/synd/impl/ConverterForRSS092.java | 18 +- .../feed/synd/impl/ConverterForRSS093.java | 6 +- .../feed/synd/impl/ConverterForRSS094.java | 26 +-- .../feed/synd/impl/ConverterForRSS10.java | 20 +-- .../feed/synd/impl/ConverterForRSS20.java | 2 +- .../rome}/feed/synd/impl/Converters.java | 6 +- .../rome}/feed/synd/impl/URINormalizer.java | 2 +- .../rome}/io/DelegatingModuleGenerator.java | 2 +- .../rome}/io/DelegatingModuleParser.java | 2 +- .../rome}/io/FeedException.java | 2 +- .../rome}/io/ModuleGenerator.java | 4 +- .../rome}/io/ModuleParser.java | 4 +- .../rome}/io/ParsingFeedException.java | 2 +- .../rome}/io/SAXBuilder.java | 2 +- .../rome}/io/SyndFeedInput.java | 6 +- .../rome}/io/SyndFeedOutput.java | 4 +- .../rome}/io/WireFeedGenerator.java | 4 +- .../rome}/io/WireFeedInput.java | 10 +- .../rome}/io/WireFeedOutput.java | 8 +- .../rome}/io/WireFeedParser.java | 4 +- .../rome}/io/XmlReader.java | 2 +- .../rome}/io/XmlReaderException.java | 2 +- .../rome}/io/impl/Atom03Generator.java | 18 +- .../rome}/io/impl/Atom03Parser.java | 20 +-- .../rome}/io/impl/Atom10Generator.java | 22 +-- .../rome}/io/impl/Atom10Parser.java | 28 +-- .../rome}/io/impl/Base64.java | 10 +- .../rome}/io/impl/BaseWireFeedGenerator.java | 6 +- .../rome}/io/impl/BaseWireFeedParser.java | 10 +- .../rome}/io/impl/DCModuleGenerator.java | 10 +- .../rome}/io/impl/DCModuleParser.java | 14 +- .../rome}/io/impl/DateParser.java | 2 +- .../rome}/io/impl/FeedGenerators.java | 4 +- .../rome}/io/impl/FeedParsers.java | 4 +- .../rome}/io/impl/ModuleGenerators.java | 6 +- .../rome}/io/impl/ModuleParsers.java | 8 +- .../rome}/io/impl/NumberParser.java | 2 +- .../rome}/io/impl/PluginManager.java | 12 +- .../rome/io/impl/PropertiesLoader.java | 169 ++++++++++++++++++ .../rome}/io/impl/RSS090Generator.java | 14 +- .../rome}/io/impl/RSS090Parser.java | 16 +- .../io/impl/RSS091NetscapeGenerator.java | 2 +- .../rome}/io/impl/RSS091NetscapeParser.java | 2 +- .../io/impl/RSS091UserlandGenerator.java | 14 +- .../rome}/io/impl/RSS091UserlandParser.java | 14 +- .../rome}/io/impl/RSS092Generator.java | 16 +- .../rome}/io/impl/RSS092Parser.java | 18 +- .../rome}/io/impl/RSS093Generator.java | 6 +- .../rome}/io/impl/RSS093Parser.java | 4 +- .../rome}/io/impl/RSS094Generator.java | 6 +- .../rome}/io/impl/RSS094Parser.java | 10 +- .../rome}/io/impl/RSS10Generator.java | 10 +- .../rome}/io/impl/RSS10Parser.java | 12 +- .../rome}/io/impl/RSS20Generator.java | 10 +- .../rome}/io/impl/RSS20Parser.java | 4 +- .../rome}/io/impl/RSS20wNSParser.java | 4 +- .../rome}/io/impl/SyModuleGenerator.java | 8 +- .../rome}/io/impl/SyModuleParser.java | 10 +- .../rome}/io/impl/XmlFixerReader.java | 2 +- .../syndication/io/impl/PropertiesLoader.java | 158 ---------------- .../com/rometools/rome/rome.properties | 143 +++++++++++++++ .../com/sun/syndication/rome.properties | 143 --------------- ...ingACustomModuleBeanParserAndGenerator.apt | 8 +- ...gateManySyndicationFeedsIntoASingleOne.apt | 14 +- ...rtASyndicationFeedFromOneTypeToAnother.apt | 12 +- ...ngRomeToCreateAndWriteASyndicationFeed.apt | 8 +- ...utorialUsingRomeToReadASyndicationFeed.apt | 10 +- src/site/apt/HowRomeWorks/index.apt | 2 +- .../ROMEFeatureRequests.apt | 2 +- ...gateManySyndicationFeedsIntoASingleOne.apt | 14 +- ...rtASyndicationFeedFromOneTypeToAnother.apt | 10 +- ...utorialUsingRomeToReadASyndicationFeed.apt | 8 +- ...gateManySyndicationFeedsIntoASingleOne.apt | 12 +- ...rtASyndicationFeedFromOneTypeToAnother.apt | 10 +- ...utorialUsingRomeToReadASyndicationFeed.apt | 8 +- ...ingACustomModuleBeanParserAndGenerator.apt | 8 +- ...gateManySyndicationFeedsIntoASingleOne.apt | 12 +- ...rtASyndicationFeedFromOneTypeToAnother.apt | 10 +- ...ngRomeToCreateAndWriteASyndicationFeed.apt | 8 +- ...utorialUsingRomeToReadASyndicationFeed.apt | 8 +- ...meWithinAServletToCreateAndReturnAFeed.apt | 10 +- ...ssAndAtOMUtilitiEsROMEPluginsMechanism.apt | 102 +++++------ ...ingACustomModuleBeanParserAndGenerator.apt | 8 +- ...gateManySyndicationFeedsIntoASingleOne.apt | 14 +- ...rtASyndicationFeedFromOneTypeToAnother.apt | 12 +- ...ngROMEToCreateAndWriteASyndicationFeed.apt | 8 +- ...utorialUsingROMEToReadASyndicationFeed.apt | 10 +- ...MEWithinAServletToCreateAndReturnAFeed.apt | 10 +- ...ngRssAndAtOMUtilitiEsROMEBeanUtilities.apt | 2 +- .../apt/WhatPartOfTheAPIYouShouldBeUsing.apt | 2 +- .../rome}/unittest/FeedOpsTest.java | 8 +- .../rome}/unittest/FeedTest.java | 12 +- .../rome}/unittest/SyndFeedTest.java | 8 +- .../rome}/unittest/TestAtomContent.java | 10 +- .../rome}/unittest/TestBase64.java | 4 +- .../rome}/unittest/TestDateParser.java | 4 +- .../rome}/unittest/TestDublinCore.java | 8 +- .../rome}/unittest/TestEqualsBean.java | 4 +- .../rome}/unittest/TestOpsAtom03.java | 2 +- .../rome}/unittest/TestOpsAtom10.java | 2 +- .../rome}/unittest/TestOpsRSS090.java | 2 +- .../rome}/unittest/TestOpsRSS091N.java | 2 +- .../rome}/unittest/TestOpsRSS091U.java | 2 +- .../rome}/unittest/TestOpsRSS092.java | 2 +- .../rome}/unittest/TestOpsRSS093.java | 2 +- .../rome}/unittest/TestOpsRSS094.java | 2 +- .../rome}/unittest/TestOpsRSS10.java | 2 +- .../rome}/unittest/TestOpsRSS20.java | 2 +- .../rome}/unittest/TestSyndFeedAtom03.java | 6 +- .../TestSyndFeedAtom03DCSyModules.java | 10 +- .../rome}/unittest/TestSyndFeedAtom10.java | 10 +- .../unittest/TestSyndFeedAtom10Bray.java | 8 +- .../unittest/TestSyndFeedAtom10Ruby.java | 8 +- .../rome}/unittest/TestSyndFeedAtom10b.java | 8 +- .../unittest/TestSyndFeedAtom10prefix.java | 4 +- .../rome}/unittest/TestSyndFeedRSS090.java | 4 +- .../rome}/unittest/TestSyndFeedRSS091N.java | 6 +- .../rome}/unittest/TestSyndFeedRSS091U.java | 2 +- .../rome}/unittest/TestSyndFeedRSS092.java | 8 +- .../rome}/unittest/TestSyndFeedRSS092Alt.java | 4 +- .../rome}/unittest/TestSyndFeedRSS093.java | 6 +- .../rome}/unittest/TestSyndFeedRSS094.java | 4 +- .../rome}/unittest/TestSyndFeedRSS10.java | 4 +- .../unittest/TestSyndFeedRSS10DCMulti.java | 8 +- .../TestSyndFeedRSS10DCSyModules.java | 10 +- .../rome}/unittest/TestSyndFeedRSS20.java | 10 +- .../rome}/unittest/TestXmlFixerReader.java | 6 +- .../rome}/unittest/TestXmlReader.java | 4 +- .../rome}/unittest/issues/Issue131Test.java | 14 +- .../rome}/unittest/issues/Issue134Test.java | 6 +- .../rome}/unittest/issues/Issue137Test.java | 6 +- .../rome}/unittest/issues/Issue158Test.java | 4 +- .../rome}/unittest/issues/Issue161Test.java | 6 +- .../rome}/unittest/issues/Issue162Test.java | 12 +- .../rome}/unittest/issues/Issue1Test.java | 8 +- .../rome}/unittest/issues/Issue2Test.java | 6 +- .../rome}/unittest/issues/Issue88Test.java | 4 +- 197 files changed, 1109 insertions(+), 1098 deletions(-) rename src/main/java/com/{sun/syndication => rometools/rome}/feed/CopyFrom.java (97%) rename src/main/java/com/{sun/syndication => rometools/rome}/feed/WireFeed.java (96%) rename src/main/java/com/{sun/syndication => rometools/rome}/feed/atom/Category.java (97%) rename src/main/java/com/{sun/syndication => rometools/rome}/feed/atom/Content.java (98%) rename src/main/java/com/{sun/syndication => rometools/rome}/feed/atom/Entry.java (98%) rename src/main/java/com/{sun/syndication => rometools/rome}/feed/atom/Feed.java (97%) rename src/main/java/com/{sun/syndication => rometools/rome}/feed/atom/Generator.java (97%) rename src/main/java/com/{sun/syndication => rometools/rome}/feed/atom/Link.java (98%) rename src/main/java/com/{sun/syndication => rometools/rome}/feed/atom/Person.java (94%) rename src/main/java/com/{sun/syndication => rometools/rome}/feed/impl/BeanIntrospector.java (99%) rename src/main/java/com/{sun/syndication => rometools/rome}/feed/impl/CloneableBean.java (99%) rename src/main/java/com/{sun/syndication => rometools/rome}/feed/impl/ConfigurableClassLoader.java (93%) rename src/main/java/com/{sun/syndication => rometools/rome}/feed/impl/CopyFromHelper.java (98%) rename src/main/java/com/{sun/syndication => rometools/rome}/feed/impl/EqualsBean.java (99%) rename src/main/java/com/{sun/syndication => rometools/rome}/feed/impl/ObjectBean.java (99%) rename src/main/java/com/{sun/syndication => rometools/rome}/feed/impl/ToStringBean.java (99%) rename src/main/java/com/{sun/syndication => rometools/rome}/feed/module/DCModule.java (99%) rename src/main/java/com/{sun/syndication => rometools/rome}/feed/module/DCModuleImpl.java (99%) rename src/main/java/com/{sun/syndication => rometools/rome}/feed/module/DCSubject.java (95%) rename src/main/java/com/{sun/syndication => rometools/rome}/feed/module/DCSubjectImpl.java (96%) rename src/main/java/com/{sun/syndication => rometools/rome}/feed/module/Extendable.java (97%) rename src/main/java/com/{sun/syndication => rometools/rome}/feed/module/Module.java (94%) rename src/main/java/com/{sun/syndication => rometools/rome}/feed/module/ModuleImpl.java (96%) rename src/main/java/com/{sun/syndication => rometools/rome}/feed/module/SyModule.java (98%) rename src/main/java/com/{sun/syndication => rometools/rome}/feed/module/SyModuleImpl.java (96%) rename src/main/java/com/{sun/syndication => rometools/rome}/feed/module/impl/ModuleUtils.java (95%) rename src/main/java/com/{sun/syndication => rometools/rome}/feed/rss/Category.java (97%) rename src/main/java/com/{sun/syndication => rometools/rome}/feed/rss/Channel.java (98%) rename src/main/java/com/{sun/syndication => rometools/rome}/feed/rss/Cloud.java (98%) rename src/main/java/com/{sun/syndication => rometools/rome}/feed/rss/Content.java (97%) rename src/main/java/com/{sun/syndication => rometools/rome}/feed/rss/Description.java (97%) rename src/main/java/com/{sun/syndication => rometools/rome}/feed/rss/Enclosure.java (97%) rename src/main/java/com/{sun/syndication => rometools/rome}/feed/rss/Guid.java (97%) rename src/main/java/com/{sun/syndication => rometools/rome}/feed/rss/Image.java (98%) rename src/main/java/com/{sun/syndication => rometools/rome}/feed/rss/Item.java (97%) rename src/main/java/com/{sun/syndication => rometools/rome}/feed/rss/Source.java (97%) rename src/main/java/com/{sun/syndication => rometools/rome}/feed/rss/TextInput.java (98%) rename src/main/java/com/{sun/syndication => rometools/rome}/feed/synd/Converter.java (96%) rename src/main/java/com/{sun/syndication => rometools/rome}/feed/synd/SyndCategory.java (95%) rename src/main/java/com/{sun/syndication => rometools/rome}/feed/synd/SyndCategoryImpl.java (94%) rename src/main/java/com/{sun/syndication => rometools/rome}/feed/synd/SyndCategoryListFacade.java (94%) rename src/main/java/com/{sun/syndication => rometools/rome}/feed/synd/SyndContent.java (96%) rename src/main/java/com/{sun/syndication => rometools/rome}/feed/synd/SyndContentImpl.java (96%) rename src/main/java/com/{sun/syndication => rometools/rome}/feed/synd/SyndEnclosure.java (93%) rename src/main/java/com/{sun/syndication => rometools/rome}/feed/synd/SyndEnclosureImpl.java (95%) rename src/main/java/com/{sun/syndication => rometools/rome}/feed/synd/SyndEntry.java (96%) rename src/main/java/com/{sun/syndication => rometools/rome}/feed/synd/SyndEntryImpl.java (96%) rename src/main/java/com/{sun/syndication => rometools/rome}/feed/synd/SyndFeed.java (98%) rename src/main/java/com/{sun/syndication => rometools/rome}/feed/synd/SyndFeedImpl.java (97%) rename src/main/java/com/{sun/syndication => rometools/rome}/feed/synd/SyndImage.java (96%) rename src/main/java/com/{sun/syndication => rometools/rome}/feed/synd/SyndImageImpl.java (96%) rename src/main/java/com/{sun/syndication => rometools/rome}/feed/synd/SyndLink.java (98%) rename src/main/java/com/{sun/syndication => rometools/rome}/feed/synd/SyndLinkImpl.java (98%) rename src/main/java/com/{sun/syndication => rometools/rome}/feed/synd/SyndPerson.java (94%) rename src/main/java/com/{sun/syndication => rometools/rome}/feed/synd/SyndPersonImpl.java (96%) rename src/main/java/com/{sun/syndication => rometools/rome}/feed/synd/impl/ConverterForAtom03.java (94%) rename src/main/java/com/{sun/syndication => rometools/rome}/feed/synd/impl/ConverterForAtom10.java (94%) rename src/main/java/com/{sun/syndication => rometools/rome}/feed/synd/impl/ConverterForRSS090.java (90%) rename src/main/java/com/{sun/syndication => rometools/rome}/feed/synd/impl/ConverterForRSS091Netscape.java (95%) rename src/main/java/com/{sun/syndication => rometools/rome}/feed/synd/impl/ConverterForRSS091Userland.java (89%) rename src/main/java/com/{sun/syndication => rometools/rome}/feed/synd/impl/ConverterForRSS092.java (90%) rename src/main/java/com/{sun/syndication => rometools/rome}/feed/synd/impl/ConverterForRSS093.java (91%) rename src/main/java/com/{sun/syndication => rometools/rome}/feed/synd/impl/ConverterForRSS094.java (88%) rename src/main/java/com/{sun/syndication => rometools/rome}/feed/synd/impl/ConverterForRSS10.java (89%) rename src/main/java/com/{sun/syndication => rometools/rome}/feed/synd/impl/ConverterForRSS20.java (94%) rename src/main/java/com/{sun/syndication => rometools/rome}/feed/synd/impl/Converters.java (90%) rename src/main/java/com/{sun/syndication => rometools/rome}/feed/synd/impl/URINormalizer.java (93%) rename src/main/java/com/{sun/syndication => rometools/rome}/io/DelegatingModuleGenerator.java (94%) rename src/main/java/com/{sun/syndication => rometools/rome}/io/DelegatingModuleParser.java (94%) rename src/main/java/com/{sun/syndication => rometools/rome}/io/FeedException.java (97%) rename src/main/java/com/{sun/syndication => rometools/rome}/io/ModuleGenerator.java (96%) rename src/main/java/com/{sun/syndication => rometools/rome}/io/ModuleParser.java (94%) rename src/main/java/com/{sun/syndication => rometools/rome}/io/ParsingFeedException.java (98%) rename src/main/java/com/{sun/syndication => rometools/rome}/io/SAXBuilder.java (97%) rename src/main/java/com/{sun/syndication => rometools/rome}/io/SyndFeedInput.java (98%) rename src/main/java/com/{sun/syndication => rometools/rome}/io/SyndFeedOutput.java (99%) rename src/main/java/com/{sun/syndication => rometools/rome}/io/WireFeedGenerator.java (95%) rename src/main/java/com/{sun/syndication => rometools/rome}/io/WireFeedInput.java (98%) rename src/main/java/com/{sun/syndication => rometools/rome}/io/WireFeedOutput.java (98%) rename src/main/java/com/{sun/syndication => rometools/rome}/io/WireFeedParser.java (96%) rename src/main/java/com/{sun/syndication => rometools/rome}/io/XmlReader.java (99%) rename src/main/java/com/{sun/syndication => rometools/rome}/io/XmlReaderException.java (99%) rename src/main/java/com/{sun/syndication => rometools/rome}/io/impl/Atom03Generator.java (97%) rename src/main/java/com/{sun/syndication => rometools/rome}/io/impl/Atom03Parser.java (96%) rename src/main/java/com/{sun/syndication => rometools/rome}/io/impl/Atom10Generator.java (97%) rename src/main/java/com/{sun/syndication => rometools/rome}/io/impl/Atom10Parser.java (97%) rename src/main/java/com/{sun/syndication => rometools/rome}/io/impl/Base64.java (95%) rename src/main/java/com/{sun/syndication => rometools/rome}/io/impl/BaseWireFeedGenerator.java (97%) rename src/main/java/com/{sun/syndication => rometools/rome}/io/impl/BaseWireFeedParser.java (95%) rename src/main/java/com/{sun/syndication => rometools/rome}/io/impl/DCModuleGenerator.java (97%) rename src/main/java/com/{sun/syndication => rometools/rome}/io/impl/DCModuleParser.java (96%) rename src/main/java/com/{sun/syndication => rometools/rome}/io/impl/DateParser.java (99%) rename src/main/java/com/{sun/syndication => rometools/rome}/io/impl/FeedGenerators.java (95%) rename src/main/java/com/{sun/syndication => rometools/rome}/io/impl/FeedParsers.java (96%) rename src/main/java/com/{sun/syndication => rometools/rome}/io/impl/ModuleGenerators.java (94%) rename src/main/java/com/{sun/syndication => rometools/rome}/io/impl/ModuleParsers.java (92%) rename src/main/java/com/{sun/syndication => rometools/rome}/io/impl/NumberParser.java (98%) rename src/main/java/com/{sun/syndication => rometools/rome}/io/impl/PluginManager.java (94%) create mode 100644 src/main/java/com/rometools/rome/io/impl/PropertiesLoader.java rename src/main/java/com/{sun/syndication => rometools/rome}/io/impl/RSS090Generator.java (97%) rename src/main/java/com/{sun/syndication => rometools/rome}/io/impl/RSS090Parser.java (97%) rename src/main/java/com/{sun/syndication => rometools/rome}/io/impl/RSS091NetscapeGenerator.java (97%) rename src/main/java/com/{sun/syndication => rometools/rome}/io/impl/RSS091NetscapeParser.java (98%) rename src/main/java/com/{sun/syndication => rometools/rome}/io/impl/RSS091UserlandGenerator.java (96%) rename src/main/java/com/{sun/syndication => rometools/rome}/io/impl/RSS091UserlandParser.java (96%) rename src/main/java/com/{sun/syndication => rometools/rome}/io/impl/RSS092Generator.java (94%) rename src/main/java/com/{sun/syndication => rometools/rome}/io/impl/RSS092Parser.java (94%) rename src/main/java/com/{sun/syndication => rometools/rome}/io/impl/RSS093Generator.java (93%) rename src/main/java/com/{sun/syndication => rometools/rome}/io/impl/RSS093Parser.java (95%) rename src/main/java/com/{sun/syndication => rometools/rome}/io/impl/RSS094Generator.java (92%) rename src/main/java/com/{sun/syndication => rometools/rome}/io/impl/RSS094Parser.java (93%) rename src/main/java/com/{sun/syndication => rometools/rome}/io/impl/RSS10Generator.java (95%) rename src/main/java/com/{sun/syndication => rometools/rome}/io/impl/RSS10Parser.java (94%) rename src/main/java/com/{sun/syndication => rometools/rome}/io/impl/RSS20Generator.java (92%) rename src/main/java/com/{sun/syndication => rometools/rome}/io/impl/RSS20Parser.java (95%) rename src/main/java/com/{sun/syndication => rometools/rome}/io/impl/RSS20wNSParser.java (96%) rename src/main/java/com/{sun/syndication => rometools/rome}/io/impl/SyModuleGenerator.java (94%) rename src/main/java/com/{sun/syndication => rometools/rome}/io/impl/SyModuleParser.java (89%) rename src/main/java/com/{sun/syndication => rometools/rome}/io/impl/XmlFixerReader.java (99%) delete mode 100644 src/main/java/com/sun/syndication/io/impl/PropertiesLoader.java create mode 100644 src/main/resources/com/rometools/rome/rome.properties delete mode 100644 src/main/resources/com/sun/syndication/rome.properties rename src/test/java/com/{sun/syndication => rometools/rome}/unittest/FeedOpsTest.java (94%) rename src/test/java/com/{sun/syndication => rometools/rome}/unittest/FeedTest.java (89%) rename src/test/java/com/{sun/syndication => rometools/rome}/unittest/SyndFeedTest.java (97%) rename src/test/java/com/{sun/syndication => rometools/rome}/unittest/TestAtomContent.java (85%) rename src/test/java/com/{sun/syndication => rometools/rome}/unittest/TestBase64.java (92%) rename src/test/java/com/{sun/syndication => rometools/rome}/unittest/TestDateParser.java (98%) rename src/test/java/com/{sun/syndication => rometools/rome}/unittest/TestDublinCore.java (85%) rename src/test/java/com/{sun/syndication => rometools/rome}/unittest/TestEqualsBean.java (93%) rename src/test/java/com/{sun/syndication => rometools/rome}/unittest/TestOpsAtom03.java (81%) rename src/test/java/com/{sun/syndication => rometools/rome}/unittest/TestOpsAtom10.java (81%) rename src/test/java/com/{sun/syndication => rometools/rome}/unittest/TestOpsRSS090.java (81%) rename src/test/java/com/{sun/syndication => rometools/rome}/unittest/TestOpsRSS091N.java (90%) rename src/test/java/com/{sun/syndication => rometools/rome}/unittest/TestOpsRSS091U.java (81%) rename src/test/java/com/{sun/syndication => rometools/rome}/unittest/TestOpsRSS092.java (81%) rename src/test/java/com/{sun/syndication => rometools/rome}/unittest/TestOpsRSS093.java (81%) rename src/test/java/com/{sun/syndication => rometools/rome}/unittest/TestOpsRSS094.java (90%) rename src/test/java/com/{sun/syndication => rometools/rome}/unittest/TestOpsRSS10.java (81%) rename src/test/java/com/{sun/syndication => rometools/rome}/unittest/TestOpsRSS20.java (81%) rename src/test/java/com/{sun/syndication => rometools/rome}/unittest/TestSyndFeedAtom03.java (96%) rename src/test/java/com/{sun/syndication => rometools/rome}/unittest/TestSyndFeedAtom03DCSyModules.java (94%) rename src/test/java/com/{sun/syndication => rometools/rome}/unittest/TestSyndFeedAtom10.java (95%) rename src/test/java/com/{sun/syndication => rometools/rome}/unittest/TestSyndFeedAtom10Bray.java (86%) rename src/test/java/com/{sun/syndication => rometools/rome}/unittest/TestSyndFeedAtom10Ruby.java (85%) rename src/test/java/com/{sun/syndication => rometools/rome}/unittest/TestSyndFeedAtom10b.java (83%) rename src/test/java/com/{sun/syndication => rometools/rome}/unittest/TestSyndFeedAtom10prefix.java (89%) rename src/test/java/com/{sun/syndication => rometools/rome}/unittest/TestSyndFeedRSS090.java (97%) rename src/test/java/com/{sun/syndication => rometools/rome}/unittest/TestSyndFeedRSS091N.java (94%) rename src/test/java/com/{sun/syndication => rometools/rome}/unittest/TestSyndFeedRSS091U.java (85%) rename src/test/java/com/{sun/syndication => rometools/rome}/unittest/TestSyndFeedRSS092.java (92%) rename src/test/java/com/{sun/syndication => rometools/rome}/unittest/TestSyndFeedRSS092Alt.java (91%) rename src/test/java/com/{sun/syndication => rometools/rome}/unittest/TestSyndFeedRSS093.java (91%) rename src/test/java/com/{sun/syndication => rometools/rome}/unittest/TestSyndFeedRSS094.java (93%) rename src/test/java/com/{sun/syndication => rometools/rome}/unittest/TestSyndFeedRSS10.java (93%) rename src/test/java/com/{sun/syndication => rometools/rome}/unittest/TestSyndFeedRSS10DCMulti.java (95%) rename src/test/java/com/{sun/syndication => rometools/rome}/unittest/TestSyndFeedRSS10DCSyModules.java (93%) rename src/test/java/com/{sun/syndication => rometools/rome}/unittest/TestSyndFeedRSS20.java (89%) rename src/test/java/com/{sun/syndication => rometools/rome}/unittest/TestXmlFixerReader.java (98%) rename src/test/java/com/{sun/syndication => rometools/rome}/unittest/TestXmlReader.java (99%) rename src/test/java/com/{sun/syndication => rometools/rome}/unittest/issues/Issue131Test.java (85%) rename src/test/java/com/{sun/syndication => rometools/rome}/unittest/issues/Issue134Test.java (76%) rename src/test/java/com/{sun/syndication => rometools/rome}/unittest/issues/Issue137Test.java (94%) rename src/test/java/com/{sun/syndication => rometools/rome}/unittest/issues/Issue158Test.java (79%) rename src/test/java/com/{sun/syndication => rometools/rome}/unittest/issues/Issue161Test.java (85%) rename src/test/java/com/{sun/syndication => rometools/rome}/unittest/issues/Issue162Test.java (87%) rename src/test/java/com/{sun/syndication => rometools/rome}/unittest/issues/Issue1Test.java (97%) rename src/test/java/com/{sun/syndication => rometools/rome}/unittest/issues/Issue2Test.java (89%) rename src/test/java/com/{sun/syndication => rometools/rome}/unittest/issues/Issue88Test.java (85%) diff --git a/src/main/java/com/sun/syndication/feed/CopyFrom.java b/src/main/java/com/rometools/rome/feed/CopyFrom.java similarity index 97% rename from src/main/java/com/sun/syndication/feed/CopyFrom.java rename to src/main/java/com/rometools/rome/feed/CopyFrom.java index 115979e..e69d5a9 100644 --- a/src/main/java/com/sun/syndication/feed/CopyFrom.java +++ b/src/main/java/com/rometools/rome/feed/CopyFrom.java @@ -15,7 +15,7 @@ * limitations under the License. * */ -package com.sun.syndication.feed; +package com.rometools.rome.feed; /** * @author Alejandro Abdelnur diff --git a/src/main/java/com/sun/syndication/feed/WireFeed.java b/src/main/java/com/rometools/rome/feed/WireFeed.java similarity index 96% rename from src/main/java/com/sun/syndication/feed/WireFeed.java rename to src/main/java/com/rometools/rome/feed/WireFeed.java index ad023c8..04566fd 100644 --- a/src/main/java/com/sun/syndication/feed/WireFeed.java +++ b/src/main/java/com/rometools/rome/feed/WireFeed.java @@ -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. diff --git a/src/main/java/com/sun/syndication/feed/atom/Category.java b/src/main/java/com/rometools/rome/feed/atom/Category.java similarity index 97% rename from src/main/java/com/sun/syndication/feed/atom/Category.java rename to src/main/java/com/rometools/rome/feed/atom/Category.java index f7f4748..5c7941f 100644 --- a/src/main/java/com/sun/syndication/feed/atom/Category.java +++ b/src/main/java/com/rometools/rome/feed/atom/Category.java @@ -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. diff --git a/src/main/java/com/sun/syndication/feed/atom/Content.java b/src/main/java/com/rometools/rome/feed/atom/Content.java similarity index 98% rename from src/main/java/com/sun/syndication/feed/atom/Content.java rename to src/main/java/com/rometools/rome/feed/atom/Content.java index 990595d..e427f78 100644 --- a/src/main/java/com/sun/syndication/feed/atom/Content.java +++ b/src/main/java/com/rometools/rome/feed/atom/Content.java @@ -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. diff --git a/src/main/java/com/sun/syndication/feed/atom/Entry.java b/src/main/java/com/rometools/rome/feed/atom/Entry.java similarity index 98% rename from src/main/java/com/sun/syndication/feed/atom/Entry.java rename to src/main/java/com/rometools/rome/feed/atom/Entry.java index 283c964..7538f22 100644 --- a/src/main/java/com/sun/syndication/feed/atom/Entry.java +++ b/src/main/java/com/rometools/rome/feed/atom/Entry.java @@ -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. diff --git a/src/main/java/com/sun/syndication/feed/atom/Feed.java b/src/main/java/com/rometools/rome/feed/atom/Feed.java similarity index 97% rename from src/main/java/com/sun/syndication/feed/atom/Feed.java rename to src/main/java/com/rometools/rome/feed/atom/Feed.java index e1f8c30..b47185f 100644 --- a/src/main/java/com/sun/syndication/feed/atom/Feed.java +++ b/src/main/java/com/rometools/rome/feed/atom/Feed.java @@ -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)}). *

* * @param tagline the feed tagline to set, null if none. diff --git a/src/main/java/com/sun/syndication/feed/atom/Generator.java b/src/main/java/com/rometools/rome/feed/atom/Generator.java similarity index 97% rename from src/main/java/com/sun/syndication/feed/atom/Generator.java rename to src/main/java/com/rometools/rome/feed/atom/Generator.java index 05ebeba..72bcbd4 100644 --- a/src/main/java/com/sun/syndication/feed/atom/Generator.java +++ b/src/main/java/com/rometools/rome/feed/atom/Generator.java @@ -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. diff --git a/src/main/java/com/sun/syndication/feed/atom/Link.java b/src/main/java/com/rometools/rome/feed/atom/Link.java similarity index 98% rename from src/main/java/com/sun/syndication/feed/atom/Link.java rename to src/main/java/com/rometools/rome/feed/atom/Link.java index 4385be0..6b697c5 100644 --- a/src/main/java/com/sun/syndication/feed/atom/Link.java +++ b/src/main/java/com/rometools/rome/feed/atom/Link.java @@ -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. diff --git a/src/main/java/com/sun/syndication/feed/atom/Person.java b/src/main/java/com/rometools/rome/feed/atom/Person.java similarity index 94% rename from src/main/java/com/sun/syndication/feed/atom/Person.java rename to src/main/java/com/rometools/rome/feed/atom/Person.java index f86f786..6bf1d80 100644 --- a/src/main/java/com/sun/syndication/feed/atom/Person.java +++ b/src/main/java/com/rometools/rome/feed/atom/Person.java @@ -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. diff --git a/src/main/java/com/sun/syndication/feed/impl/BeanIntrospector.java b/src/main/java/com/rometools/rome/feed/impl/BeanIntrospector.java similarity index 99% rename from src/main/java/com/sun/syndication/feed/impl/BeanIntrospector.java rename to src/main/java/com/rometools/rome/feed/impl/BeanIntrospector.java index 3fbf6ee..3cb0023 100644 --- a/src/main/java/com/sun/syndication/feed/impl/BeanIntrospector.java +++ b/src/main/java/com/rometools/rome/feed/impl/BeanIntrospector.java @@ -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; diff --git a/src/main/java/com/sun/syndication/feed/impl/CloneableBean.java b/src/main/java/com/rometools/rome/feed/impl/CloneableBean.java similarity index 99% rename from src/main/java/com/sun/syndication/feed/impl/CloneableBean.java rename to src/main/java/com/rometools/rome/feed/impl/CloneableBean.java index 33a51e2..0230f38 100644 --- a/src/main/java/com/sun/syndication/feed/impl/CloneableBean.java +++ b/src/main/java/com/rometools/rome/feed/impl/CloneableBean.java @@ -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; diff --git a/src/main/java/com/sun/syndication/feed/impl/ConfigurableClassLoader.java b/src/main/java/com/rometools/rome/feed/impl/ConfigurableClassLoader.java similarity index 93% rename from src/main/java/com/sun/syndication/feed/impl/ConfigurableClassLoader.java rename to src/main/java/com/rometools/rome/feed/impl/ConfigurableClassLoader.java index 28197a3..4ceccf5 100644 --- a/src/main/java/com/sun/syndication/feed/impl/ConfigurableClassLoader.java +++ b/src/main/java/com/rometools/rome/feed/impl/ConfigurableClassLoader.java @@ -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 diff --git a/src/main/java/com/sun/syndication/feed/impl/CopyFromHelper.java b/src/main/java/com/rometools/rome/feed/impl/CopyFromHelper.java similarity index 98% rename from src/main/java/com/sun/syndication/feed/impl/CopyFromHelper.java rename to src/main/java/com/rometools/rome/feed/impl/CopyFromHelper.java index 803d475..9f2e601 100644 --- a/src/main/java/com/sun/syndication/feed/impl/CopyFromHelper.java +++ b/src/main/java/com/rometools/rome/feed/impl/CopyFromHelper.java @@ -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 diff --git a/src/main/java/com/sun/syndication/feed/impl/EqualsBean.java b/src/main/java/com/rometools/rome/feed/impl/EqualsBean.java similarity index 99% rename from src/main/java/com/sun/syndication/feed/impl/EqualsBean.java rename to src/main/java/com/rometools/rome/feed/impl/EqualsBean.java index 9105c8e..9b0860e 100644 --- a/src/main/java/com/sun/syndication/feed/impl/EqualsBean.java +++ b/src/main/java/com/rometools/rome/feed/impl/EqualsBean.java @@ -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; diff --git a/src/main/java/com/sun/syndication/feed/impl/ObjectBean.java b/src/main/java/com/rometools/rome/feed/impl/ObjectBean.java similarity index 99% rename from src/main/java/com/sun/syndication/feed/impl/ObjectBean.java rename to src/main/java/com/rometools/rome/feed/impl/ObjectBean.java index ea2fa7f..8473875 100644 --- a/src/main/java/com/sun/syndication/feed/impl/ObjectBean.java +++ b/src/main/java/com/rometools/rome/feed/impl/ObjectBean.java @@ -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; diff --git a/src/main/java/com/sun/syndication/feed/impl/ToStringBean.java b/src/main/java/com/rometools/rome/feed/impl/ToStringBean.java similarity index 99% rename from src/main/java/com/sun/syndication/feed/impl/ToStringBean.java rename to src/main/java/com/rometools/rome/feed/impl/ToStringBean.java index 7bdf7dd..ef87191 100644 --- a/src/main/java/com/sun/syndication/feed/impl/ToStringBean.java +++ b/src/main/java/com/rometools/rome/feed/impl/ToStringBean.java @@ -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; diff --git a/src/main/java/com/sun/syndication/feed/module/DCModule.java b/src/main/java/com/rometools/rome/feed/module/DCModule.java similarity index 99% rename from src/main/java/com/sun/syndication/feed/module/DCModule.java rename to src/main/java/com/rometools/rome/feed/module/DCModule.java index 3dc8642..36613bf 100644 --- a/src/main/java/com/sun/syndication/feed/module/DCModule.java +++ b/src/main/java/com/rometools/rome/feed/module/DCModule.java @@ -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; diff --git a/src/main/java/com/sun/syndication/feed/module/DCModuleImpl.java b/src/main/java/com/rometools/rome/feed/module/DCModuleImpl.java similarity index 99% rename from src/main/java/com/sun/syndication/feed/module/DCModuleImpl.java rename to src/main/java/com/rometools/rome/feed/module/DCModuleImpl.java index 003ba3e..350208a 100644 --- a/src/main/java/com/sun/syndication/feed/module/DCModuleImpl.java +++ b/src/main/java/com/rometools/rome/feed/module/DCModuleImpl.java @@ -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. diff --git a/src/main/java/com/sun/syndication/feed/module/DCSubject.java b/src/main/java/com/rometools/rome/feed/module/DCSubject.java similarity index 95% rename from src/main/java/com/sun/syndication/feed/module/DCSubject.java rename to src/main/java/com/rometools/rome/feed/module/DCSubject.java index 699b629..ce52a18 100644 --- a/src/main/java/com/sun/syndication/feed/module/DCSubject.java +++ b/src/main/java/com/rometools/rome/feed/module/DCSubject.java @@ -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. diff --git a/src/main/java/com/sun/syndication/feed/module/DCSubjectImpl.java b/src/main/java/com/rometools/rome/feed/module/DCSubjectImpl.java similarity index 96% rename from src/main/java/com/sun/syndication/feed/module/DCSubjectImpl.java rename to src/main/java/com/rometools/rome/feed/module/DCSubjectImpl.java index 288da8b..47fdd8b 100644 --- a/src/main/java/com/sun/syndication/feed/module/DCSubjectImpl.java +++ b/src/main/java/com/rometools/rome/feed/module/DCSubjectImpl.java @@ -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. diff --git a/src/main/java/com/sun/syndication/feed/module/Extendable.java b/src/main/java/com/rometools/rome/feed/module/Extendable.java similarity index 97% rename from src/main/java/com/sun/syndication/feed/module/Extendable.java rename to src/main/java/com/rometools/rome/feed/module/Extendable.java index 07b1511..d543d47 100644 --- a/src/main/java/com/sun/syndication/feed/module/Extendable.java +++ b/src/main/java/com/rometools/rome/feed/module/Extendable.java @@ -15,7 +15,7 @@ * */ -package com.sun.syndication.feed.module; +package com.rometools.rome.feed.module; import java.util.List; diff --git a/src/main/java/com/sun/syndication/feed/module/Module.java b/src/main/java/com/rometools/rome/feed/module/Module.java similarity index 94% rename from src/main/java/com/sun/syndication/feed/module/Module.java rename to src/main/java/com/rometools/rome/feed/module/Module.java index c6fa3e7..6c07526 100644 --- a/src/main/java/com/sun/syndication/feed/module/Module.java +++ b/src/main/java/com/rometools/rome/feed/module/Module.java @@ -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 diff --git a/src/main/java/com/sun/syndication/feed/module/ModuleImpl.java b/src/main/java/com/rometools/rome/feed/module/ModuleImpl.java similarity index 96% rename from src/main/java/com/sun/syndication/feed/module/ModuleImpl.java rename to src/main/java/com/rometools/rome/feed/module/ModuleImpl.java index 1d56a14..add234e 100644 --- a/src/main/java/com/sun/syndication/feed/module/ModuleImpl.java +++ b/src/main/java/com/rometools/rome/feed/module/ModuleImpl.java @@ -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 diff --git a/src/main/java/com/sun/syndication/feed/module/SyModule.java b/src/main/java/com/rometools/rome/feed/module/SyModule.java similarity index 98% rename from src/main/java/com/sun/syndication/feed/module/SyModule.java rename to src/main/java/com/rometools/rome/feed/module/SyModule.java index f4a3b80..30dce62 100644 --- a/src/main/java/com/sun/syndication/feed/module/SyModule.java +++ b/src/main/java/com/rometools/rome/feed/module/SyModule.java @@ -14,7 +14,7 @@ * limitations under the License. * */ -package com.sun.syndication.feed.module; +package com.rometools.rome.feed.module; import java.util.Date; diff --git a/src/main/java/com/sun/syndication/feed/module/SyModuleImpl.java b/src/main/java/com/rometools/rome/feed/module/SyModuleImpl.java similarity index 96% rename from src/main/java/com/sun/syndication/feed/module/SyModuleImpl.java rename to src/main/java/com/rometools/rome/feed/module/SyModuleImpl.java index 10b809f..4f48f34 100644 --- a/src/main/java/com/sun/syndication/feed/module/SyModuleImpl.java +++ b/src/main/java/com/rometools/rome/feed/module/SyModuleImpl.java @@ -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. diff --git a/src/main/java/com/sun/syndication/feed/module/impl/ModuleUtils.java b/src/main/java/com/rometools/rome/feed/module/impl/ModuleUtils.java similarity index 95% rename from src/main/java/com/sun/syndication/feed/module/impl/ModuleUtils.java rename to src/main/java/com/rometools/rome/feed/module/impl/ModuleUtils.java index 46c0bcb..9e72803 100644 --- a/src/main/java/com/sun/syndication/feed/module/impl/ModuleUtils.java +++ b/src/main/java/com/rometools/rome/feed/module/impl/ModuleUtils.java @@ -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; /** */ diff --git a/src/main/java/com/sun/syndication/feed/rss/Category.java b/src/main/java/com/rometools/rome/feed/rss/Category.java similarity index 97% rename from src/main/java/com/sun/syndication/feed/rss/Category.java rename to src/main/java/com/rometools/rome/feed/rss/Category.java index b40f9f1..9e0b933 100644 --- a/src/main/java/com/sun/syndication/feed/rss/Category.java +++ b/src/main/java/com/rometools/rome/feed/rss/Category.java @@ -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. diff --git a/src/main/java/com/sun/syndication/feed/rss/Channel.java b/src/main/java/com/rometools/rome/feed/rss/Channel.java similarity index 98% rename from src/main/java/com/sun/syndication/feed/rss/Channel.java rename to src/main/java/com/rometools/rome/feed/rss/Channel.java index 20772a8..cfd48bc 100644 --- a/src/main/java/com/sun/syndication/feed/rss/Channel.java +++ b/src/main/java/com/rometools/rome/feed/rss/Channel.java @@ -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. diff --git a/src/main/java/com/sun/syndication/feed/rss/Cloud.java b/src/main/java/com/rometools/rome/feed/rss/Cloud.java similarity index 98% rename from src/main/java/com/sun/syndication/feed/rss/Cloud.java rename to src/main/java/com/rometools/rome/feed/rss/Cloud.java index c6d4355..a28162f 100644 --- a/src/main/java/com/sun/syndication/feed/rss/Cloud.java +++ b/src/main/java/com/rometools/rome/feed/rss/Cloud.java @@ -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. diff --git a/src/main/java/com/sun/syndication/feed/rss/Content.java b/src/main/java/com/rometools/rome/feed/rss/Content.java similarity index 97% rename from src/main/java/com/sun/syndication/feed/rss/Content.java rename to src/main/java/com/rometools/rome/feed/rss/Content.java index 85b6270..ab2a54e 100644 --- a/src/main/java/com/sun/syndication/feed/rss/Content.java +++ b/src/main/java/com/rometools/rome/feed/rss/Content.java @@ -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. diff --git a/src/main/java/com/sun/syndication/feed/rss/Description.java b/src/main/java/com/rometools/rome/feed/rss/Description.java similarity index 97% rename from src/main/java/com/sun/syndication/feed/rss/Description.java rename to src/main/java/com/rometools/rome/feed/rss/Description.java index 8b175ae..5fc19bb 100644 --- a/src/main/java/com/sun/syndication/feed/rss/Description.java +++ b/src/main/java/com/rometools/rome/feed/rss/Description.java @@ -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. diff --git a/src/main/java/com/sun/syndication/feed/rss/Enclosure.java b/src/main/java/com/rometools/rome/feed/rss/Enclosure.java similarity index 97% rename from src/main/java/com/sun/syndication/feed/rss/Enclosure.java rename to src/main/java/com/rometools/rome/feed/rss/Enclosure.java index dbf4b6d..8e452b9 100644 --- a/src/main/java/com/sun/syndication/feed/rss/Enclosure.java +++ b/src/main/java/com/rometools/rome/feed/rss/Enclosure.java @@ -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. diff --git a/src/main/java/com/sun/syndication/feed/rss/Guid.java b/src/main/java/com/rometools/rome/feed/rss/Guid.java similarity index 97% rename from src/main/java/com/sun/syndication/feed/rss/Guid.java rename to src/main/java/com/rometools/rome/feed/rss/Guid.java index d2f8495..89339c2 100644 --- a/src/main/java/com/sun/syndication/feed/rss/Guid.java +++ b/src/main/java/com/rometools/rome/feed/rss/Guid.java @@ -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. diff --git a/src/main/java/com/sun/syndication/feed/rss/Image.java b/src/main/java/com/rometools/rome/feed/rss/Image.java similarity index 98% rename from src/main/java/com/sun/syndication/feed/rss/Image.java rename to src/main/java/com/rometools/rome/feed/rss/Image.java index 7c80578..4e918ea 100644 --- a/src/main/java/com/sun/syndication/feed/rss/Image.java +++ b/src/main/java/com/rometools/rome/feed/rss/Image.java @@ -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. diff --git a/src/main/java/com/sun/syndication/feed/rss/Item.java b/src/main/java/com/rometools/rome/feed/rss/Item.java similarity index 97% rename from src/main/java/com/sun/syndication/feed/rss/Item.java rename to src/main/java/com/rometools/rome/feed/rss/Item.java index c3c3987..04a5b56 100644 --- a/src/main/java/com/sun/syndication/feed/rss/Item.java +++ b/src/main/java/com/rometools/rome/feed/rss/Item.java @@ -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. diff --git a/src/main/java/com/sun/syndication/feed/rss/Source.java b/src/main/java/com/rometools/rome/feed/rss/Source.java similarity index 97% rename from src/main/java/com/sun/syndication/feed/rss/Source.java rename to src/main/java/com/rometools/rome/feed/rss/Source.java index 65b26a0..2ad1849 100644 --- a/src/main/java/com/sun/syndication/feed/rss/Source.java +++ b/src/main/java/com/rometools/rome/feed/rss/Source.java @@ -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. diff --git a/src/main/java/com/sun/syndication/feed/rss/TextInput.java b/src/main/java/com/rometools/rome/feed/rss/TextInput.java similarity index 98% rename from src/main/java/com/sun/syndication/feed/rss/TextInput.java rename to src/main/java/com/rometools/rome/feed/rss/TextInput.java index 9336f1b..fbc4ecb 100644 --- a/src/main/java/com/sun/syndication/feed/rss/TextInput.java +++ b/src/main/java/com/rometools/rome/feed/rss/TextInput.java @@ -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. diff --git a/src/main/java/com/sun/syndication/feed/synd/Converter.java b/src/main/java/com/rometools/rome/feed/synd/Converter.java similarity index 96% rename from src/main/java/com/sun/syndication/feed/synd/Converter.java rename to src/main/java/com/rometools/rome/feed/synd/Converter.java index f8ba12c..1031fa0 100644 --- a/src/main/java/com/sun/syndication/feed/synd/Converter.java +++ b/src/main/java/com/rometools/rome/feed/synd/Converter.java @@ -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) diff --git a/src/main/java/com/sun/syndication/feed/synd/SyndCategory.java b/src/main/java/com/rometools/rome/feed/synd/SyndCategory.java similarity index 95% rename from src/main/java/com/sun/syndication/feed/synd/SyndCategory.java rename to src/main/java/com/rometools/rome/feed/synd/SyndCategory.java index 6c99951..4a571ab 100644 --- a/src/main/java/com/sun/syndication/feed/synd/SyndCategory.java +++ b/src/main/java/com/rometools/rome/feed/synd/SyndCategory.java @@ -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. diff --git a/src/main/java/com/sun/syndication/feed/synd/SyndCategoryImpl.java b/src/main/java/com/rometools/rome/feed/synd/SyndCategoryImpl.java similarity index 94% rename from src/main/java/com/sun/syndication/feed/synd/SyndCategoryImpl.java rename to src/main/java/com/rometools/rome/feed/synd/SyndCategoryImpl.java index 4659112..8cd09f9 100644 --- a/src/main/java/com/sun/syndication/feed/synd/SyndCategoryImpl.java +++ b/src/main/java/com/rometools/rome/feed/synd/SyndCategoryImpl.java @@ -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. diff --git a/src/main/java/com/sun/syndication/feed/synd/SyndCategoryListFacade.java b/src/main/java/com/rometools/rome/feed/synd/SyndCategoryListFacade.java similarity index 94% rename from src/main/java/com/sun/syndication/feed/synd/SyndCategoryListFacade.java rename to src/main/java/com/rometools/rome/feed/synd/SyndCategoryListFacade.java index 8671bec..310c245 100644 --- a/src/main/java/com/sun/syndication/feed/synd/SyndCategoryListFacade.java +++ b/src/main/java/com/rometools/rome/feed/synd/SyndCategoryListFacade.java @@ -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 diff --git a/src/main/java/com/sun/syndication/feed/synd/SyndContent.java b/src/main/java/com/rometools/rome/feed/synd/SyndContent.java similarity index 96% rename from src/main/java/com/sun/syndication/feed/synd/SyndContent.java rename to src/main/java/com/rometools/rome/feed/synd/SyndContent.java index 677d194..d9619ee 100644 --- a/src/main/java/com/sun/syndication/feed/synd/SyndContent.java +++ b/src/main/java/com/rometools/rome/feed/synd/SyndContent.java @@ -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. diff --git a/src/main/java/com/sun/syndication/feed/synd/SyndContentImpl.java b/src/main/java/com/rometools/rome/feed/synd/SyndContentImpl.java similarity index 96% rename from src/main/java/com/sun/syndication/feed/synd/SyndContentImpl.java rename to src/main/java/com/rometools/rome/feed/synd/SyndContentImpl.java index 873c859..ef32f2d 100644 --- a/src/main/java/com/sun/syndication/feed/synd/SyndContentImpl.java +++ b/src/main/java/com/rometools/rome/feed/synd/SyndContentImpl.java @@ -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. diff --git a/src/main/java/com/sun/syndication/feed/synd/SyndEnclosure.java b/src/main/java/com/rometools/rome/feed/synd/SyndEnclosure.java similarity index 93% rename from src/main/java/com/sun/syndication/feed/synd/SyndEnclosure.java rename to src/main/java/com/rometools/rome/feed/synd/SyndEnclosure.java index 984d858..75484b8 100644 --- a/src/main/java/com/sun/syndication/feed/synd/SyndEnclosure.java +++ b/src/main/java/com/rometools/rome/feed/synd/SyndEnclosure.java @@ -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 diff --git a/src/main/java/com/sun/syndication/feed/synd/SyndEnclosureImpl.java b/src/main/java/com/rometools/rome/feed/synd/SyndEnclosureImpl.java similarity index 95% rename from src/main/java/com/sun/syndication/feed/synd/SyndEnclosureImpl.java rename to src/main/java/com/rometools/rome/feed/synd/SyndEnclosureImpl.java index b86406b..755fc2e 100644 --- a/src/main/java/com/sun/syndication/feed/synd/SyndEnclosureImpl.java +++ b/src/main/java/com/rometools/rome/feed/synd/SyndEnclosureImpl.java @@ -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 diff --git a/src/main/java/com/sun/syndication/feed/synd/SyndEntry.java b/src/main/java/com/rometools/rome/feed/synd/SyndEntry.java similarity index 96% rename from src/main/java/com/sun/syndication/feed/synd/SyndEntry.java rename to src/main/java/com/rometools/rome/feed/synd/SyndEntry.java index 8a2dfa4..3ecbe59 100644 --- a/src/main/java/com/sun/syndication/feed/synd/SyndEntry.java +++ b/src/main/java/com/rometools/rome/feed/synd/SyndEntry.java @@ -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 diff --git a/src/main/java/com/sun/syndication/feed/synd/SyndEntryImpl.java b/src/main/java/com/rometools/rome/feed/synd/SyndEntryImpl.java similarity index 96% rename from src/main/java/com/sun/syndication/feed/synd/SyndEntryImpl.java rename to src/main/java/com/rometools/rome/feed/synd/SyndEntryImpl.java index fcb0041..e489e07 100644 --- a/src/main/java/com/sun/syndication/feed/synd/SyndEntryImpl.java +++ b/src/main/java/com/rometools/rome/feed/synd/SyndEntryImpl.java @@ -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 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 diff --git a/src/main/java/com/sun/syndication/feed/synd/SyndFeed.java b/src/main/java/com/rometools/rome/feed/synd/SyndFeed.java similarity index 98% rename from src/main/java/com/sun/syndication/feed/synd/SyndFeed.java rename to src/main/java/com/rometools/rome/feed/synd/SyndFeed.java index 8b1910f..3d38b1f 100644 --- a/src/main/java/com/sun/syndication/feed/synd/SyndFeed.java +++ b/src/main/java/com/rometools/rome/feed/synd/SyndFeed.java @@ -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. diff --git a/src/main/java/com/sun/syndication/feed/synd/SyndFeedImpl.java b/src/main/java/com/rometools/rome/feed/synd/SyndFeedImpl.java similarity index 97% rename from src/main/java/com/sun/syndication/feed/synd/SyndFeedImpl.java rename to src/main/java/com/rometools/rome/feed/synd/SyndFeedImpl.java index f5898a0..6454a09 100644 --- a/src/main/java/com/sun/syndication/feed/synd/SyndFeedImpl.java +++ b/src/main/java/com/rometools/rome/feed/synd/SyndFeedImpl.java @@ -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. diff --git a/src/main/java/com/sun/syndication/feed/synd/SyndImage.java b/src/main/java/com/rometools/rome/feed/synd/SyndImage.java similarity index 96% rename from src/main/java/com/sun/syndication/feed/synd/SyndImage.java rename to src/main/java/com/rometools/rome/feed/synd/SyndImage.java index bdaeeee..a44d781 100644 --- a/src/main/java/com/sun/syndication/feed/synd/SyndImage.java +++ b/src/main/java/com/rometools/rome/feed/synd/SyndImage.java @@ -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. diff --git a/src/main/java/com/sun/syndication/feed/synd/SyndImageImpl.java b/src/main/java/com/rometools/rome/feed/synd/SyndImageImpl.java similarity index 96% rename from src/main/java/com/sun/syndication/feed/synd/SyndImageImpl.java rename to src/main/java/com/rometools/rome/feed/synd/SyndImageImpl.java index 1027ce9..419a174 100644 --- a/src/main/java/com/sun/syndication/feed/synd/SyndImageImpl.java +++ b/src/main/java/com/rometools/rome/feed/synd/SyndImageImpl.java @@ -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. diff --git a/src/main/java/com/sun/syndication/feed/synd/SyndLink.java b/src/main/java/com/rometools/rome/feed/synd/SyndLink.java similarity index 98% rename from src/main/java/com/sun/syndication/feed/synd/SyndLink.java rename to src/main/java/com/rometools/rome/feed/synd/SyndLink.java index 620ca04..9627a67 100644 --- a/src/main/java/com/sun/syndication/feed/synd/SyndLink.java +++ b/src/main/java/com/rometools/rome/feed/synd/SyndLink.java @@ -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. diff --git a/src/main/java/com/sun/syndication/feed/synd/SyndLinkImpl.java b/src/main/java/com/rometools/rome/feed/synd/SyndLinkImpl.java similarity index 98% rename from src/main/java/com/sun/syndication/feed/synd/SyndLinkImpl.java rename to src/main/java/com/rometools/rome/feed/synd/SyndLinkImpl.java index 15e6644..55ce061 100644 --- a/src/main/java/com/sun/syndication/feed/synd/SyndLinkImpl.java +++ b/src/main/java/com/rometools/rome/feed/synd/SyndLinkImpl.java @@ -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. diff --git a/src/main/java/com/sun/syndication/feed/synd/SyndPerson.java b/src/main/java/com/rometools/rome/feed/synd/SyndPerson.java similarity index 94% rename from src/main/java/com/sun/syndication/feed/synd/SyndPerson.java rename to src/main/java/com/rometools/rome/feed/synd/SyndPerson.java index ff24df3..271f335 100644 --- a/src/main/java/com/sun/syndication/feed/synd/SyndPerson.java +++ b/src/main/java/com/rometools/rome/feed/synd/SyndPerson.java @@ -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. diff --git a/src/main/java/com/sun/syndication/feed/synd/SyndPersonImpl.java b/src/main/java/com/rometools/rome/feed/synd/SyndPersonImpl.java similarity index 96% rename from src/main/java/com/sun/syndication/feed/synd/SyndPersonImpl.java rename to src/main/java/com/rometools/rome/feed/synd/SyndPersonImpl.java index 035a275..ae1598e 100644 --- a/src/main/java/com/sun/syndication/feed/synd/SyndPersonImpl.java +++ b/src/main/java/com/rometools/rome/feed/synd/SyndPersonImpl.java @@ -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. diff --git a/src/main/java/com/sun/syndication/feed/synd/impl/ConverterForAtom03.java b/src/main/java/com/rometools/rome/feed/synd/impl/ConverterForAtom03.java similarity index 94% rename from src/main/java/com/sun/syndication/feed/synd/impl/ConverterForAtom03.java rename to src/main/java/com/rometools/rome/feed/synd/impl/ConverterForAtom03.java index b54104b..52ed7da 100644 --- a/src/main/java/com/sun/syndication/feed/synd/impl/ConverterForAtom03.java +++ b/src/main/java/com/rometools/rome/feed/synd/impl/ConverterForAtom03.java @@ -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; /** */ diff --git a/src/main/java/com/sun/syndication/feed/synd/impl/ConverterForAtom10.java b/src/main/java/com/rometools/rome/feed/synd/impl/ConverterForAtom10.java similarity index 94% rename from src/main/java/com/sun/syndication/feed/synd/impl/ConverterForAtom10.java rename to src/main/java/com/rometools/rome/feed/synd/impl/ConverterForAtom10.java index d055564..c7537f5 100644 --- a/src/main/java/com/sun/syndication/feed/synd/impl/ConverterForAtom10.java +++ b/src/main/java/com/rometools/rome/feed/synd/impl/ConverterForAtom10.java @@ -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; /** */ diff --git a/src/main/java/com/sun/syndication/feed/synd/impl/ConverterForRSS090.java b/src/main/java/com/rometools/rome/feed/synd/impl/ConverterForRSS090.java similarity index 90% rename from src/main/java/com/sun/syndication/feed/synd/impl/ConverterForRSS090.java rename to src/main/java/com/rometools/rome/feed/synd/impl/ConverterForRSS090.java index e71bbab..cf9aed1 100644 --- a/src/main/java/com/sun/syndication/feed/synd/impl/ConverterForRSS090.java +++ b/src/main/java/com/rometools/rome/feed/synd/impl/ConverterForRSS090.java @@ -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; /** */ diff --git a/src/main/java/com/sun/syndication/feed/synd/impl/ConverterForRSS091Netscape.java b/src/main/java/com/rometools/rome/feed/synd/impl/ConverterForRSS091Netscape.java similarity index 95% rename from src/main/java/com/sun/syndication/feed/synd/impl/ConverterForRSS091Netscape.java rename to src/main/java/com/rometools/rome/feed/synd/impl/ConverterForRSS091Netscape.java index 48e2e48..3f8bfef 100644 --- a/src/main/java/com/sun/syndication/feed/synd/impl/ConverterForRSS091Netscape.java +++ b/src/main/java/com/rometools/rome/feed/synd/impl/ConverterForRSS091Netscape.java @@ -14,7 +14,7 @@ * limitations under the License. * */ -package com.sun.syndication.feed.synd.impl; +package com.rometools.rome.feed.synd.impl; /** */ diff --git a/src/main/java/com/sun/syndication/feed/synd/impl/ConverterForRSS091Userland.java b/src/main/java/com/rometools/rome/feed/synd/impl/ConverterForRSS091Userland.java similarity index 89% rename from src/main/java/com/sun/syndication/feed/synd/impl/ConverterForRSS091Userland.java rename to src/main/java/com/rometools/rome/feed/synd/impl/ConverterForRSS091Userland.java index 2f41c14..5366eef 100644 --- a/src/main/java/com/sun/syndication/feed/synd/impl/ConverterForRSS091Userland.java +++ b/src/main/java/com/rometools/rome/feed/synd/impl/ConverterForRSS091Userland.java @@ -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 { diff --git a/src/main/java/com/sun/syndication/feed/synd/impl/ConverterForRSS092.java b/src/main/java/com/rometools/rome/feed/synd/impl/ConverterForRSS092.java similarity index 90% rename from src/main/java/com/sun/syndication/feed/synd/impl/ConverterForRSS092.java rename to src/main/java/com/rometools/rome/feed/synd/impl/ConverterForRSS092.java index ff41d99..65e148a 100644 --- a/src/main/java/com/sun/syndication/feed/synd/impl/ConverterForRSS092.java +++ b/src/main/java/com/rometools/rome/feed/synd/impl/ConverterForRSS092.java @@ -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; /** */ diff --git a/src/main/java/com/sun/syndication/feed/synd/impl/ConverterForRSS093.java b/src/main/java/com/rometools/rome/feed/synd/impl/ConverterForRSS093.java similarity index 91% rename from src/main/java/com/sun/syndication/feed/synd/impl/ConverterForRSS093.java rename to src/main/java/com/rometools/rome/feed/synd/impl/ConverterForRSS093.java index c5fdf44..01b2126 100644 --- a/src/main/java/com/sun/syndication/feed/synd/impl/ConverterForRSS093.java +++ b/src/main/java/com/rometools/rome/feed/synd/impl/ConverterForRSS093.java @@ -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 { diff --git a/src/main/java/com/sun/syndication/feed/synd/impl/ConverterForRSS094.java b/src/main/java/com/rometools/rome/feed/synd/impl/ConverterForRSS094.java similarity index 88% rename from src/main/java/com/sun/syndication/feed/synd/impl/ConverterForRSS094.java rename to src/main/java/com/rometools/rome/feed/synd/impl/ConverterForRSS094.java index d1ca318..e97d2d4 100644 --- a/src/main/java/com/sun/syndication/feed/synd/impl/ConverterForRSS094.java +++ b/src/main/java/com/rometools/rome/feed/synd/impl/ConverterForRSS094.java @@ -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 { diff --git a/src/main/java/com/sun/syndication/feed/synd/impl/ConverterForRSS10.java b/src/main/java/com/rometools/rome/feed/synd/impl/ConverterForRSS10.java similarity index 89% rename from src/main/java/com/sun/syndication/feed/synd/impl/ConverterForRSS10.java rename to src/main/java/com/rometools/rome/feed/synd/impl/ConverterForRSS10.java index 87330e2..708162f 100644 --- a/src/main/java/com/sun/syndication/feed/synd/impl/ConverterForRSS10.java +++ b/src/main/java/com/rometools/rome/feed/synd/impl/ConverterForRSS10.java @@ -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 { diff --git a/src/main/java/com/sun/syndication/feed/synd/impl/ConverterForRSS20.java b/src/main/java/com/rometools/rome/feed/synd/impl/ConverterForRSS20.java similarity index 94% rename from src/main/java/com/sun/syndication/feed/synd/impl/ConverterForRSS20.java rename to src/main/java/com/rometools/rome/feed/synd/impl/ConverterForRSS20.java index c72e5b6..2ecfad1 100644 --- a/src/main/java/com/sun/syndication/feed/synd/impl/ConverterForRSS20.java +++ b/src/main/java/com/rometools/rome/feed/synd/impl/ConverterForRSS20.java @@ -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 { diff --git a/src/main/java/com/sun/syndication/feed/synd/impl/Converters.java b/src/main/java/com/rometools/rome/feed/synd/impl/Converters.java similarity index 90% rename from src/main/java/com/sun/syndication/feed/synd/impl/Converters.java rename to src/main/java/com/rometools/rome/feed/synd/impl/Converters.java index 9798c7d..4d41d9a 100644 --- a/src/main/java/com/sun/syndication/feed/synd/impl/Converters.java +++ b/src/main/java/com/rometools/rome/feed/synd/impl/Converters.java @@ -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 diff --git a/src/main/java/com/sun/syndication/feed/synd/impl/URINormalizer.java b/src/main/java/com/rometools/rome/feed/synd/impl/URINormalizer.java similarity index 93% rename from src/main/java/com/sun/syndication/feed/synd/impl/URINormalizer.java rename to src/main/java/com/rometools/rome/feed/synd/impl/URINormalizer.java index 9b1a852..0cfe3ff 100644 --- a/src/main/java/com/sun/syndication/feed/synd/impl/URINormalizer.java +++ b/src/main/java/com/rometools/rome/feed/synd/impl/URINormalizer.java @@ -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. diff --git a/src/main/java/com/sun/syndication/io/DelegatingModuleGenerator.java b/src/main/java/com/rometools/rome/io/DelegatingModuleGenerator.java similarity index 94% rename from src/main/java/com/sun/syndication/io/DelegatingModuleGenerator.java rename to src/main/java/com/rometools/rome/io/DelegatingModuleGenerator.java index b726655..e4d61ca 100644 --- a/src/main/java/com/sun/syndication/io/DelegatingModuleGenerator.java +++ b/src/main/java/com/rometools/rome/io/DelegatingModuleGenerator.java @@ -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 diff --git a/src/main/java/com/sun/syndication/io/DelegatingModuleParser.java b/src/main/java/com/rometools/rome/io/DelegatingModuleParser.java similarity index 94% rename from src/main/java/com/sun/syndication/io/DelegatingModuleParser.java rename to src/main/java/com/rometools/rome/io/DelegatingModuleParser.java index b925a42..34040f4 100644 --- a/src/main/java/com/sun/syndication/io/DelegatingModuleParser.java +++ b/src/main/java/com/rometools/rome/io/DelegatingModuleParser.java @@ -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 diff --git a/src/main/java/com/sun/syndication/io/FeedException.java b/src/main/java/com/rometools/rome/io/FeedException.java similarity index 97% rename from src/main/java/com/sun/syndication/io/FeedException.java rename to src/main/java/com/rometools/rome/io/FeedException.java index 19dcc86..10b6574 100644 --- a/src/main/java/com/sun/syndication/io/FeedException.java +++ b/src/main/java/com/rometools/rome/io/FeedException.java @@ -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 diff --git a/src/main/java/com/sun/syndication/io/ModuleGenerator.java b/src/main/java/com/rometools/rome/io/ModuleGenerator.java similarity index 96% rename from src/main/java/com/sun/syndication/io/ModuleGenerator.java rename to src/main/java/com/rometools/rome/io/ModuleGenerator.java index 38e2342..da25d21 100644 --- a/src/main/java/com/sun/syndication/io/ModuleGenerator.java +++ b/src/main/java/com/rometools/rome/io/ModuleGenerator.java @@ -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). diff --git a/src/main/java/com/sun/syndication/io/ModuleParser.java b/src/main/java/com/rometools/rome/io/ModuleParser.java similarity index 94% rename from src/main/java/com/sun/syndication/io/ModuleParser.java rename to src/main/java/com/rometools/rome/io/ModuleParser.java index 5d49827..740ca18 100644 --- a/src/main/java/com/sun/syndication/io/ModuleParser.java +++ b/src/main/java/com/rometools/rome/io/ModuleParser.java @@ -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). diff --git a/src/main/java/com/sun/syndication/io/ParsingFeedException.java b/src/main/java/com/rometools/rome/io/ParsingFeedException.java similarity index 98% rename from src/main/java/com/sun/syndication/io/ParsingFeedException.java rename to src/main/java/com/rometools/rome/io/ParsingFeedException.java index af2982c..9fd9679 100644 --- a/src/main/java/com/sun/syndication/io/ParsingFeedException.java +++ b/src/main/java/com/rometools/rome/io/ParsingFeedException.java @@ -14,7 +14,7 @@ * limitations under the License. * */ -package com.sun.syndication.io; +package com.rometools.rome.io; import org.jdom2.input.JDOMParseException; diff --git a/src/main/java/com/sun/syndication/io/SAXBuilder.java b/src/main/java/com/rometools/rome/io/SAXBuilder.java similarity index 97% rename from src/main/java/com/sun/syndication/io/SAXBuilder.java rename to src/main/java/com/rometools/rome/io/SAXBuilder.java index 0ec8078..2f6152e 100644 --- a/src/main/java/com/sun/syndication/io/SAXBuilder.java +++ b/src/main/java/com/rometools/rome/io/SAXBuilder.java @@ -1,4 +1,4 @@ -package com.sun.syndication.io; +package com.rometools.rome.io; import org.jdom2.JDOMException; import org.jdom2.input.sax.XMLReaderJDOMFactory; diff --git a/src/main/java/com/sun/syndication/io/SyndFeedInput.java b/src/main/java/com/rometools/rome/io/SyndFeedInput.java similarity index 98% rename from src/main/java/com/sun/syndication/io/SyndFeedInput.java rename to src/main/java/com/rometools/rome/io/SyndFeedInput.java index 0c810a0..dc68ce4 100644 --- a/src/main/java/com/sun/syndication/io/SyndFeedInput.java +++ b/src/main/java/com/rometools/rome/io/SyndFeedInput.java @@ -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 diff --git a/src/main/java/com/sun/syndication/io/SyndFeedOutput.java b/src/main/java/com/rometools/rome/io/SyndFeedOutput.java similarity index 99% rename from src/main/java/com/sun/syndication/io/SyndFeedOutput.java rename to src/main/java/com/rometools/rome/io/SyndFeedOutput.java index ecf243e..04039f3 100644 --- a/src/main/java/com/sun/syndication/io/SyndFeedOutput.java +++ b/src/main/java/com/rometools/rome/io/SyndFeedOutput.java @@ -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) diff --git a/src/main/java/com/sun/syndication/io/WireFeedGenerator.java b/src/main/java/com/rometools/rome/io/WireFeedGenerator.java similarity index 95% rename from src/main/java/com/sun/syndication/io/WireFeedGenerator.java rename to src/main/java/com/rometools/rome/io/WireFeedGenerator.java index 0af0308..0baf4c1 100644 --- a/src/main/java/com/sun/syndication/io/WireFeedGenerator.java +++ b/src/main/java/com/rometools/rome/io/WireFeedGenerator.java @@ -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. diff --git a/src/main/java/com/sun/syndication/io/WireFeedInput.java b/src/main/java/com/rometools/rome/io/WireFeedInput.java similarity index 98% rename from src/main/java/com/sun/syndication/io/WireFeedInput.java rename to src/main/java/com/rometools/rome/io/WireFeedInput.java index 4e1ebf4..6825309 100644 --- a/src/main/java/com/sun/syndication/io/WireFeedInput.java +++ b/src/main/java/com/rometools/rome/io/WireFeedInput.java @@ -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 diff --git a/src/main/java/com/sun/syndication/io/WireFeedOutput.java b/src/main/java/com/rometools/rome/io/WireFeedOutput.java similarity index 98% rename from src/main/java/com/sun/syndication/io/WireFeedOutput.java rename to src/main/java/com/rometools/rome/io/WireFeedOutput.java index 29e14b0..0096c24 100644 --- a/src/main/java/com/sun/syndication/io/WireFeedOutput.java +++ b/src/main/java/com/rometools/rome/io/WireFeedOutput.java @@ -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) diff --git a/src/main/java/com/sun/syndication/io/WireFeedParser.java b/src/main/java/com/rometools/rome/io/WireFeedParser.java similarity index 96% rename from src/main/java/com/sun/syndication/io/WireFeedParser.java rename to src/main/java/com/rometools/rome/io/WireFeedParser.java index 20d4269..10cf32e 100644 --- a/src/main/java/com/sun/syndication/io/WireFeedParser.java +++ b/src/main/java/com/rometools/rome/io/WireFeedParser.java @@ -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. diff --git a/src/main/java/com/sun/syndication/io/XmlReader.java b/src/main/java/com/rometools/rome/io/XmlReader.java similarity index 99% rename from src/main/java/com/sun/syndication/io/XmlReader.java rename to src/main/java/com/rometools/rome/io/XmlReader.java index 3aa8a5c..511aa1f 100644 --- a/src/main/java/com/sun/syndication/io/XmlReader.java +++ b/src/main/java/com/rometools/rome/io/XmlReader.java @@ -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; diff --git a/src/main/java/com/sun/syndication/io/XmlReaderException.java b/src/main/java/com/rometools/rome/io/XmlReaderException.java similarity index 99% rename from src/main/java/com/sun/syndication/io/XmlReaderException.java rename to src/main/java/com/rometools/rome/io/XmlReaderException.java index 4a1fae5..14c1320 100644 --- a/src/main/java/com/sun/syndication/io/XmlReaderException.java +++ b/src/main/java/com/rometools/rome/io/XmlReaderException.java @@ -1,4 +1,4 @@ -package com.sun.syndication.io; +package com.rometools.rome.io; import java.io.IOException; import java.io.InputStream; diff --git a/src/main/java/com/sun/syndication/io/impl/Atom03Generator.java b/src/main/java/com/rometools/rome/io/impl/Atom03Generator.java similarity index 97% rename from src/main/java/com/sun/syndication/io/impl/Atom03Generator.java rename to src/main/java/com/rometools/rome/io/impl/Atom03Generator.java index 09fb028..b41c06d 100644 --- a/src/main/java/com/sun/syndication/io/impl/Atom03Generator.java +++ b/src/main/java/com/rometools/rome/io/impl/Atom03Generator.java @@ -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 diff --git a/src/main/java/com/sun/syndication/io/impl/Atom03Parser.java b/src/main/java/com/rometools/rome/io/impl/Atom03Parser.java similarity index 96% rename from src/main/java/com/sun/syndication/io/impl/Atom03Parser.java rename to src/main/java/com/rometools/rome/io/impl/Atom03Parser.java index 9e127d2..9726f33 100644 --- a/src/main/java/com/sun/syndication/io/impl/Atom03Parser.java +++ b/src/main/java/com/rometools/rome/io/impl/Atom03Parser.java @@ -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 { diff --git a/src/main/java/com/sun/syndication/io/impl/Atom10Generator.java b/src/main/java/com/rometools/rome/io/impl/Atom10Generator.java similarity index 97% rename from src/main/java/com/sun/syndication/io/impl/Atom10Generator.java rename to src/main/java/com/rometools/rome/io/impl/Atom10Generator.java index 6087a70..3cced0c 100644 --- a/src/main/java/com/sun/syndication/io/impl/Atom10Generator.java +++ b/src/main/java/com/rometools/rome/io/impl/Atom10Generator.java @@ -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 diff --git a/src/main/java/com/sun/syndication/io/impl/Atom10Parser.java b/src/main/java/com/rometools/rome/io/impl/Atom10Parser.java similarity index 97% rename from src/main/java/com/sun/syndication/io/impl/Atom10Parser.java rename to src/main/java/com/rometools/rome/io/impl/Atom10Parser.java index 47c149c..6ba9537 100644 --- a/src/main/java/com/sun/syndication/io/impl/Atom10Parser.java +++ b/src/main/java/com/rometools/rome/io/impl/Atom10Parser.java @@ -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) { diff --git a/src/main/java/com/sun/syndication/io/impl/Base64.java b/src/main/java/com/rometools/rome/io/impl/Base64.java similarity index 95% rename from src/main/java/com/sun/syndication/io/impl/Base64.java rename to src/main/java/com/rometools/rome/io/impl/Base64.java index 43d1e44..4c1dd59 100644 --- a/src/main/java/com/sun/syndication/io/impl/Base64.java +++ b/src/main/java/com/rometools/rome/io/impl/Base64.java @@ -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. *

* * @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]]; diff --git a/src/main/java/com/sun/syndication/io/impl/BaseWireFeedGenerator.java b/src/main/java/com/rometools/rome/io/impl/BaseWireFeedGenerator.java similarity index 97% rename from src/main/java/com/sun/syndication/io/impl/BaseWireFeedGenerator.java rename to src/main/java/com/rometools/rome/io/impl/BaseWireFeedGenerator.java index b93ec8c..7340784 100644 --- a/src/main/java/com/sun/syndication/io/impl/BaseWireFeedGenerator.java +++ b/src/main/java/com/rometools/rome/io/impl/BaseWireFeedGenerator.java @@ -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 diff --git a/src/main/java/com/sun/syndication/io/impl/BaseWireFeedParser.java b/src/main/java/com/rometools/rome/io/impl/BaseWireFeedParser.java similarity index 95% rename from src/main/java/com/sun/syndication/io/impl/BaseWireFeedParser.java rename to src/main/java/com/rometools/rome/io/impl/BaseWireFeedParser.java index f5ce650..0ce5631 100644 --- a/src/main/java/com/sun/syndication/io/impl/BaseWireFeedParser.java +++ b/src/main/java/com/rometools/rome/io/impl/BaseWireFeedParser.java @@ -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 diff --git a/src/main/java/com/sun/syndication/io/impl/DCModuleGenerator.java b/src/main/java/com/rometools/rome/io/impl/DCModuleGenerator.java similarity index 97% rename from src/main/java/com/sun/syndication/io/impl/DCModuleGenerator.java rename to src/main/java/com/rometools/rome/io/impl/DCModuleGenerator.java index c5f2afa..b2d153b 100644 --- a/src/main/java/com/sun/syndication/io/impl/DCModuleGenerator.java +++ b/src/main/java/com/rometools/rome/io/impl/DCModuleGenerator.java @@ -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. diff --git a/src/main/java/com/sun/syndication/io/impl/DCModuleParser.java b/src/main/java/com/rometools/rome/io/impl/DCModuleParser.java similarity index 96% rename from src/main/java/com/sun/syndication/io/impl/DCModuleParser.java rename to src/main/java/com/rometools/rome/io/impl/DCModuleParser.java index 038eb90..5e39abd 100644 --- a/src/main/java/com/sun/syndication/io/impl/DCModuleParser.java +++ b/src/main/java/com/rometools/rome/io/impl/DCModuleParser.java @@ -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. diff --git a/src/main/java/com/sun/syndication/io/impl/DateParser.java b/src/main/java/com/rometools/rome/io/impl/DateParser.java similarity index 99% rename from src/main/java/com/sun/syndication/io/impl/DateParser.java rename to src/main/java/com/rometools/rome/io/impl/DateParser.java index 5e360f0..610e6ff 100644 --- a/src/main/java/com/sun/syndication/io/impl/DateParser.java +++ b/src/main/java/com/rometools/rome/io/impl/DateParser.java @@ -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; diff --git a/src/main/java/com/sun/syndication/io/impl/FeedGenerators.java b/src/main/java/com/rometools/rome/io/impl/FeedGenerators.java similarity index 95% rename from src/main/java/com/sun/syndication/io/impl/FeedGenerators.java rename to src/main/java/com/rometools/rome/io/impl/FeedGenerators.java index 1da96e6..d3ef77a 100644 --- a/src/main/java/com/sun/syndication/io/impl/FeedGenerators.java +++ b/src/main/java/com/rometools/rome/io/impl/FeedGenerators.java @@ -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. diff --git a/src/main/java/com/sun/syndication/io/impl/FeedParsers.java b/src/main/java/com/rometools/rome/io/impl/FeedParsers.java similarity index 96% rename from src/main/java/com/sun/syndication/io/impl/FeedParsers.java rename to src/main/java/com/rometools/rome/io/impl/FeedParsers.java index 51d5800..2a8c97d 100644 --- a/src/main/java/com/sun/syndication/io/impl/FeedParsers.java +++ b/src/main/java/com/rometools/rome/io/impl/FeedParsers.java @@ -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. diff --git a/src/main/java/com/sun/syndication/io/impl/ModuleGenerators.java b/src/main/java/com/rometools/rome/io/impl/ModuleGenerators.java similarity index 94% rename from src/main/java/com/sun/syndication/io/impl/ModuleGenerators.java rename to src/main/java/com/rometools/rome/io/impl/ModuleGenerators.java index c498efd..e344b8a 100644 --- a/src/main/java/com/sun/syndication/io/impl/ModuleGenerators.java +++ b/src/main/java/com/rometools/rome/io/impl/ModuleGenerators.java @@ -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 { diff --git a/src/main/java/com/sun/syndication/io/impl/ModuleParsers.java b/src/main/java/com/rometools/rome/io/impl/ModuleParsers.java similarity index 92% rename from src/main/java/com/sun/syndication/io/impl/ModuleParsers.java rename to src/main/java/com/rometools/rome/io/impl/ModuleParsers.java index 2e658a9..2084fd5 100644 --- a/src/main/java/com/sun/syndication/io/impl/ModuleParsers.java +++ b/src/main/java/com/rometools/rome/io/impl/ModuleParsers.java @@ -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; /** */ diff --git a/src/main/java/com/sun/syndication/io/impl/NumberParser.java b/src/main/java/com/rometools/rome/io/impl/NumberParser.java similarity index 98% rename from src/main/java/com/sun/syndication/io/impl/NumberParser.java rename to src/main/java/com/rometools/rome/io/impl/NumberParser.java index ea1f16c..8a297e3 100644 --- a/src/main/java/com/sun/syndication/io/impl/NumberParser.java +++ b/src/main/java/com/rometools/rome/io/impl/NumberParser.java @@ -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. diff --git a/src/main/java/com/sun/syndication/io/impl/PluginManager.java b/src/main/java/com/rometools/rome/io/impl/PluginManager.java similarity index 94% rename from src/main/java/com/sun/syndication/io/impl/PluginManager.java rename to src/main/java/com/rometools/rome/io/impl/PluginManager.java index ac14525..a13ba08 100644 --- a/src/main/java/com/sun/syndication/io/impl/PluginManager.java +++ b/src/main/java/com/rometools/rome/io/impl/PluginManager.java @@ -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; /** *

diff --git a/src/main/java/com/rometools/rome/io/impl/PropertiesLoader.java b/src/main/java/com/rometools/rome/io/impl/PropertiesLoader.java new file mode 100644 index 0000000..e586a2e --- /dev/null +++ b/src/main/java/com/rometools/rome/io/impl/PropertiesLoader.java @@ -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. + *

+ * 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. + *

+ * 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(). + *

+ * + * @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 clMap = new WeakHashMap(); + + /** + * 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. + *

+ * + * @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 propertiesList = new ArrayList(); + 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 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. + *

+ * + * @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 entriesList = new ArrayList(); + 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. + *

+ * + * @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 entriesList = new ArrayList(); + 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; + } + +} diff --git a/src/main/java/com/sun/syndication/io/impl/RSS090Generator.java b/src/main/java/com/rometools/rome/io/impl/RSS090Generator.java similarity index 97% rename from src/main/java/com/sun/syndication/io/impl/RSS090Generator.java rename to src/main/java/com/rometools/rome/io/impl/RSS090Generator.java index c1dcfca..59928a2 100644 --- a/src/main/java/com/sun/syndication/io/impl/RSS090Generator.java +++ b/src/main/java/com/rometools/rome/io/impl/RSS090Generator.java @@ -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 diff --git a/src/main/java/com/sun/syndication/io/impl/RSS090Parser.java b/src/main/java/com/rometools/rome/io/impl/RSS090Parser.java similarity index 97% rename from src/main/java/com/sun/syndication/io/impl/RSS090Parser.java rename to src/main/java/com/rometools/rome/io/impl/RSS090Parser.java index 1c331f3..22dd6c6 100644 --- a/src/main/java/com/sun/syndication/io/impl/RSS090Parser.java +++ b/src/main/java/com/rometools/rome/io/impl/RSS090Parser.java @@ -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.Iterator; @@ -25,13 +25,13 @@ import org.jdom2.Document; import org.jdom2.Element; import org.jdom2.Namespace; -import com.sun.syndication.feed.WireFeed; -import com.sun.syndication.feed.module.Module; -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.module.Module; +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; /** */ diff --git a/src/main/java/com/sun/syndication/io/impl/RSS091NetscapeGenerator.java b/src/main/java/com/rometools/rome/io/impl/RSS091NetscapeGenerator.java similarity index 97% rename from src/main/java/com/sun/syndication/io/impl/RSS091NetscapeGenerator.java rename to src/main/java/com/rometools/rome/io/impl/RSS091NetscapeGenerator.java index bf79eb5..e32d3c3 100644 --- a/src/main/java/com/sun/syndication/io/impl/RSS091NetscapeGenerator.java +++ b/src/main/java/com/rometools/rome/io/impl/RSS091NetscapeGenerator.java @@ -14,7 +14,7 @@ * limitations under the License. * */ -package com.sun.syndication.io.impl; +package com.rometools.rome.io.impl; import org.jdom2.DocType; import org.jdom2.Document; diff --git a/src/main/java/com/sun/syndication/io/impl/RSS091NetscapeParser.java b/src/main/java/com/rometools/rome/io/impl/RSS091NetscapeParser.java similarity index 98% rename from src/main/java/com/sun/syndication/io/impl/RSS091NetscapeParser.java rename to src/main/java/com/rometools/rome/io/impl/RSS091NetscapeParser.java index b02eb9e..4a6bccd 100644 --- a/src/main/java/com/sun/syndication/io/impl/RSS091NetscapeParser.java +++ b/src/main/java/com/rometools/rome/io/impl/RSS091NetscapeParser.java @@ -14,7 +14,7 @@ * limitations under the License. * */ -package com.sun.syndication.io.impl; +package com.rometools.rome.io.impl; import org.jdom2.Attribute; import org.jdom2.DocType; diff --git a/src/main/java/com/sun/syndication/io/impl/RSS091UserlandGenerator.java b/src/main/java/com/rometools/rome/io/impl/RSS091UserlandGenerator.java similarity index 96% rename from src/main/java/com/sun/syndication/io/impl/RSS091UserlandGenerator.java rename to src/main/java/com/rometools/rome/io/impl/RSS091UserlandGenerator.java index 28dd7c3..2ade280 100644 --- a/src/main/java/com/sun/syndication/io/impl/RSS091UserlandGenerator.java +++ b/src/main/java/com/rometools/rome/io/impl/RSS091UserlandGenerator.java @@ -14,7 +14,7 @@ * limitations under the License. * */ -package com.sun.syndication.io.impl; +package com.rometools.rome.io.impl; import java.util.Date; import java.util.List; @@ -25,12 +25,12 @@ import org.jdom2.Document; import org.jdom2.Element; import org.jdom2.Namespace; -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.io.FeedException; +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.io.FeedException; /** * Feed Generator for RSS 0.91 diff --git a/src/main/java/com/sun/syndication/io/impl/RSS091UserlandParser.java b/src/main/java/com/rometools/rome/io/impl/RSS091UserlandParser.java similarity index 96% rename from src/main/java/com/sun/syndication/io/impl/RSS091UserlandParser.java rename to src/main/java/com/rometools/rome/io/impl/RSS091UserlandParser.java index 6b26f73..5899568 100644 --- a/src/main/java/com/sun/syndication/io/impl/RSS091UserlandParser.java +++ b/src/main/java/com/rometools/rome/io/impl/RSS091UserlandParser.java @@ -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; @@ -26,12 +26,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.Content; -import com.sun.syndication.feed.rss.Description; -import com.sun.syndication.feed.rss.Image; -import com.sun.syndication.feed.rss.Item; +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.Image; +import com.rometools.rome.feed.rss.Item; /** */ diff --git a/src/main/java/com/sun/syndication/io/impl/RSS092Generator.java b/src/main/java/com/rometools/rome/io/impl/RSS092Generator.java similarity index 94% rename from src/main/java/com/sun/syndication/io/impl/RSS092Generator.java rename to src/main/java/com/rometools/rome/io/impl/RSS092Generator.java index b986a8d..5dc187c 100644 --- a/src/main/java/com/sun/syndication/io/impl/RSS092Generator.java +++ b/src/main/java/com/rometools/rome/io/impl/RSS092Generator.java @@ -14,20 +14,20 @@ * limitations under the License. * */ -package com.sun.syndication.io.impl; +package com.rometools.rome.io.impl; import java.util.List; import org.jdom2.Attribute; import org.jdom2.Element; -import com.sun.syndication.feed.rss.Category; -import com.sun.syndication.feed.rss.Channel; -import com.sun.syndication.feed.rss.Cloud; -import com.sun.syndication.feed.rss.Enclosure; -import com.sun.syndication.feed.rss.Item; -import com.sun.syndication.feed.rss.Source; -import com.sun.syndication.io.FeedException; +import com.rometools.rome.feed.rss.Category; +import com.rometools.rome.feed.rss.Channel; +import com.rometools.rome.feed.rss.Cloud; +import com.rometools.rome.feed.rss.Enclosure; +import com.rometools.rome.feed.rss.Item; +import com.rometools.rome.feed.rss.Source; +import com.rometools.rome.io.FeedException; /** * Feed Generator for RSS 0.92 diff --git a/src/main/java/com/sun/syndication/io/impl/RSS092Parser.java b/src/main/java/com/rometools/rome/io/impl/RSS092Parser.java similarity index 94% rename from src/main/java/com/sun/syndication/io/impl/RSS092Parser.java rename to src/main/java/com/rometools/rome/io/impl/RSS092Parser.java index 336f606..9fff6cf 100644 --- a/src/main/java/com/sun/syndication/io/impl/RSS092Parser.java +++ b/src/main/java/com/rometools/rome/io/impl/RSS092Parser.java @@ -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; @@ -26,14 +26,14 @@ import org.jdom2.output.XMLOutputter; import org.slf4j.Logger; import org.slf4j.LoggerFactory; -import com.sun.syndication.feed.WireFeed; -import com.sun.syndication.feed.rss.Category; -import com.sun.syndication.feed.rss.Channel; -import com.sun.syndication.feed.rss.Cloud; -import com.sun.syndication.feed.rss.Description; -import com.sun.syndication.feed.rss.Enclosure; -import com.sun.syndication.feed.rss.Item; -import com.sun.syndication.feed.rss.Source; +import com.rometools.rome.feed.WireFeed; +import com.rometools.rome.feed.rss.Category; +import com.rometools.rome.feed.rss.Channel; +import com.rometools.rome.feed.rss.Cloud; +import com.rometools.rome.feed.rss.Description; +import com.rometools.rome.feed.rss.Enclosure; +import com.rometools.rome.feed.rss.Item; +import com.rometools.rome.feed.rss.Source; /** */ diff --git a/src/main/java/com/sun/syndication/io/impl/RSS093Generator.java b/src/main/java/com/rometools/rome/io/impl/RSS093Generator.java similarity index 93% rename from src/main/java/com/sun/syndication/io/impl/RSS093Generator.java rename to src/main/java/com/rometools/rome/io/impl/RSS093Generator.java index 0590455..03830f8 100644 --- a/src/main/java/com/sun/syndication/io/impl/RSS093Generator.java +++ b/src/main/java/com/rometools/rome/io/impl/RSS093Generator.java @@ -14,7 +14,7 @@ * limitations under the License. * */ -package com.sun.syndication.io.impl; +package com.rometools.rome.io.impl; import java.util.Date; import java.util.List; @@ -22,8 +22,8 @@ import java.util.Locale; import org.jdom2.Element; -import com.sun.syndication.feed.rss.Enclosure; -import com.sun.syndication.feed.rss.Item; +import com.rometools.rome.feed.rss.Enclosure; +import com.rometools.rome.feed.rss.Item; /** * Feed Generator for RSS 0.93 diff --git a/src/main/java/com/sun/syndication/io/impl/RSS093Parser.java b/src/main/java/com/rometools/rome/io/impl/RSS093Parser.java similarity index 95% rename from src/main/java/com/sun/syndication/io/impl/RSS093Parser.java rename to src/main/java/com/rometools/rome/io/impl/RSS093Parser.java index 9a41697..2748e56 100644 --- a/src/main/java/com/sun/syndication/io/impl/RSS093Parser.java +++ b/src/main/java/com/rometools/rome/io/impl/RSS093Parser.java @@ -14,13 +14,13 @@ * limitations under the License. * */ -package com.sun.syndication.io.impl; +package com.rometools.rome.io.impl; import java.util.Locale; import org.jdom2.Element; -import com.sun.syndication.feed.rss.Item; +import com.rometools.rome.feed.rss.Item; /** */ diff --git a/src/main/java/com/sun/syndication/io/impl/RSS094Generator.java b/src/main/java/com/rometools/rome/io/impl/RSS094Generator.java similarity index 92% rename from src/main/java/com/sun/syndication/io/impl/RSS094Generator.java rename to src/main/java/com/rometools/rome/io/impl/RSS094Generator.java index e13647c..5957b68 100644 --- a/src/main/java/com/sun/syndication/io/impl/RSS094Generator.java +++ b/src/main/java/com/rometools/rome/io/impl/RSS094Generator.java @@ -14,13 +14,13 @@ * limitations under the License. * */ -package com.sun.syndication.io.impl; +package com.rometools.rome.io.impl; import org.jdom2.Attribute; import org.jdom2.Element; -import com.sun.syndication.feed.rss.Description; -import com.sun.syndication.feed.rss.Item; +import com.rometools.rome.feed.rss.Description; +import com.rometools.rome.feed.rss.Item; /** * Feed Generator for RSS 0.94 diff --git a/src/main/java/com/sun/syndication/io/impl/RSS094Parser.java b/src/main/java/com/rometools/rome/io/impl/RSS094Parser.java similarity index 93% rename from src/main/java/com/sun/syndication/io/impl/RSS094Parser.java rename to src/main/java/com/rometools/rome/io/impl/RSS094Parser.java index 9585c4c..eb865e0 100644 --- a/src/main/java/com/sun/syndication/io/impl/RSS094Parser.java +++ b/src/main/java/com/rometools/rome/io/impl/RSS094Parser.java @@ -14,17 +14,17 @@ * limitations under the License. * */ -package com.sun.syndication.io.impl; +package com.rometools.rome.io.impl; import java.util.List; import java.util.Locale; import org.jdom2.Element; -import com.sun.syndication.feed.WireFeed; -import com.sun.syndication.feed.rss.Channel; -import com.sun.syndication.feed.rss.Guid; -import com.sun.syndication.feed.rss.Item; +import com.rometools.rome.feed.WireFeed; +import com.rometools.rome.feed.rss.Channel; +import com.rometools.rome.feed.rss.Guid; +import com.rometools.rome.feed.rss.Item; public class RSS094Parser extends RSS093Parser { diff --git a/src/main/java/com/sun/syndication/io/impl/RSS10Generator.java b/src/main/java/com/rometools/rome/io/impl/RSS10Generator.java similarity index 95% rename from src/main/java/com/sun/syndication/io/impl/RSS10Generator.java rename to src/main/java/com/rometools/rome/io/impl/RSS10Generator.java index e0fe2b4..be6f04e 100644 --- a/src/main/java/com/sun/syndication/io/impl/RSS10Generator.java +++ b/src/main/java/com/rometools/rome/io/impl/RSS10Generator.java @@ -14,17 +14,17 @@ * limitations under the License. * */ -package com.sun.syndication.io.impl; +package com.rometools.rome.io.impl; import java.util.List; import org.jdom2.Element; import org.jdom2.Namespace; -import com.sun.syndication.feed.rss.Channel; -import com.sun.syndication.feed.rss.Description; -import com.sun.syndication.feed.rss.Item; -import com.sun.syndication.io.FeedException; +import com.rometools.rome.feed.rss.Channel; +import com.rometools.rome.feed.rss.Description; +import com.rometools.rome.feed.rss.Item; +import com.rometools.rome.io.FeedException; /** * Feed Generator for RSS 1.0 diff --git a/src/main/java/com/sun/syndication/io/impl/RSS10Parser.java b/src/main/java/com/rometools/rome/io/impl/RSS10Parser.java similarity index 94% rename from src/main/java/com/sun/syndication/io/impl/RSS10Parser.java rename to src/main/java/com/rometools/rome/io/impl/RSS10Parser.java index 4b191c6..8b739e2 100644 --- a/src/main/java/com/sun/syndication/io/impl/RSS10Parser.java +++ b/src/main/java/com/rometools/rome/io/impl/RSS10Parser.java @@ -14,7 +14,7 @@ * limitations under the License. * */ -package com.sun.syndication.io.impl; +package com.rometools.rome.io.impl; import java.util.Locale; @@ -22,11 +22,11 @@ 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.Content; -import com.sun.syndication.feed.rss.Description; -import com.sun.syndication.feed.rss.Item; +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; /** */ diff --git a/src/main/java/com/sun/syndication/io/impl/RSS20Generator.java b/src/main/java/com/rometools/rome/io/impl/RSS20Generator.java similarity index 92% rename from src/main/java/com/sun/syndication/io/impl/RSS20Generator.java rename to src/main/java/com/rometools/rome/io/impl/RSS20Generator.java index ac58a35..1485812 100644 --- a/src/main/java/com/sun/syndication/io/impl/RSS20Generator.java +++ b/src/main/java/com/rometools/rome/io/impl/RSS20Generator.java @@ -14,16 +14,16 @@ * limitations under the License. * */ -package com.sun.syndication.io.impl; +package com.rometools.rome.io.impl; import java.util.List; import org.jdom2.Element; -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.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; /** * Feed Generator for RSS 2.0 diff --git a/src/main/java/com/sun/syndication/io/impl/RSS20Parser.java b/src/main/java/com/rometools/rome/io/impl/RSS20Parser.java similarity index 95% rename from src/main/java/com/sun/syndication/io/impl/RSS20Parser.java rename to src/main/java/com/rometools/rome/io/impl/RSS20Parser.java index 168ae57..d568fb6 100644 --- a/src/main/java/com/sun/syndication/io/impl/RSS20Parser.java +++ b/src/main/java/com/rometools/rome/io/impl/RSS20Parser.java @@ -14,13 +14,13 @@ * limitations under the License. * */ -package com.sun.syndication.io.impl; +package com.rometools.rome.io.impl; import org.jdom2.Attribute; import org.jdom2.Document; import org.jdom2.Element; -import com.sun.syndication.feed.rss.Description; +import com.rometools.rome.feed.rss.Description; public class RSS20Parser extends RSS094Parser { diff --git a/src/main/java/com/sun/syndication/io/impl/RSS20wNSParser.java b/src/main/java/com/rometools/rome/io/impl/RSS20wNSParser.java similarity index 96% rename from src/main/java/com/sun/syndication/io/impl/RSS20wNSParser.java rename to src/main/java/com/rometools/rome/io/impl/RSS20wNSParser.java index 1189327..4ad1ca0 100644 --- a/src/main/java/com/sun/syndication/io/impl/RSS20wNSParser.java +++ b/src/main/java/com/rometools/rome/io/impl/RSS20wNSParser.java @@ -14,7 +14,7 @@ * limitations under the License. * */ -package com.sun.syndication.io.impl; +package com.rometools.rome.io.impl; import java.util.Locale; @@ -22,7 +22,7 @@ import org.jdom2.Document; import org.jdom2.Element; import org.jdom2.Namespace; -import com.sun.syndication.feed.WireFeed; +import com.rometools.rome.feed.WireFeed; /** * To address issue with certain feeds (brought up by Charles Miller): diff --git a/src/main/java/com/sun/syndication/io/impl/SyModuleGenerator.java b/src/main/java/com/rometools/rome/io/impl/SyModuleGenerator.java similarity index 94% rename from src/main/java/com/sun/syndication/io/impl/SyModuleGenerator.java rename to src/main/java/com/rometools/rome/io/impl/SyModuleGenerator.java index 4e8189a..1796d00 100644 --- a/src/main/java/com/sun/syndication/io/impl/SyModuleGenerator.java +++ b/src/main/java/com/rometools/rome/io/impl/SyModuleGenerator.java @@ -14,7 +14,7 @@ * limitations under the License. * */ -package com.sun.syndication.io.impl; +package com.rometools.rome.io.impl; import java.util.Collections; import java.util.Date; @@ -25,9 +25,9 @@ import java.util.Set; import org.jdom2.Element; import org.jdom2.Namespace; -import com.sun.syndication.feed.module.Module; -import com.sun.syndication.feed.module.SyModule; -import com.sun.syndication.io.ModuleGenerator; +import com.rometools.rome.feed.module.Module; +import com.rometools.rome.feed.module.SyModule; +import com.rometools.rome.io.ModuleGenerator; /** * Feed Generator for SY ModuleImpl diff --git a/src/main/java/com/sun/syndication/io/impl/SyModuleParser.java b/src/main/java/com/rometools/rome/io/impl/SyModuleParser.java similarity index 89% rename from src/main/java/com/sun/syndication/io/impl/SyModuleParser.java rename to src/main/java/com/rometools/rome/io/impl/SyModuleParser.java index 9fd9ec2..a2782ae 100644 --- a/src/main/java/com/sun/syndication/io/impl/SyModuleParser.java +++ b/src/main/java/com/rometools/rome/io/impl/SyModuleParser.java @@ -14,17 +14,17 @@ * limitations under the License. * */ -package com.sun.syndication.io.impl; +package com.rometools.rome.io.impl; import java.util.Locale; import org.jdom2.Element; import org.jdom2.Namespace; -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.io.ModuleParser; +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.io.ModuleParser; public class SyModuleParser implements ModuleParser { diff --git a/src/main/java/com/sun/syndication/io/impl/XmlFixerReader.java b/src/main/java/com/rometools/rome/io/impl/XmlFixerReader.java similarity index 99% rename from src/main/java/com/sun/syndication/io/impl/XmlFixerReader.java rename to src/main/java/com/rometools/rome/io/impl/XmlFixerReader.java index 2c17254..96cd577 100644 --- a/src/main/java/com/sun/syndication/io/impl/XmlFixerReader.java +++ b/src/main/java/com/rometools/rome/io/impl/XmlFixerReader.java @@ -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; diff --git a/src/main/java/com/sun/syndication/io/impl/PropertiesLoader.java b/src/main/java/com/sun/syndication/io/impl/PropertiesLoader.java deleted file mode 100644 index ba1ffcd..0000000 --- a/src/main/java/com/sun/syndication/io/impl/PropertiesLoader.java +++ /dev/null @@ -1,158 +0,0 @@ -package com.sun.syndication.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.sun.syndication.feed.impl.ConfigurableClassLoader; - -/** - * Properties loader that aggregates a master properties file and several extra properties files, - * all from the current classpath. - *

- * 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. - *

- * 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(). - *

- * - * @author Alejandro Abdelnur - * - */ -public class PropertiesLoader { - - private static final String MASTER_PLUGIN_FILE = "com/sun/syndication/rome.properties"; - private static final String EXTRA_PLUGIN_FILE = "rome.properties"; - - private static Map clMap = new WeakHashMap(); - - /** - * 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. - *

- * - * @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 propertiesList = new ArrayList(); - 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 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. - *

- * - * @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 entriesList = new ArrayList(); - 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. - *

- * - * @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 entriesList = new ArrayList(); - 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; - } - -} diff --git a/src/main/resources/com/rometools/rome/rome.properties b/src/main/resources/com/rometools/rome/rome.properties new file mode 100644 index 0000000..0656e7c --- /dev/null +++ b/src/main/resources/com/rometools/rome/rome.properties @@ -0,0 +1,143 @@ +# +# Copyright 2004 Sun Microsystems, Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# + + +# Feed Parser implementation classes +# +WireFeedParser.classes=com.rometools.rome.io.impl.RSS090Parser \ + com.rometools.rome.io.impl.RSS091NetscapeParser \ + com.rometools.rome.io.impl.RSS091UserlandParser \ + com.rometools.rome.io.impl.RSS092Parser \ + com.rometools.rome.io.impl.RSS093Parser \ + com.rometools.rome.io.impl.RSS094Parser \ + com.rometools.rome.io.impl.RSS10Parser \ + com.rometools.rome.io.impl.RSS20wNSParser \ + com.rometools.rome.io.impl.RSS20Parser \ + com.rometools.rome.io.impl.Atom10Parser \ + com.rometools.rome.io.impl.Atom03Parser + +# Parsers for Atom 1.0 feed modules +# +atom_1.0.feed.ModuleParser.classes=com.rometools.rome.io.impl.SyModuleParser \ + com.rometools.rome.io.impl.DCModuleParser + +# Parsers for Atom 1.0 entry modules +# +atom_1.0.item.ModuleParser.classes=com.rometools.rome.io.impl.DCModuleParser + +# Parsers for Atom 0.3 feed modules +# +atom_0.3.feed.ModuleParser.classes=com.rometools.rome.io.impl.SyModuleParser \ + com.rometools.rome.io.impl.DCModuleParser + +# Parsers for Atom 0.3 entry modules +# +atom_0.3.item.ModuleParser.classes=com.rometools.rome.io.impl.DCModuleParser + +# Parsers for RSS 1.0 feed modules +# +rss_1.0.feed.ModuleParser.classes=com.rometools.rome.io.impl.SyModuleParser \ + com.rometools.rome.io.impl.DCModuleParser + +# Parsers for RSS 1.0 item modules +# +rss_1.0.item.ModuleParser.classes=com.rometools.rome.io.impl.DCModuleParser + +# Parsers for RSS 2.0 (w/NS) feed modules +# +rss_2.0wNS.feed.ModuleParser.classes=com.rometools.rome.io.impl.DCModuleParser + +# Parsers for RSS 2.0 (w/NS) item modules +# +rss_2.0wNS.item.ModuleParser.classes=com.rometools.rome.io.impl.DCModuleParser + +# Parsers for RSS 2.0 feed modules +# +rss_2.0.feed.ModuleParser.classes=com.rometools.rome.io.impl.DCModuleParser + +# Parsers for RSS 2.0 item modules +# +rss_2.0.item.ModuleParser.classes=com.rometools.rome.io.impl.DCModuleParser + + + + +# Feed Generator implementation classes +# +WireFeedGenerator.classes=com.rometools.rome.io.impl.RSS090Generator \ + com.rometools.rome.io.impl.RSS091NetscapeGenerator \ + com.rometools.rome.io.impl.RSS091UserlandGenerator \ + com.rometools.rome.io.impl.RSS092Generator \ + com.rometools.rome.io.impl.RSS093Generator \ + com.rometools.rome.io.impl.RSS094Generator \ + com.rometools.rome.io.impl.RSS10Generator \ + com.rometools.rome.io.impl.RSS20Generator \ + com.rometools.rome.io.impl.Atom10Generator \ + com.rometools.rome.io.impl.Atom03Generator + +# Generators for Atom 1.0 feed modules +# +atom_1.0.feed.ModuleGenerator.classes=com.rometools.rome.io.impl.SyModuleGenerator \ + com.rometools.rome.io.impl.DCModuleGenerator + +# Generators for Atom 1.0 entry modules +# +atom_1.0.item.ModuleGenerator.classes=com.rometools.rome.io.impl.DCModuleGenerator + +# Generators for Atom 0.3 feed modules +# +atom_0.3.feed.ModuleGenerator.classes=com.rometools.rome.io.impl.SyModuleGenerator \ + com.rometools.rome.io.impl.DCModuleGenerator + +# Generators for Atom 0.3 entry modules +# +atom_0.3.item.ModuleGenerator.classes=com.rometools.rome.io.impl.DCModuleGenerator + +# Generators for RSS 1.0 feed modules +# +rss_1.0.feed.ModuleGenerator.classes=com.rometools.rome.io.impl.SyModuleGenerator \ + com.rometools.rome.io.impl.DCModuleGenerator + +# Generators for RSS_1.0 entry modules +# +rss_1.0.item.ModuleGenerator.classes=com.rometools.rome.io.impl.DCModuleGenerator + +# Generators for RSS 2.0 feed modules +# +rss_2.0.feed.ModuleGenerator.classes=com.rometools.rome.io.impl.DCModuleGenerator + +# Generators for RSS_2.0 entry modules +# +rss_2.0.item.ModuleGenerator.classes=com.rometools.rome.io.impl.DCModuleGenerator + + + + +# Feed Conversor implementation classes +# +Converter.classes=com.rometools.rome.feed.synd.impl.ConverterForAtom10 \ + com.rometools.rome.feed.synd.impl.ConverterForAtom03 \ + com.rometools.rome.feed.synd.impl.ConverterForRSS090 \ + com.rometools.rome.feed.synd.impl.ConverterForRSS091Netscape \ + com.rometools.rome.feed.synd.impl.ConverterForRSS091Userland \ + com.rometools.rome.feed.synd.impl.ConverterForRSS092 \ + com.rometools.rome.feed.synd.impl.ConverterForRSS093 \ + com.rometools.rome.feed.synd.impl.ConverterForRSS094 \ + com.rometools.rome.feed.synd.impl.ConverterForRSS10 \ + com.rometools.rome.feed.synd.impl.ConverterForRSS20 + + + diff --git a/src/main/resources/com/sun/syndication/rome.properties b/src/main/resources/com/sun/syndication/rome.properties deleted file mode 100644 index b8c096a..0000000 --- a/src/main/resources/com/sun/syndication/rome.properties +++ /dev/null @@ -1,143 +0,0 @@ -# -# Copyright 2004 Sun Microsystems, Inc. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# - - -# Feed Parser implementation classes -# -WireFeedParser.classes=com.sun.syndication.io.impl.RSS090Parser \ - com.sun.syndication.io.impl.RSS091NetscapeParser \ - com.sun.syndication.io.impl.RSS091UserlandParser \ - com.sun.syndication.io.impl.RSS092Parser \ - com.sun.syndication.io.impl.RSS093Parser \ - com.sun.syndication.io.impl.RSS094Parser \ - com.sun.syndication.io.impl.RSS10Parser \ - com.sun.syndication.io.impl.RSS20wNSParser \ - com.sun.syndication.io.impl.RSS20Parser \ - com.sun.syndication.io.impl.Atom10Parser \ - com.sun.syndication.io.impl.Atom03Parser - -# Parsers for Atom 1.0 feed modules -# -atom_1.0.feed.ModuleParser.classes=com.sun.syndication.io.impl.SyModuleParser \ - com.sun.syndication.io.impl.DCModuleParser - -# Parsers for Atom 1.0 entry modules -# -atom_1.0.item.ModuleParser.classes=com.sun.syndication.io.impl.DCModuleParser - -# Parsers for Atom 0.3 feed modules -# -atom_0.3.feed.ModuleParser.classes=com.sun.syndication.io.impl.SyModuleParser \ - com.sun.syndication.io.impl.DCModuleParser - -# Parsers for Atom 0.3 entry modules -# -atom_0.3.item.ModuleParser.classes=com.sun.syndication.io.impl.DCModuleParser - -# Parsers for RSS 1.0 feed modules -# -rss_1.0.feed.ModuleParser.classes=com.sun.syndication.io.impl.SyModuleParser \ - com.sun.syndication.io.impl.DCModuleParser - -# Parsers for RSS 1.0 item modules -# -rss_1.0.item.ModuleParser.classes=com.sun.syndication.io.impl.DCModuleParser - -# Parsers for RSS 2.0 (w/NS) feed modules -# -rss_2.0wNS.feed.ModuleParser.classes=com.sun.syndication.io.impl.DCModuleParser - -# Parsers for RSS 2.0 (w/NS) item modules -# -rss_2.0wNS.item.ModuleParser.classes=com.sun.syndication.io.impl.DCModuleParser - -# Parsers for RSS 2.0 feed modules -# -rss_2.0.feed.ModuleParser.classes=com.sun.syndication.io.impl.DCModuleParser - -# Parsers for RSS 2.0 item modules -# -rss_2.0.item.ModuleParser.classes=com.sun.syndication.io.impl.DCModuleParser - - - - -# Feed Generator implementation classes -# -WireFeedGenerator.classes=com.sun.syndication.io.impl.RSS090Generator \ - com.sun.syndication.io.impl.RSS091NetscapeGenerator \ - com.sun.syndication.io.impl.RSS091UserlandGenerator \ - com.sun.syndication.io.impl.RSS092Generator \ - com.sun.syndication.io.impl.RSS093Generator \ - com.sun.syndication.io.impl.RSS094Generator \ - com.sun.syndication.io.impl.RSS10Generator \ - com.sun.syndication.io.impl.RSS20Generator \ - com.sun.syndication.io.impl.Atom10Generator \ - com.sun.syndication.io.impl.Atom03Generator - -# Generators for Atom 1.0 feed modules -# -atom_1.0.feed.ModuleGenerator.classes=com.sun.syndication.io.impl.SyModuleGenerator \ - com.sun.syndication.io.impl.DCModuleGenerator - -# Generators for Atom 1.0 entry modules -# -atom_1.0.item.ModuleGenerator.classes=com.sun.syndication.io.impl.DCModuleGenerator - -# Generators for Atom 0.3 feed modules -# -atom_0.3.feed.ModuleGenerator.classes=com.sun.syndication.io.impl.SyModuleGenerator \ - com.sun.syndication.io.impl.DCModuleGenerator - -# Generators for Atom 0.3 entry modules -# -atom_0.3.item.ModuleGenerator.classes=com.sun.syndication.io.impl.DCModuleGenerator - -# Generators for RSS 1.0 feed modules -# -rss_1.0.feed.ModuleGenerator.classes=com.sun.syndication.io.impl.SyModuleGenerator \ - com.sun.syndication.io.impl.DCModuleGenerator - -# Generators for RSS_1.0 entry modules -# -rss_1.0.item.ModuleGenerator.classes=com.sun.syndication.io.impl.DCModuleGenerator - -# Generators for RSS 2.0 feed modules -# -rss_2.0.feed.ModuleGenerator.classes=com.sun.syndication.io.impl.DCModuleGenerator - -# Generators for RSS_2.0 entry modules -# -rss_2.0.item.ModuleGenerator.classes=com.sun.syndication.io.impl.DCModuleGenerator - - - - -# Feed Conversor implementation classes -# -Converter.classes=com.sun.syndication.feed.synd.impl.ConverterForAtom10 \ - com.sun.syndication.feed.synd.impl.ConverterForAtom03 \ - com.sun.syndication.feed.synd.impl.ConverterForRSS090 \ - com.sun.syndication.feed.synd.impl.ConverterForRSS091Netscape \ - com.sun.syndication.feed.synd.impl.ConverterForRSS091Userland \ - com.sun.syndication.feed.synd.impl.ConverterForRSS092 \ - com.sun.syndication.feed.synd.impl.ConverterForRSS093 \ - com.sun.syndication.feed.synd.impl.ConverterForRSS094 \ - com.sun.syndication.feed.synd.impl.ConverterForRSS10 \ - com.sun.syndication.feed.synd.impl.ConverterForRSS20 - - - diff --git a/src/site/apt/HowRomeWorks/RomeV0.4TutorialDefiningACustomModuleBeanParserAndGenerator.apt b/src/site/apt/HowRomeWorks/RomeV0.4TutorialDefiningACustomModuleBeanParserAndGenerator.apt index bd6f2fb..a8d6e80 100644 --- a/src/site/apt/HowRomeWorks/RomeV0.4TutorialDefiningACustomModuleBeanParserAndGenerator.apt +++ b/src/site/apt/HowRomeWorks/RomeV0.4TutorialDefiningACustomModuleBeanParserAndGenerator.apt @@ -334,19 +334,19 @@ public class SampleModuleGenerator implements ModuleGenerator { # Parsers for RSS 1.0 feed modules # -rss_1.0.feed.ModuleParser.classes=com.sun.syndication.samples.module.SampleModuleParser +rss_1.0.feed.ModuleParser.classes=com.rometools.rome.samples.module.SampleModuleParser # Parsers for RSS 1.0 item modules # -rss_1.0.item.ModuleParser.classes=com.sun.syndication.samples.module.SampleModuleParser +rss_1.0.item.ModuleParser.classes=com.rometools.rome.samples.module.SampleModuleParser # Generators for RSS 1.0 feed modules # -rss_1.0.feed.ModuleGenerator.classes=com.sun.syndication.samples.module.SampleModuleGenerator +rss_1.0.feed.ModuleGenerator.classes=com.rometools.rome.samples.module.SampleModuleGenerator # Generators for RSS_1.0 entry modules # -rss_1.0.item.ModuleGenerator.classes=com.sun.syndication.samples.module.SampleModuleGenerator +rss_1.0.item.ModuleGenerator.classes=com.rometools.rome.samples.module.SampleModuleGenerator +------+ diff --git a/src/site/apt/HowRomeWorks/RomeV0.4TutorialUsingRomeToAggregateManySyndicationFeedsIntoASingleOne.apt b/src/site/apt/HowRomeWorks/RomeV0.4TutorialUsingRomeToAggregateManySyndicationFeedsIntoASingleOne.apt index 0edf895..d8bf237 100644 --- a/src/site/apt/HowRomeWorks/RomeV0.4TutorialUsingRomeToAggregateManySyndicationFeedsIntoASingleOne.apt +++ b/src/site/apt/HowRomeWorks/RomeV0.4TutorialUsingRomeToAggregateManySyndicationFeedsIntoASingleOne.apt @@ -12,7 +12,7 @@ Rome v0.4 Tutorial, Using Rome to aggregate many syndication feeds into a single <> J2SE 1.4\+, JDOM 1.0 and Rome 0.4. - Rome represents syndication feeds (RSS and Atom) as instances of the com.sun.syndication.synd.SyndFeed interface. The SyndFeed interfaces and its properties follow the Java Bean patterns. The default implementations provided with Rome are all lightweight classes. + Rome represents syndication feeds (RSS and Atom) as instances of the com.rometools.rome.synd.SyndFeed interface. The SyndFeed interfaces and its properties follow the Java Bean patterns. The default implementations provided with Rome are all lightweight classes. Rome includes parsers to process syndication feeds into SyndFeed instances. The SyndFeedInput class handles the parsers using the correct one based on the syndication feed being processed. The developer does not need to worry about selecting the right parser for a syndication feed, the SyndFeedInput will take care of it by peeking at the syndication feed structure. All it takes to read a syndication feed using Rome are the following 2 lines of code: @@ -70,7 +70,7 @@ aggrFeed.setLink("http://www.anonymous.com"); +------+ -package com.sun.syndication.samples; +package com.rometools.rome.samples; import java.net.URL; import java.io.InputStreamReader; @@ -78,11 +78,11 @@ import java.io.PrintWriter; import java.util.List; import java.util.ArrayList; -import com.sun.syndication.feed.synd.SyndFeed; -import com.sun.syndication.feed.synd.SyndFeedImpl; -import com.sun.syndication.io.SyndFeedOutput; -import com.sun.syndication.io.SyndFeedInput; -import com.sun.syndication.io.XmlReader; +import com.rometools.rome.feed.synd.SyndFeed; +import com.rometools.rome.feed.synd.SyndFeedImpl; +import com.rometools.rome.io.SyndFeedOutput; +import com.rometools.rome.io.SyndFeedInput; +import com.rometools.rome.io.XmlReader; /** * It aggregates a list of RSS/Atom feeds (they can be of different types) diff --git a/src/site/apt/HowRomeWorks/RomeV0.4TutorialUsingRomeToConvertASyndicationFeedFromOneTypeToAnother.apt b/src/site/apt/HowRomeWorks/RomeV0.4TutorialUsingRomeToConvertASyndicationFeedFromOneTypeToAnother.apt index 651049d..d45928d 100644 --- a/src/site/apt/HowRomeWorks/RomeV0.4TutorialUsingRomeToConvertASyndicationFeedFromOneTypeToAnother.apt +++ b/src/site/apt/HowRomeWorks/RomeV0.4TutorialUsingRomeToConvertASyndicationFeedFromOneTypeToAnother.apt @@ -12,7 +12,7 @@ Rome v0.4 Tutorial, Using Rome to convert a syndication feed from one type to an <> Synd J2SE 1.4\+, JDOM 1.0 and Rome 0.4. - Rome represents syndication feeds (RSS and Atom) as instances of the com.sun.syndication.synd.SyndFeed interface. The SyndFeed interfaces and its properties follow the Java Bean patterns. The default implementations provided with Rome are all lightweight classes. + Rome represents syndication feeds (RSS and Atom) as instances of the com.rometools.rome.synd.SyndFeed interface. The SyndFeed interfaces and its properties follow the Java Bean patterns. The default implementations provided with Rome are all lightweight classes. Rome includes parsers to process syndication feeds into SyndFeed instances. The SyndFeedInput class handles the parsers using the correct one based on the syndication feed being processed. The developer does not need to worry about selecting the right parser for a syndication feed, the SyndFeedInput will take care of it by peeking at the syndication feed structure. All it takes to read a syndication feed using Rome are the following 2 lines of code: @@ -49,15 +49,15 @@ output.output(feed,new PrintWriter(System.out)); +------+ -package com.sun.syndication.samples; +package com.rometools.rome.samples; import java.net.URL; import java.io.InputStreamReader; import java.io.PrintWriter; -import com.sun.syndication.feed.synd.SyndFeed; -import com.sun.syndication.io.SyndFeedInput; -import com.sun.syndication.io.SyndFeedOutput; -import com.sun.syndication.io.XmlReader; +import com.rometools.rome.feed.synd.SyndFeed; +import com.rometools.rome.io.SyndFeedInput; +import com.rometools.rome.io.SyndFeedOutput; +import com.rometools.rome.io.XmlReader; /** * It Converts any RSS/Atom feed type to a an RSS/Atom feed of the diff --git a/src/site/apt/HowRomeWorks/RomeV0.4TutorialUsingRomeToCreateAndWriteASyndicationFeed.apt b/src/site/apt/HowRomeWorks/RomeV0.4TutorialUsingRomeToCreateAndWriteASyndicationFeed.apt index abe4af9..985bfea 100644 --- a/src/site/apt/HowRomeWorks/RomeV0.4TutorialUsingRomeToCreateAndWriteASyndicationFeed.apt +++ b/src/site/apt/HowRomeWorks/RomeV0.4TutorialUsingRomeToCreateAndWriteASyndicationFeed.apt @@ -12,7 +12,7 @@ Rome v0.4 Tutorial, Using Rome to create and write a syndication feed <> J2SE 1.4\+, JDOM 1.0 and Rome 0.4. - Rome represents syndication feeds (RSS and Atom) as instances of the com.sun.syndication.feed.synd.SyndFeed interface. The SyndFeed interfaces and its properties follow the Java Bean patterns. The default implementations provided with Rome are all lightweight classes. + Rome represents syndication feeds (RSS and Atom) as instances of the com.rometools.rome.feed.synd.SyndFeed interface. The SyndFeed interfaces and its properties follow the Java Bean patterns. The default implementations provided with Rome are all lightweight classes. Creating a feed with SyndFeed beans consists of creating beans and setting their properties. The following code fragments show how a SyndFeed bean with 3 entries is created. @@ -102,10 +102,10 @@ Rome v0.4 Tutorial, Using Rome to create and write a syndication feed +------+ -package com.sun.syndication.samples; +package com.rometools.rome.samples; -import com.sun.syndication.feed.synd.*; -import com.sun.syndication.io.SyndFeedOutput; +import com.rometools.rome.feed.synd.*; +import com.rometools.rome.io.SyndFeedOutput; import java.io.FileWriter; import java.io.Writer; diff --git a/src/site/apt/HowRomeWorks/RomeV0.4TutorialUsingRomeToReadASyndicationFeed.apt b/src/site/apt/HowRomeWorks/RomeV0.4TutorialUsingRomeToReadASyndicationFeed.apt index f14ae76..9f8f1dc 100644 --- a/src/site/apt/HowRomeWorks/RomeV0.4TutorialUsingRomeToReadASyndicationFeed.apt +++ b/src/site/apt/HowRomeWorks/RomeV0.4TutorialUsingRomeToReadASyndicationFeed.apt @@ -12,7 +12,7 @@ Rome v0.4 Tutorial, Using Rome to read a syndication feed <> J2SE 1.4\+, JDOM 1.0 and Rome 0.4. - Rome represents syndication feeds (RSS and Atom) as instances of the com.sun.syndication.synd.SyndFeed interface. The SyndFeed interfaces and its properties follow the Java Bean patterns. The default implementations provided with Rome are all lightweight classes. + Rome represents syndication feeds (RSS and Atom) as instances of the com.rometools.rome.synd.SyndFeed interface. The SyndFeed interfaces and its properties follow the Java Bean patterns. The default implementations provided with Rome are all lightweight classes. Rome includes parsers to process syndication feeds into SyndFeed instances. The SyndFeedInput class handles the parsers using the correct one based on the syndication feed being processed. The developer does not need to worry about selecting the right parser for a syndication feed, the SyndFeedInput will take care of it by peeking at the syndication feed structure. All it takes to read a syndication feed using Rome are the following 2 lines of code: @@ -45,13 +45,13 @@ System.out.println(feed); +------+ -package com.sun.syndication.samples; +package com.rometools.rome.samples; import java.net.URL; import java.io.InputStreamReader; -import com.sun.syndication.feed.synd.SyndFeed; -import com.sun.syndication.io.SyndFeedInput; -import com.sun.syndication.io.XmlReader; +import com.rometools.rome.feed.synd.SyndFeed; +import com.rometools.rome.io.SyndFeedInput; +import com.rometools.rome.io.XmlReader; /** * It Reads and prints any RSS/Atom feed type. diff --git a/src/site/apt/HowRomeWorks/index.apt b/src/site/apt/HowRomeWorks/index.apt index a0e3acf..626bfb8 100644 --- a/src/site/apt/HowRomeWorks/index.apt +++ b/src/site/apt/HowRomeWorks/index.apt @@ -52,7 +52,7 @@ SyndFeed feed = input.build(new InputStreamReader(feedUrl.openStream())); [[1]] {{{http://rome.dev.java.net/apidocs/0_4/com/sun/syndication/io/WireFeedInput.html}WireFeedInput}} uses a PluginManager of class FeedParsers to pick the right parser to use to parse the feed and then calls that parser to parse the Newsfeed. - [[1]] The appropriate parser parses the Newsfeed parses the feed, using {{{http://www.jdom.org/}JDom}}, into a {{{http://rome.dev.java.net/apidocs/0_4/com/sun/syndication/feed/WireFeed.html}WireFeed}}. If the Newsfeed is in an RSS format, the the WireFeed is of class {{{http://rome.dev.java.net/apidocs/0_4/com/sun/syndication/feed/rss/Channel.html}Channel}} and contains Items, Clouds, and other RSS things from the {{{http://rome.dev.java.net/apidocs/0_4/com/sun/syndication/feed/rss/package\-summary.html}com.sun.syndication.feed.rss}} package. Or, on the other hand, if the Newsfeed is in Atom format, then the WireFeed is of class {{{http://rome.dev.java.net/apidocs/0_4/com/sun/syndication/feed/atom/Feed.html}Feed}} from the {{{http://rome.dev.java.net/apidocs/0_4/com/sun/syndication/feed/atom/package\-summary.html}com.sun.syndication.atom}} package. In the end, WireFeedInput returns a WireFeed. + [[1]] The appropriate parser parses the Newsfeed parses the feed, using {{{http://www.jdom.org/}JDom}}, into a {{{http://rome.dev.java.net/apidocs/0_4/com/sun/syndication/feed/WireFeed.html}WireFeed}}. If the Newsfeed is in an RSS format, the the WireFeed is of class {{{http://rome.dev.java.net/apidocs/0_4/com/sun/syndication/feed/rss/Channel.html}Channel}} and contains Items, Clouds, and other RSS things from the {{{http://rome.dev.java.net/apidocs/0_4/com/sun/syndication/feed/rss/package\-summary.html}com.rometools.rome.feed.rss}} package. Or, on the other hand, if the Newsfeed is in Atom format, then the WireFeed is of class {{{http://rome.dev.java.net/apidocs/0_4/com/sun/syndication/feed/atom/Feed.html}Feed}} from the {{{http://rome.dev.java.net/apidocs/0_4/com/sun/syndication/feed/atom/package\-summary.html}com.rometools.rome.atom}} package. In the end, WireFeedInput returns a WireFeed. [[1]] SyndFeedInput uses the returned WireFeedInput to create a SyndFeedImpl. Which implements SyndFeed. SyndFeed is an interface, the root of an abstraction that represents a format independent Newsfeed. diff --git a/src/site/apt/ROMEDevelopmentProposals/ROMEFeatureRequests.apt b/src/site/apt/ROMEDevelopmentProposals/ROMEFeatureRequests.apt index 8b4aece..ce8dab4 100644 --- a/src/site/apt/ROMEDevelopmentProposals/ROMEFeatureRequests.apt +++ b/src/site/apt/ROMEDevelopmentProposals/ROMEFeatureRequests.apt @@ -8,7 +8,7 @@ ROME Feature Requests - * <> com.sun.syndication.io.impl.DateParser:Date parseW3CDateTime(String) incorrectly uses a comma (",") rather than a decimal (".") to delimit the seconds from miliseconds. The correct format can be found on {{{http://www.w3.org/TR/NOTE\-datetime}http://www.w3.org/TR/NOTE\-datetime}}. The bug is on line 170 (version 0.8). The fix is to replace the line with this: <<>> \-\- JLP 9/4/2006 + * <> com.rometools.rome.io.impl.DateParser:Date parseW3CDateTime(String) incorrectly uses a comma (",") rather than a decimal (".") to delimit the seconds from miliseconds. The correct format can be found on {{{http://www.w3.org/TR/NOTE\-datetime}http://www.w3.org/TR/NOTE\-datetime}}. The bug is on line 170 (version 0.8). The fix is to replace the line with this: <<>> \-\- JLP 9/4/2006 * <> Atom 1.0 parsing uses wrong Content types. "text", "html", "xhtml" do not match what is parse from the content elements. Subsequently, the content elements always have a null value \- no way to get content. diff --git a/src/site/apt/ROMEReleases/ROME0.1Beta/RomeV0.1Tutorials/RomeV0.1TutorialUsingRomeToAggregateManySyndicationFeedsIntoASingleOne.apt b/src/site/apt/ROMEReleases/ROME0.1Beta/RomeV0.1Tutorials/RomeV0.1TutorialUsingRomeToAggregateManySyndicationFeedsIntoASingleOne.apt index 8212eca..dcf08d9 100644 --- a/src/site/apt/ROMEReleases/ROME0.1Beta/RomeV0.1Tutorials/RomeV0.1TutorialUsingRomeToAggregateManySyndicationFeedsIntoASingleOne.apt +++ b/src/site/apt/ROMEReleases/ROME0.1Beta/RomeV0.1Tutorials/RomeV0.1TutorialUsingRomeToAggregateManySyndicationFeedsIntoASingleOne.apt @@ -12,7 +12,7 @@ Rome v0.1 Tutorial, Using Rome to aggregate many syndication feeds into a single <> J2SE 1.4\+, Xerces 2.4.0, JDOM B10, Commons Codec 1.2 and Rome 0.1. - Rome represents syndication feeds (RSS and Atom) as instances of the com.sun.syndication.synd.SyndFeedI interface. The SyndFeedI interfaces and its properties follow the Java Bean patterns. The default implementations provided with Rome are all lightweight classes. + Rome represents syndication feeds (RSS and Atom) as instances of the com.rometools.rome.synd.SyndFeedI interface. The SyndFeedI interfaces and its properties follow the Java Bean patterns. The default implementations provided with Rome are all lightweight classes. Rome includes parsers to process syndication feeds into SyndFeedI instances. The SyndInput class handles the parsers using the correct one based on the syndication feed being processed. The developer does not need to worry about selecting the right parser for a syndication feed, the SyndInput will take care of it by peeking at the syndication feed structure. All it takes to read a syndication feed using Rome are the following 2 lines of code: @@ -90,17 +90,17 @@ entries.addAll(inFeed.getEntries()); +------+ -package com.sun.syndication.samples; +package com.rometools.rome.samples; import java.net.URL; import java.util.List; import java.util.ArrayList; -import com.sun.syndication.feed.synd.SyndFeedI; -import com.sun.syndication.feed.synd.SyndFeed; -import com.sun.syndication.feed.synd.SyndEntryI; -import com.sun.syndication.io.SyndInput; -import com.sun.syndication.io.SyndOutput; +import com.rometools.rome.feed.synd.SyndFeedI; +import com.rometools.rome.feed.synd.SyndFeed; +import com.rometools.rome.feed.synd.SyndEntryI; +import com.rometools.rome.io.SyndInput; +import com.rometools.rome.io.SyndOutput; public class FeedAggregator { diff --git a/src/site/apt/ROMEReleases/ROME0.1Beta/RomeV0.1Tutorials/RomeV0.1TutorialUsingRomeToConvertASyndicationFeedFromOneTypeToAnother.apt b/src/site/apt/ROMEReleases/ROME0.1Beta/RomeV0.1Tutorials/RomeV0.1TutorialUsingRomeToConvertASyndicationFeedFromOneTypeToAnother.apt index 6e47301..9795063 100644 --- a/src/site/apt/ROMEReleases/ROME0.1Beta/RomeV0.1Tutorials/RomeV0.1TutorialUsingRomeToConvertASyndicationFeedFromOneTypeToAnother.apt +++ b/src/site/apt/ROMEReleases/ROME0.1Beta/RomeV0.1Tutorials/RomeV0.1TutorialUsingRomeToConvertASyndicationFeedFromOneTypeToAnother.apt @@ -12,7 +12,7 @@ Rome v0.1 Tutorial, Using Rome to convert a syndication feed from one type to an <> Synd J2SE 1.4\+, Xerces 2.4.0, JDOM B10, Commons Codec 1.2 and Rome 0.1. - Rome represents syndication feeds (RSS and Atom) as instances of the com.sun.syndication.synd.SyndFeedI interface. The SyndFeedI interfaces and its properties follow the Java Bean patterns. The default implementations provided with Rome are all lightweight classes. + Rome represents syndication feeds (RSS and Atom) as instances of the com.rometools.rome.synd.SyndFeedI interface. The SyndFeedI interfaces and its properties follow the Java Bean patterns. The default implementations provided with Rome are all lightweight classes. Rome includes parsers to process syndication feeds into SyndFeedI instances. The SyndInput class handles the parsers using the correct one based on the syndication feed being processed. The developer does not need to worry about selecting the right parser for a syndication feed, the SyndInput will take care of it by peeking at the syndication feed structure. All it takes to read a syndication feed using Rome are the following 2 lines of code: @@ -49,12 +49,12 @@ output.output(feed,System.out); +------+ -package com.sun.syndication.samples; +package com.rometools.rome.samples; import java.net.URL; -import com.sun.syndication.feed.synd.SyndFeedI; -import com.sun.syndication.io.SyndInput; -import com.sun.syndication.io.SyndOutput; +import com.rometools.rome.feed.synd.SyndFeedI; +import com.rometools.rome.io.SyndInput; +import com.rometools.rome.io.SyndOutput; public class FeedConverter { diff --git a/src/site/apt/ROMEReleases/ROME0.1Beta/RomeV0.1Tutorials/RomeV0.1TutorialUsingRomeToReadASyndicationFeed.apt b/src/site/apt/ROMEReleases/ROME0.1Beta/RomeV0.1Tutorials/RomeV0.1TutorialUsingRomeToReadASyndicationFeed.apt index 6917528..5f03ce2 100644 --- a/src/site/apt/ROMEReleases/ROME0.1Beta/RomeV0.1Tutorials/RomeV0.1TutorialUsingRomeToReadASyndicationFeed.apt +++ b/src/site/apt/ROMEReleases/ROME0.1Beta/RomeV0.1Tutorials/RomeV0.1TutorialUsingRomeToReadASyndicationFeed.apt @@ -12,7 +12,7 @@ Rome v0.1 Tutorial, Using Rome to read a syndication feed <> J2SE 1.4\+, Xerces 2.4.0, JDOM B10, Commons Codec 1.2 and Rome 0.1. - Rome represents syndication feeds (RSS and Atom) as instances of the com.sun.syndication.synd.SyndFeedI interface. The SyndFeedI interfaces and its properties follow the Java Bean patterns. The default implementations provided with Rome are all lightweight classes. + Rome represents syndication feeds (RSS and Atom) as instances of the com.rometools.rome.synd.SyndFeedI interface. The SyndFeedI interfaces and its properties follow the Java Bean patterns. The default implementations provided with Rome are all lightweight classes. Rome includes parsers to process syndication feeds into SyndFeedI instances. The SyndInput class handles the parsers using the correct one based on the syndication feed being processed. The developer does not need to worry about selecting the right parser for a syndication feed, the SyndInput will take care of it by peeking at the syndication feed structure. All it takes to read a syndication feed using Rome are the following 2 lines of code: @@ -45,11 +45,11 @@ System.out.println(feed); +------+ -package com.sun.syndication.samples; +package com.rometools.rome.samples; import java.net.URL; -import com.sun.syndication.feed.synd.SyndFeedI; -import com.sun.syndication.io.SyndInput; +import com.rometools.rome.feed.synd.SyndFeedI; +import com.rometools.rome.io.SyndInput; public class FeedReader { diff --git a/src/site/apt/ROMEReleases/ROME0.2Beta/RomeV0.2Tutorials/RomeV0.2TutorialUsingRomeToAggregateManySyndicationFeedsIntoASingleOne.apt b/src/site/apt/ROMEReleases/ROME0.2Beta/RomeV0.2Tutorials/RomeV0.2TutorialUsingRomeToAggregateManySyndicationFeedsIntoASingleOne.apt index 532b4ed..aa1333b 100644 --- a/src/site/apt/ROMEReleases/ROME0.2Beta/RomeV0.2Tutorials/RomeV0.2TutorialUsingRomeToAggregateManySyndicationFeedsIntoASingleOne.apt +++ b/src/site/apt/ROMEReleases/ROME0.2Beta/RomeV0.2Tutorials/RomeV0.2TutorialUsingRomeToAggregateManySyndicationFeedsIntoASingleOne.apt @@ -12,7 +12,7 @@ Rome v0.2 Tutorial, Using Rome to aggregate many syndication feeds into a single <> J2SE 1.4\+, JDOM B10 and Rome 0.2. - Rome represents syndication feeds (RSS and Atom) as instances of the com.sun.syndication.synd.SyndFeedI interface. The SyndFeedI interfaces and its properties follow the Java Bean patterns. The default implementations provided with Rome are all lightweight classes. + Rome represents syndication feeds (RSS and Atom) as instances of the com.rometools.rome.synd.SyndFeedI interface. The SyndFeedI interfaces and its properties follow the Java Bean patterns. The default implementations provided with Rome are all lightweight classes. Rome includes parsers to process syndication feeds into SyndFeedI instances. The SyndFeedInput class handles the parsers using the correct one based on the syndication feed being processed. The developer does not need to worry about selecting the right parser for a syndication feed, the SyndFeedInput will take care of it by peeking at the syndication feed structure. All it takes to read a syndication feed using Rome are the following 2 lines of code: @@ -70,16 +70,16 @@ aggrFeed.setLink("http://www.anonymous.com"); +------+ -package com.sun.syndication.samples; +package com.rometools.rome.samples; import java.net.URL; import java.util.List; import java.util.ArrayList; -import com.sun.syndication.feed.synd.SyndFeedI; -import com.sun.syndication.feed.synd.SyndFeed; -import com.sun.syndication.io.SyndFeedOutput; -import com.sun.syndication.io.SyndFeedInput; +import com.rometools.rome.feed.synd.SyndFeedI; +import com.rometools.rome.feed.synd.SyndFeed; +import com.rometools.rome.io.SyndFeedOutput; +import com.rometools.rome.io.SyndFeedInput; /** * It aggregates a list of RSS/Atom feeds (they can be of different types) diff --git a/src/site/apt/ROMEReleases/ROME0.2Beta/RomeV0.2Tutorials/RomeV0.2TutorialUsingRomeToConvertASyndicationFeedFromOneTypeToAnother.apt b/src/site/apt/ROMEReleases/ROME0.2Beta/RomeV0.2Tutorials/RomeV0.2TutorialUsingRomeToConvertASyndicationFeedFromOneTypeToAnother.apt index b288dda..fbac2b2 100644 --- a/src/site/apt/ROMEReleases/ROME0.2Beta/RomeV0.2Tutorials/RomeV0.2TutorialUsingRomeToConvertASyndicationFeedFromOneTypeToAnother.apt +++ b/src/site/apt/ROMEReleases/ROME0.2Beta/RomeV0.2Tutorials/RomeV0.2TutorialUsingRomeToConvertASyndicationFeedFromOneTypeToAnother.apt @@ -12,7 +12,7 @@ Rome v0.2 Tutorial, Using Rome to convert a syndication feed from one type to an <> Synd J2SE 1.4\+, JDOM B10 and Rome 0.2. - Rome represents syndication feeds (RSS and Atom) as instances of the com.sun.syndication.synd.SyndFeedI interface. The SyndFeedI interfaces and its properties follow the Java Bean patterns. The default implementations provided with Rome are all lightweight classes. + Rome represents syndication feeds (RSS and Atom) as instances of the com.rometools.rome.synd.SyndFeedI interface. The SyndFeedI interfaces and its properties follow the Java Bean patterns. The default implementations provided with Rome are all lightweight classes. Rome includes parsers to process syndication feeds into SyndFeedI instances. The SyndFeedInput class handles the parsers using the correct one based on the syndication feed being processed. The developer does not need to worry about selecting the right parser for a syndication feed, the SyndFeedInput will take care of it by peeking at the syndication feed structure. All it takes to read a syndication feed using Rome are the following 2 lines of code: @@ -49,12 +49,12 @@ output.output(feed,System.out); +------+ -package com.sun.syndication.samples; +package com.rometools.rome.samples; import java.net.URL; -import com.sun.syndication.feed.synd.SyndFeedI; -import com.sun.syndication.io.SyndFeedInput; -import com.sun.syndication.io.SyndFeedOutput; +import com.rometools.rome.feed.synd.SyndFeedI; +import com.rometools.rome.io.SyndFeedInput; +import com.rometools.rome.io.SyndFeedOutput; /** * It Converts any RSS/Atom feed type to a an RSS/Atom feed of the diff --git a/src/site/apt/ROMEReleases/ROME0.2Beta/RomeV0.2Tutorials/RomeV0.2TutorialUsingRomeToReadASyndicationFeed.apt b/src/site/apt/ROMEReleases/ROME0.2Beta/RomeV0.2Tutorials/RomeV0.2TutorialUsingRomeToReadASyndicationFeed.apt index 18fe964..4fd7131 100644 --- a/src/site/apt/ROMEReleases/ROME0.2Beta/RomeV0.2Tutorials/RomeV0.2TutorialUsingRomeToReadASyndicationFeed.apt +++ b/src/site/apt/ROMEReleases/ROME0.2Beta/RomeV0.2Tutorials/RomeV0.2TutorialUsingRomeToReadASyndicationFeed.apt @@ -12,7 +12,7 @@ Rome v0.2 Tutorial, Using Rome to read a syndication feed <> J2SE 1.4\+, JDOM B10 and Rome 0.2. - Rome represents syndication feeds (RSS and Atom) as instances of the com.sun.syndication.synd.SyndFeedI interface. The SyndFeedI interfaces and its properties follow the Java Bean patterns. The default implementations provided with Rome are all lightweight classes. + Rome represents syndication feeds (RSS and Atom) as instances of the com.rometools.rome.synd.SyndFeedI interface. The SyndFeedI interfaces and its properties follow the Java Bean patterns. The default implementations provided with Rome are all lightweight classes. Rome includes parsers to process syndication feeds into SyndFeedI instances. The SyndFeedInput class handles the parsers using the correct one based on the syndication feed being processed. The developer does not need to worry about selecting the right parser for a syndication feed, the SyndFeedInput will take care of it by peeking at the syndication feed structure. All it takes to read a syndication feed using Rome are the following 2 lines of code: @@ -45,11 +45,11 @@ System.out.println(feed); +------+ -package com.sun.syndication.samples; +package com.rometools.rome.samples; import java.net.URL; -import com.sun.syndication.feed.synd.SyndFeedI; -import com.sun.syndication.io.SyndFeedInput; +import com.rometools.rome.feed.synd.SyndFeedI; +import com.rometools.rome.io.SyndFeedInput; /** * It Reads and prints any RSS/Atom feed type. diff --git a/src/site/apt/ROMEReleases/ROME0.3Beta/RomeV0.3Tutorials/RomeV0.3TutorialDefiningACustomModuleBeanParserAndGenerator.apt b/src/site/apt/ROMEReleases/ROME0.3Beta/RomeV0.3Tutorials/RomeV0.3TutorialDefiningACustomModuleBeanParserAndGenerator.apt index f9b78bd..231dca9 100644 --- a/src/site/apt/ROMEReleases/ROME0.3Beta/RomeV0.3Tutorials/RomeV0.3TutorialDefiningACustomModuleBeanParserAndGenerator.apt +++ b/src/site/apt/ROMEReleases/ROME0.3Beta/RomeV0.3Tutorials/RomeV0.3TutorialDefiningACustomModuleBeanParserAndGenerator.apt @@ -319,19 +319,19 @@ public class SampleModuleGenerator implements ModuleGenerator { # Parsers for RSS 1.0 feed modules # -rss_1.0.feed.ModuleParser.classes=com.sun.syndication.samples.module.SampleModuleParser +rss_1.0.feed.ModuleParser.classes=com.rometools.rome.samples.module.SampleModuleParser # Parsers for RSS 1.0 item modules # -rss_1.0.item.ModuleParser.classes=com.sun.syndication.samples.module.SampleModuleParser +rss_1.0.item.ModuleParser.classes=com.rometools.rome.samples.module.SampleModuleParser # Generators for RSS 1.0 feed modules # -rss_1.0.feed.ModuleGenerator.classes=com.sun.syndication.samples.module.SampleModuleGenerator +rss_1.0.feed.ModuleGenerator.classes=com.rometools.rome.samples.module.SampleModuleGenerator # Generators for RSS_1.0 entry modules # -rss_1.0.item.ModuleGenerator.classes=com.sun.syndication.samples.module.SampleModuleGenerator +rss_1.0.item.ModuleGenerator.classes=com.rometools.rome.samples.module.SampleModuleGenerator +------+ diff --git a/src/site/apt/ROMEReleases/ROME0.3Beta/RomeV0.3Tutorials/RomeV0.3TutorialUsingRomeToAggregateManySyndicationFeedsIntoASingleOne.apt b/src/site/apt/ROMEReleases/ROME0.3Beta/RomeV0.3Tutorials/RomeV0.3TutorialUsingRomeToAggregateManySyndicationFeedsIntoASingleOne.apt index b6b0c78..1f61f36 100644 --- a/src/site/apt/ROMEReleases/ROME0.3Beta/RomeV0.3Tutorials/RomeV0.3TutorialUsingRomeToAggregateManySyndicationFeedsIntoASingleOne.apt +++ b/src/site/apt/ROMEReleases/ROME0.3Beta/RomeV0.3Tutorials/RomeV0.3TutorialUsingRomeToAggregateManySyndicationFeedsIntoASingleOne.apt @@ -12,7 +12,7 @@ Rome v0.3 Tutorial, Using Rome to aggregate many syndication feeds into a single <> J2SE 1.4\+, JDOM B10 and Rome 0.3. - Rome represents syndication feeds (RSS and Atom) as instances of the com.sun.syndication.synd.SyndFeedI interface. The SyndFeedI interfaces and its properties follow the Java Bean patterns. The default implementations provided with Rome are all lightweight classes. + Rome represents syndication feeds (RSS and Atom) as instances of the com.rometools.rome.synd.SyndFeedI interface. The SyndFeedI interfaces and its properties follow the Java Bean patterns. The default implementations provided with Rome are all lightweight classes. Rome includes parsers to process syndication feeds into SyndFeedI instances. The SyndFeedInput class handles the parsers using the correct one based on the syndication feed being processed. The developer does not need to worry about selecting the right parser for a syndication feed, the SyndFeedInput will take care of it by peeking at the syndication feed structure. All it takes to read a syndication feed using Rome are the following 2 lines of code: @@ -73,7 +73,7 @@ aggrFeed.setLink("http://www.anonymous.com"); +------+ -package com.sun.syndication.samples; +package com.rometools.rome.samples; import java.net.URL; import java.io.InputStreamReader; @@ -81,10 +81,10 @@ import java.io.PrintWriter; import java.util.List; import java.util.ArrayList; -import com.sun.syndication.feed.synd.SyndFeedI; -import com.sun.syndication.feed.synd.SyndFeed; -import com.sun.syndication.io.SyndFeedOutput; -import com.sun.syndication.io.SyndFeedInput; +import com.rometools.rome.feed.synd.SyndFeedI; +import com.rometools.rome.feed.synd.SyndFeed; +import com.rometools.rome.io.SyndFeedOutput; +import com.rometools.rome.io.SyndFeedInput; /** * It aggregates a list of RSS/Atom feeds (they can be of different types) diff --git a/src/site/apt/ROMEReleases/ROME0.3Beta/RomeV0.3Tutorials/RomeV0.3TutorialUsingRomeToConvertASyndicationFeedFromOneTypeToAnother.apt b/src/site/apt/ROMEReleases/ROME0.3Beta/RomeV0.3Tutorials/RomeV0.3TutorialUsingRomeToConvertASyndicationFeedFromOneTypeToAnother.apt index 9eba9d7..35aed63 100644 --- a/src/site/apt/ROMEReleases/ROME0.3Beta/RomeV0.3Tutorials/RomeV0.3TutorialUsingRomeToConvertASyndicationFeedFromOneTypeToAnother.apt +++ b/src/site/apt/ROMEReleases/ROME0.3Beta/RomeV0.3Tutorials/RomeV0.3TutorialUsingRomeToConvertASyndicationFeedFromOneTypeToAnother.apt @@ -12,7 +12,7 @@ Rome v0.3 Tutorial, Using Rome to convert a syndication feed from one type to an <> Synd J2SE 1.4\+, JDOM B10 and Rome 0.3. - Rome represents syndication feeds (RSS and Atom) as instances of the com.sun.syndication.synd.SyndFeedI interface. The SyndFeedI interfaces and its properties follow the Java Bean patterns. The default implementations provided with Rome are all lightweight classes. + Rome represents syndication feeds (RSS and Atom) as instances of the com.rometools.rome.synd.SyndFeedI interface. The SyndFeedI interfaces and its properties follow the Java Bean patterns. The default implementations provided with Rome are all lightweight classes. Rome includes parsers to process syndication feeds into SyndFeedI instances. The SyndFeedInput class handles the parsers using the correct one based on the syndication feed being processed. The developer does not need to worry about selecting the right parser for a syndication feed, the SyndFeedInput will take care of it by peeking at the syndication feed structure. All it takes to read a syndication feed using Rome are the following 2 lines of code: @@ -51,14 +51,14 @@ output.output(feed,new PrintWriter(System.out)); +------+ -package com.sun.syndication.samples; +package com.rometools.rome.samples; import java.net.URL; import java.io.InputStreamReader; import java.io.PrintWriter; -import com.sun.syndication.feed.synd.SyndFeedI; -import com.sun.syndication.io.SyndFeedInput; -import com.sun.syndication.io.SyndFeedOutput; +import com.rometools.rome.feed.synd.SyndFeedI; +import com.rometools.rome.io.SyndFeedInput; +import com.rometools.rome.io.SyndFeedOutput; /** * It Converts any RSS/Atom feed type to a an RSS/Atom feed of the diff --git a/src/site/apt/ROMEReleases/ROME0.3Beta/RomeV0.3Tutorials/RomeV0.3TutorialUsingRomeToCreateAndWriteASyndicationFeed.apt b/src/site/apt/ROMEReleases/ROME0.3Beta/RomeV0.3Tutorials/RomeV0.3TutorialUsingRomeToCreateAndWriteASyndicationFeed.apt index 859b92b..bd473de 100644 --- a/src/site/apt/ROMEReleases/ROME0.3Beta/RomeV0.3Tutorials/RomeV0.3TutorialUsingRomeToCreateAndWriteASyndicationFeed.apt +++ b/src/site/apt/ROMEReleases/ROME0.3Beta/RomeV0.3Tutorials/RomeV0.3TutorialUsingRomeToCreateAndWriteASyndicationFeed.apt @@ -12,7 +12,7 @@ Rome v0.3 Tutorial, Using Rome to create and write a syndication feed <> J2SE 1.4\+, JDOM B10 and Rome 0.3. - Rome represents syndication feeds (RSS and Atom) as instances of the com.sun.syndication.synd.SyndFeedI interface. The SyndFeedI interfaces and its properties follow the Java Bean patterns. The default implementations provided with Rome are all lightweight classes. + Rome represents syndication feeds (RSS and Atom) as instances of the com.rometools.rome.synd.SyndFeedI interface. The SyndFeedI interfaces and its properties follow the Java Bean patterns. The default implementations provided with Rome are all lightweight classes. Creating a feed with SyndFeedI beans consists of creating beans and setting their properties. The following code fragments show how a SyndFeedI bean with 3 entries is created. @@ -102,10 +102,10 @@ output.output(feed,writer); +------+ -package com.sun.syndication.samples; +package com.rometools.rome.samples; -import com.sun.syndication.feed.synd.*; -import com.sun.syndication.io.SyndFeedOutput; +import com.rometools.rome.feed.synd.*; +import com.rometools.rome.io.SyndFeedOutput; import java.io.FileWriter; import java.io.Writer; diff --git a/src/site/apt/ROMEReleases/ROME0.3Beta/RomeV0.3Tutorials/RomeV0.3TutorialUsingRomeToReadASyndicationFeed.apt b/src/site/apt/ROMEReleases/ROME0.3Beta/RomeV0.3Tutorials/RomeV0.3TutorialUsingRomeToReadASyndicationFeed.apt index 137740d..0d585e9 100644 --- a/src/site/apt/ROMEReleases/ROME0.3Beta/RomeV0.3Tutorials/RomeV0.3TutorialUsingRomeToReadASyndicationFeed.apt +++ b/src/site/apt/ROMEReleases/ROME0.3Beta/RomeV0.3Tutorials/RomeV0.3TutorialUsingRomeToReadASyndicationFeed.apt @@ -12,7 +12,7 @@ Rome v0.3 Tutorial, Using Rome to read a syndication feed <> J2SE 1.4\+, JDOM B10 and Rome 0.3. - Rome represents syndication feeds (RSS and Atom) as instances of the com.sun.syndication.synd.SyndFeedI interface. The SyndFeedI interfaces and its properties follow the Java Bean patterns. The default implementations provided with Rome are all lightweight classes. + Rome represents syndication feeds (RSS and Atom) as instances of the com.rometools.rome.synd.SyndFeedI interface. The SyndFeedI interfaces and its properties follow the Java Bean patterns. The default implementations provided with Rome are all lightweight classes. Rome includes parsers to process syndication feeds into SyndFeedI instances. The SyndFeedInput class handles the parsers using the correct one based on the syndication feed being processed. The developer does not need to worry about selecting the right parser for a syndication feed, the SyndFeedInput will take care of it by peeking at the syndication feed structure. All it takes to read a syndication feed using Rome are the following 2 lines of code: @@ -48,12 +48,12 @@ System.out.println(feed); +------+ -package com.sun.syndication.samples; +package com.rometools.rome.samples; import java.net.URL; import java.io.InputStreamReader; -import com.sun.syndication.feed.synd.SyndFeedI; -import com.sun.syndication.io.SyndFeedInput; +import com.rometools.rome.feed.synd.SyndFeedI; +import com.rometools.rome.io.SyndFeedInput; /** * It Reads and prints any RSS/Atom feed type. diff --git a/src/site/apt/ROMEReleases/ROME0.4Beta/RomeV0.4Tutorials/RomeV0.4TutorialUsingRomeWithinAServletToCreateAndReturnAFeed.apt b/src/site/apt/ROMEReleases/ROME0.4Beta/RomeV0.4Tutorials/RomeV0.4TutorialUsingRomeWithinAServletToCreateAndReturnAFeed.apt index ffe3122..4d2b56a 100644 --- a/src/site/apt/ROMEReleases/ROME0.4Beta/RomeV0.4Tutorials/RomeV0.4TutorialUsingRomeWithinAServletToCreateAndReturnAFeed.apt +++ b/src/site/apt/ROMEReleases/ROME0.4Beta/RomeV0.4Tutorials/RomeV0.4TutorialUsingRomeWithinAServletToCreateAndReturnAFeed.apt @@ -66,11 +66,11 @@ public class FeedServlet extends HttpServlet { +------+ -package com.sun.syndication.samples.servlet; +package com.rometools.rome.samples.servlet; -import com.sun.syndication.feed.synd.*; -import com.sun.syndication.io.FeedException; -import com.sun.syndication.io.SyndFeedOutput; +import com.rometools.rome.feed.synd.*; +import com.rometools.rome.io.FeedException; +import com.rometools.rome.io.SyndFeedOutput; import javax.servlet.http.HttpServlet; import javax.servlet.http.HttpServletRequest; @@ -222,7 +222,7 @@ public class FeedServlet extends HttpServlet { FeedServlet - com.sun.syndication.samples.servlet.FeedServlet + com.rometools.rome.samples.servlet.FeedServlet default.feed.type rss_2.0 diff --git a/src/site/apt/RssAndAtOMUtilitiEsROMEV0.5AndAboveTutorialsAndArticles/RssAndAtOMUtilitiEsROMEPluginsMechanism.apt b/src/site/apt/RssAndAtOMUtilitiEsROMEV0.5AndAboveTutorialsAndArticles/RssAndAtOMUtilitiEsROMEPluginsMechanism.apt index e9c1d5f..eaf0749 100644 --- a/src/site/apt/RssAndAtOMUtilitiEsROMEV0.5AndAboveTutorialsAndArticles/RssAndAtOMUtilitiEsROMEPluginsMechanism.apt +++ b/src/site/apt/RssAndAtOMUtilitiEsROMEV0.5AndAboveTutorialsAndArticles/RssAndAtOMUtilitiEsROMEPluginsMechanism.apt @@ -33,13 +33,13 @@ Rss and atOM utilitiEs (ROME) Plugins Mechanism For each type of plugin (parser, generator, converter, ect) a list of available plugins is built following the read order just described. The plugins classes are then loaded and instantiated. All plugins have some kind of primary key. In the case or parsers, generators and converters the primary key is the type of feed they handle. In the case of modules, the primary key is the module URI. If a plugin list definition (the aggregation of all the plugins of the same time from all the <<>>) contains more than one plugin with the same primary key, the latter one is the one that will be used(this enables replacing default plugins with custom ones). - The plugins are read, loaded and managed by the implementation class <<>>. This class is an abstract class and it is extended to provide support for each type of plugin. + The plugins are read, loaded and managed by the implementation class <<>>. This class is an abstract class and it is extended to provide support for each type of plugin. *Parser Plugins - Parser plugins are managed by the <<>> class (subclass of the <<>>). This plugin manager looks for the <<>> property in all the <<>> files. The fully qualified names of the parser classes must be separated by whitespaces or commas. For example, the default <<>> file parser plugins definition is as follows: + Parser plugins are managed by the <<>> class (subclass of the <<>>). This plugin manager looks for the <<>> property in all the <<>> files. The fully qualified names of the parser classes must be separated by whitespaces or commas. For example, the default <<>> file parser plugins definition is as follows: @@ -47,26 +47,26 @@ Rss and atOM utilitiEs (ROME) Plugins Mechanism # Feed Parser implementation classes # -WireFeedParser.classes=com.sun.syndication.io.impl.RSS090Parser \ - com.sun.syndication.io.impl.RSS091NetscapeParser \ - com.sun.syndication.io.impl.RSS091UserlandParser \ - com.sun.syndication.io.impl.RSS092Parser \ - com.sun.syndication.io.impl.RSS093Parser \ - com.sun.syndication.io.impl.RSS094Parser \ - com.sun.syndication.io.impl.RSS10Parser \ - com.sun.syndication.io.impl.RSS20wNSParser \ - com.sun.syndication.io.impl.RSS20Parser \ - com.sun.syndication.io.impl.Atom03Parser +WireFeedParser.classes=com.rometools.rome.io.impl.RSS090Parser \ + com.rometools.rome.io.impl.RSS091NetscapeParser \ + com.rometools.rome.io.impl.RSS091UserlandParser \ + com.rometools.rome.io.impl.RSS092Parser \ + com.rometools.rome.io.impl.RSS093Parser \ + com.rometools.rome.io.impl.RSS094Parser \ + com.rometools.rome.io.impl.RSS10Parser \ + com.rometools.rome.io.impl.RSS20wNSParser \ + com.rometools.rome.io.impl.RSS20Parser \ + com.rometools.rome.io.impl.Atom03Parser +------+ - All the classes defined in this property have to implement the <<>> interface. Parser instances must be thread safe. The return value of the <<>> method is used as the primary key. If more than one parser returns the same type, the latter one prevails. + All the classes defined in this property have to implement the <<>> interface. Parser instances must be thread safe. The return value of the <<>> method is used as the primary key. If more than one parser returns the same type, the latter one prevails. *Generator Plugins - Generator plugins are managed by the <<>> class (subclass of the <<>>). This plugin manager looks for the <<>> property in all the <<>> files. The fully qualified names of the generator classes must be separated by whitespaces or commas. For example, the default <<>> file generator plugins definition is as follows: + Generator plugins are managed by the <<>> class (subclass of the <<>>). This plugin manager looks for the <<>> property in all the <<>> files. The fully qualified names of the generator classes must be separated by whitespaces or commas. For example, the default <<>> file generator plugins definition is as follows: @@ -74,25 +74,25 @@ WireFeedParser.classes=com.sun.syndication.io.impl.RSS090Parser \ # Feed Generator implementation classes # -WireFeedGenerator.classes=com.sun.syndication.io.impl.RSS090Generator \ - com.sun.syndication.io.impl.RSS091NetscapeGenerator \ - com.sun.syndication.io.impl.RSS091UserlandGenerator \ - com.sun.syndication.io.impl.RSS092Generator \ - com.sun.syndication.io.impl.RSS093Generator \ - com.sun.syndication.io.impl.RSS094Generator \ - com.sun.syndication.io.impl.RSS10Generator \ - com.sun.syndication.io.impl.RSS20Generator \ - com.sun.syndication.io.impl.Atom03Generator +WireFeedGenerator.classes=com.rometools.rome.io.impl.RSS090Generator \ + com.rometools.rome.io.impl.RSS091NetscapeGenerator \ + com.rometools.rome.io.impl.RSS091UserlandGenerator \ + com.rometools.rome.io.impl.RSS092Generator \ + com.rometools.rome.io.impl.RSS093Generator \ + com.rometools.rome.io.impl.RSS094Generator \ + com.rometools.rome.io.impl.RSS10Generator \ + com.rometools.rome.io.impl.RSS20Generator \ + com.rometools.rome.io.impl.Atom03Generator +------+ - All the classes defined in this property have to implement the <<>> interface. Generator instances must be thread safe. The return value of the <<>> method is used as the primary key. If more than one generator returns the same type, the latter one prevails. + All the classes defined in this property have to implement the <<>> interface. Generator instances must be thread safe. The return value of the <<>> method is used as the primary key. If more than one generator returns the same type, the latter one prevails. *Converter Plugins - Converter plugins are managed by the <<>> class (subclass of the <<>>). This plugin manager looks for the <<>> property in all the <<>> files. The fully qualified names of the converter classes must be separated by whitespaces or commas. For example, the default <<>> file converter plugins definition is as follows: + Converter plugins are managed by the <<>> class (subclass of the <<>>). This plugin manager looks for the <<>> property in all the <<>> files. The fully qualified names of the converter classes must be separated by whitespaces or commas. For example, the default <<>> file converter plugins definition is as follows: @@ -100,19 +100,19 @@ WireFeedGenerator.classes=com.sun.syndication.io.impl.RSS090Generator \ # Feed Conversor implementation classes # -Converter.classes=com.sun.syndication.feed.synd.impl.ConverterForAtom03 \ - com.sun.syndication.feed.synd.impl.ConverterForRSS090 \ - com.sun.syndication.feed.synd.impl.ConverterForRSS091Netscape \ - com.sun.syndication.feed.synd.impl.ConverterForRSS091Userland \ - com.sun.syndication.feed.synd.impl.ConverterForRSS092 \ - com.sun.syndication.feed.synd.impl.ConverterForRSS093 \ - com.sun.syndication.feed.synd.impl.ConverterForRSS094 \ - com.sun.syndication.feed.synd.impl.ConverterForRSS10 \ - com.sun.syndication.feed.synd.impl.ConverterForRSS20 +Converter.classes=com.rometools.rome.feed.synd.impl.ConverterForAtom03 \ + com.rometools.rome.feed.synd.impl.ConverterForRSS090 \ + com.rometools.rome.feed.synd.impl.ConverterForRSS091Netscape \ + com.rometools.rome.feed.synd.impl.ConverterForRSS091Userland \ + com.rometools.rome.feed.synd.impl.ConverterForRSS092 \ + com.rometools.rome.feed.synd.impl.ConverterForRSS093 \ + com.rometools.rome.feed.synd.impl.ConverterForRSS094 \ + com.rometools.rome.feed.synd.impl.ConverterForRSS10 \ + com.rometools.rome.feed.synd.impl.ConverterForRSS20 +------+ - All the classes defined in this property have to implement the <<>> interface. Converter instances must be thread safe. The return value of the <<>> method is used as the primary key. If more than one converter returns the same type, the latter one prevails. + All the classes defined in this property have to implement the <<>> interface. Converter instances must be thread safe. The return value of the <<>> method is used as the primary key. If more than one converter returns the same type, the latter one prevails. *Module Plugins @@ -130,7 +130,7 @@ Converter.classes=com.sun.syndication.feed.synd.impl.ConverterForAtom03 \ Module parsers and generators are defined at feed and item level. This allow selective handling of modules, for example handling Syndication module at feed level only. - Module parser plugins are managed by the <<>> class (subclass of the <<>>). This plugin manager looks for the <<<.feed.ModuleParser.classes>>> and the <<<.item.ModuleParser.classes>>> properties in all the <<>> files. must be the type defined by the parser (ie: rss_1.0, atom_0.3). The fully qualified names of the module parser classes must be separated by whitespaces or commas. For example, the default <<>> file modules parser plugins definition is as follows: + Module parser plugins are managed by the <<>> class (subclass of the <<>>). This plugin manager looks for the <<<.feed.ModuleParser.classes>>> and the <<<.item.ModuleParser.classes>>> properties in all the <<>> files. must be the type defined by the parser (ie: rss_1.0, atom_0.3). The fully qualified names of the module parser classes must be separated by whitespaces or commas. For example, the default <<>> file modules parser plugins definition is as follows: @@ -138,21 +138,21 @@ Converter.classes=com.sun.syndication.feed.synd.impl.ConverterForAtom03 \ # Parsers for Atom 0.3 feed modules # -atom_0.3.feed.ModuleParser.classes=com.sun.syndication.io.impl.SyModuleParser \ - com.sun.syndication.io.impl.DCModuleParser +atom_0.3.feed.ModuleParser.classes=com.rometools.rome.io.impl.SyModuleParser \ + com.rometools.rome.io.impl.DCModuleParser # Parsers for Atom 0.3 entry modules # -atom_0.3.item.ModuleParser.classes=com.sun.syndication.io.impl.DCModuleParser +atom_0.3.item.ModuleParser.classes=com.rometools.rome.io.impl.DCModuleParser # Parsers for RSS 1.0 feed modules # -rss_1.0.feed.ModuleParser.classes=com.sun.syndication.io.impl.SyModuleParser \ - com.sun.syndication.io.impl.DCModuleParser +rss_1.0.feed.ModuleParser.classes=com.rometools.rome.io.impl.SyModuleParser \ + com.rometools.rome.io.impl.DCModuleParser # Parsers for RSS 1.0 item modules # -rss_1.0.item.ModuleParser.classes=com.sun.syndication.io.impl.DCModuleParser +rss_1.0.item.ModuleParser.classes=com.rometools.rome.io.impl.DCModuleParser # Parsers for RSS 2.0 feed modules # @@ -164,10 +164,10 @@ rss_2.0.item.ModuleParser.classes= +------+ - All the classes defined in this property have to implement the <<>> interface. ModuleParser instances must be thread safe. The return value of the <<>> method is used as the primary key. If more than one module parser returns the same URI, the latter one prevails. + All the classes defined in this property have to implement the <<>> interface. ModuleParser instances must be thread safe. The return value of the <<>> method is used as the primary key. If more than one module parser returns the same URI, the latter one prevails. - Module generator plugins are managed by the <<>> class (subclass of the <<>>). This plugin manager looks for the <<<.feed.ModuleGenerator.classes>>> and the <<<.item.ModuleGenerator.classes>>> properties in all the <<>> files. must be the type defined by the generator (ie: rss_1.0, atom_0.3). The fully qualified names of the module generator classes must be separated by whitespaces or commas. For example, the default <<>> file modules generator plugins definition is as follows: + Module generator plugins are managed by the <<>> class (subclass of the <<>>). This plugin manager looks for the <<<.feed.ModuleGenerator.classes>>> and the <<<.item.ModuleGenerator.classes>>> properties in all the <<>> files. must be the type defined by the generator (ie: rss_1.0, atom_0.3). The fully qualified names of the module generator classes must be separated by whitespaces or commas. For example, the default <<>> file modules generator plugins definition is as follows: @@ -175,21 +175,21 @@ rss_2.0.item.ModuleParser.classes= # Generators for Atom 0.3 feed modules # -atom_0.3.feed.ModuleGenerator.classes=com.sun.syndication.io.impl.SyModuleGenerator \ - com.sun.syndication.io.impl.DCModuleGenerator +atom_0.3.feed.ModuleGenerator.classes=com.rometools.rome.io.impl.SyModuleGenerator \ + com.rometools.rome.io.impl.DCModuleGenerator # Generators for Atom 0.3 entry modules # -atom_0.3.item.ModuleGenerator.classes=com.sun.syndication.io.impl.DCModuleGenerator +atom_0.3.item.ModuleGenerator.classes=com.rometools.rome.io.impl.DCModuleGenerator # Generators for RSS 1.0 feed modules # -rss_1.0.feed.ModuleGenerator.classes=com.sun.syndication.io.impl.SyModuleGenerator \ - com.sun.syndication.io.impl.DCModuleGenerator +rss_1.0.feed.ModuleGenerator.classes=com.rometools.rome.io.impl.SyModuleGenerator \ + com.rometools.rome.io.impl.DCModuleGenerator # Generators for RSS_1.0 entry modules # -rss_1.0.item.ModuleGenerator.classes=com.sun.syndication.io.impl.DCModuleGenerator +rss_1.0.item.ModuleGenerator.classes=com.rometools.rome.io.impl.DCModuleGenerator # Generators for RSS 2.0 feed modules # @@ -201,7 +201,7 @@ rss_2.0.item.ModuleGenerator.classes= +------+ - All the classes defined in this property have to implement the <<>> interface. ModuleGenerator instances must be thread safe. The return value of the <<>> method is used as the primary key. If more than one module generator returns the same URI, the latter one prevails. + All the classes defined in this property have to implement the <<>> interface. ModuleGenerator instances must be thread safe. The return value of the <<>> method is used as the primary key. If more than one module generator returns the same URI, the latter one prevails. See also: a step\-by\-step {{{./RssAndAtOMUtilitiEsROMEV0.5TutorialDefiningACustomModuleBeanParserAndGenerator.html}tutorial for implementing a custom module}}. diff --git a/src/site/apt/RssAndAtOMUtilitiEsROMEV0.5AndAboveTutorialsAndArticles/RssAndAtOMUtilitiEsROMEV0.5TutorialDefiningACustomModuleBeanParserAndGenerator.apt b/src/site/apt/RssAndAtOMUtilitiEsROMEV0.5AndAboveTutorialsAndArticles/RssAndAtOMUtilitiEsROMEV0.5TutorialDefiningACustomModuleBeanParserAndGenerator.apt index d964a36..67889e6 100644 --- a/src/site/apt/RssAndAtOMUtilitiEsROMEV0.5AndAboveTutorialsAndArticles/RssAndAtOMUtilitiEsROMEV0.5TutorialDefiningACustomModuleBeanParserAndGenerator.apt +++ b/src/site/apt/RssAndAtOMUtilitiEsROMEV0.5AndAboveTutorialsAndArticles/RssAndAtOMUtilitiEsROMEV0.5TutorialDefiningACustomModuleBeanParserAndGenerator.apt @@ -340,19 +340,19 @@ public class SampleModuleGenerator implements ModuleGenerator { # Parsers for RSS 1.0 feed modules # -rss_1.0.feed.ModuleParser.classes=com.sun.syndication.samples.module.SampleModuleParser +rss_1.0.feed.ModuleParser.classes=com.rometools.rome.samples.module.SampleModuleParser # Parsers for RSS 1.0 item modules # -rss_1.0.item.ModuleParser.classes=com.sun.syndication.samples.module.SampleModuleParser +rss_1.0.item.ModuleParser.classes=com.rometools.rome.samples.module.SampleModuleParser # Generators for RSS 1.0 feed modules # -rss_1.0.feed.ModuleGenerator.classes=com.sun.syndication.samples.module.SampleModuleGenerator +rss_1.0.feed.ModuleGenerator.classes=com.rometools.rome.samples.module.SampleModuleGenerator # Generators for RSS_1.0 entry modules # -rss_1.0.item.ModuleGenerator.classes=com.sun.syndication.samples.module.SampleModuleGenerator +rss_1.0.item.ModuleGenerator.classes=com.rometools.rome.samples.module.SampleModuleGenerator +------+ diff --git a/src/site/apt/RssAndAtOMUtilitiEsROMEV0.5AndAboveTutorialsAndArticles/RssAndAtOMUtilitiEsROMEV0.5TutorialUsingROMEToAggregateManySyndicationFeedsIntoASingleOne.apt b/src/site/apt/RssAndAtOMUtilitiEsROMEV0.5AndAboveTutorialsAndArticles/RssAndAtOMUtilitiEsROMEV0.5TutorialUsingROMEToAggregateManySyndicationFeedsIntoASingleOne.apt index 48171a5..8d037d5 100644 --- a/src/site/apt/RssAndAtOMUtilitiEsROMEV0.5AndAboveTutorialsAndArticles/RssAndAtOMUtilitiEsROMEV0.5TutorialUsingROMEToAggregateManySyndicationFeedsIntoASingleOne.apt +++ b/src/site/apt/RssAndAtOMUtilitiEsROMEV0.5AndAboveTutorialsAndArticles/RssAndAtOMUtilitiEsROMEV0.5TutorialUsingROMEToAggregateManySyndicationFeedsIntoASingleOne.apt @@ -12,7 +12,7 @@ Rss and atOM utilitiEs (ROME) v0.5 Tutorial, Using ROME to aggregate many syndic <> J2SE 1.4\+, JDOM 1.0 and ROME 0.5. - ROME represents syndication feeds (RSS and Atom) as instances of the com.sun.syndication.synd.SyndFeed interface. The SyndFeed interfaces and its properties follow the Java Bean patterns. The default implementations provided with ROME are all lightweight classes. + ROME represents syndication feeds (RSS and Atom) as instances of the com.rometools.rome.synd.SyndFeed interface. The SyndFeed interfaces and its properties follow the Java Bean patterns. The default implementations provided with ROME are all lightweight classes. ROME includes parsers to process syndication feeds into SyndFeed instances. The SyndFeedInput class handles the parsers using the correct one based on the syndication feed being processed. The developer does not need to worry about selecting the right parser for a syndication feed, the SyndFeedInput will take care of it by peeking at the syndication feed structure. All it takes to read a syndication feed using ROME are the following 2 lines of code: @@ -70,7 +70,7 @@ aggrFeed.setLink("http://www.anonymous.com"); +------+ -package com.sun.syndication.samples; +package com.rometools.rome.samples; import java.net.URL; import java.io.InputStreamReader; @@ -78,11 +78,11 @@ import java.io.PrintWriter; import java.util.List; import java.util.ArrayList; -import com.sun.syndication.feed.synd.SyndFeed; -import com.sun.syndication.feed.synd.SyndFeedImpl; -import com.sun.syndication.io.SyndFeedOutput; -import com.sun.syndication.io.SyndFeedInput; -import com.sun.syndication.io.XmlReader; +import com.rometools.rome.feed.synd.SyndFeed; +import com.rometools.rome.feed.synd.SyndFeedImpl; +import com.rometools.rome.io.SyndFeedOutput; +import com.rometools.rome.io.SyndFeedInput; +import com.rometools.rome.io.XmlReader; /** * It aggregates a list of RSS/Atom feeds (they can be of different types) diff --git a/src/site/apt/RssAndAtOMUtilitiEsROMEV0.5AndAboveTutorialsAndArticles/RssAndAtOMUtilitiEsROMEV0.5TutorialUsingROMEToConvertASyndicationFeedFromOneTypeToAnother.apt b/src/site/apt/RssAndAtOMUtilitiEsROMEV0.5AndAboveTutorialsAndArticles/RssAndAtOMUtilitiEsROMEV0.5TutorialUsingROMEToConvertASyndicationFeedFromOneTypeToAnother.apt index 8788314..1f4890b 100644 --- a/src/site/apt/RssAndAtOMUtilitiEsROMEV0.5AndAboveTutorialsAndArticles/RssAndAtOMUtilitiEsROMEV0.5TutorialUsingROMEToConvertASyndicationFeedFromOneTypeToAnother.apt +++ b/src/site/apt/RssAndAtOMUtilitiEsROMEV0.5AndAboveTutorialsAndArticles/RssAndAtOMUtilitiEsROMEV0.5TutorialUsingROMEToConvertASyndicationFeedFromOneTypeToAnother.apt @@ -12,7 +12,7 @@ Rss and atOM utilitiEs (ROME) v0.5 Tutorial, Using ROME to convert a syndication <> Synd J2SE 1.4\+, JDOM 1.0 and ROME 0.5. - ROME represents syndication feeds (RSS and Atom) as instances of the com.sun.syndication.synd.SyndFeed interface. The SyndFeed interfaces and its properties follow the Java Bean patterns. The default implementations provided with ROME are all lightweight classes. + ROME represents syndication feeds (RSS and Atom) as instances of the com.rometools.rome.synd.SyndFeed interface. The SyndFeed interfaces and its properties follow the Java Bean patterns. The default implementations provided with ROME are all lightweight classes. ROME includes parsers to process syndication feeds into SyndFeed instances. The SyndFeedInput class handles the parsers using the correct one based on the syndication feed being processed. The developer does not need to worry about selecting the right parser for a syndication feed, the SyndFeedInput will take care of it by peeking at the syndication feed structure. All it takes to read a syndication feed using ROME are the following 2 lines of code: @@ -49,15 +49,15 @@ output.output(feed,new PrintWriter(System.out)); +------+ -package com.sun.syndication.samples; +package com.rometools.rome.samples; import java.net.URL; import java.io.InputStreamReader; import java.io.PrintWriter; -import com.sun.syndication.feed.synd.SyndFeed; -import com.sun.syndication.io.SyndFeedInput; -import com.sun.syndication.io.SyndFeedOutput; -import com.sun.syndication.io.XmlReader; +import com.rometools.rome.feed.synd.SyndFeed; +import com.rometools.rome.io.SyndFeedInput; +import com.rometools.rome.io.SyndFeedOutput; +import com.rometools.rome.io.XmlReader; /** * It Converts any RSS/Atom feed type to a an RSS/Atom feed of the diff --git a/src/site/apt/RssAndAtOMUtilitiEsROMEV0.5AndAboveTutorialsAndArticles/RssAndAtOMUtilitiEsROMEV0.5TutorialUsingROMEToCreateAndWriteASyndicationFeed.apt b/src/site/apt/RssAndAtOMUtilitiEsROMEV0.5AndAboveTutorialsAndArticles/RssAndAtOMUtilitiEsROMEV0.5TutorialUsingROMEToCreateAndWriteASyndicationFeed.apt index 13b8060..edd23b1 100644 --- a/src/site/apt/RssAndAtOMUtilitiEsROMEV0.5AndAboveTutorialsAndArticles/RssAndAtOMUtilitiEsROMEV0.5TutorialUsingROMEToCreateAndWriteASyndicationFeed.apt +++ b/src/site/apt/RssAndAtOMUtilitiEsROMEV0.5AndAboveTutorialsAndArticles/RssAndAtOMUtilitiEsROMEV0.5TutorialUsingROMEToCreateAndWriteASyndicationFeed.apt @@ -12,7 +12,7 @@ Rss and atOM utilitiEs (ROME) v0.5 Tutorial, Using ROME to create and write a sy <> J2SE 1.4\+, JDOM 1.0 and ROME 0.5. - ROME represents syndication feeds (RSS and Atom) as instances of the com.sun.syndication.synd.SyndFeed interface. The SyndFeed interfaces and its properties follow the Java Bean patterns. The default implementations provided with ROME are all lightweight classes. + ROME represents syndication feeds (RSS and Atom) as instances of the com.rometools.rome.synd.SyndFeed interface. The SyndFeed interfaces and its properties follow the Java Bean patterns. The default implementations provided with ROME are all lightweight classes. Creating a feed with SyndFeed beans consists of creating beans and setting their properties. The following code fragments show how a SyndFeed bean with 3 entries is created. @@ -102,10 +102,10 @@ output.output(feed,writer); +------+ -package com.sun.syndication.samples; +package com.rometools.rome.samples; -import com.sun.syndication.feed.synd.*; -import com.sun.syndication.io.SyndFeedOutput; +import com.rometools.rome.feed.synd.*; +import com.rometools.rome.io.SyndFeedOutput; import java.io.FileWriter; import java.io.Writer; diff --git a/src/site/apt/RssAndAtOMUtilitiEsROMEV0.5AndAboveTutorialsAndArticles/RssAndAtOMUtilitiEsROMEV0.5TutorialUsingROMEToReadASyndicationFeed.apt b/src/site/apt/RssAndAtOMUtilitiEsROMEV0.5AndAboveTutorialsAndArticles/RssAndAtOMUtilitiEsROMEV0.5TutorialUsingROMEToReadASyndicationFeed.apt index 09fd997..cd4e53c 100644 --- a/src/site/apt/RssAndAtOMUtilitiEsROMEV0.5AndAboveTutorialsAndArticles/RssAndAtOMUtilitiEsROMEV0.5TutorialUsingROMEToReadASyndicationFeed.apt +++ b/src/site/apt/RssAndAtOMUtilitiEsROMEV0.5AndAboveTutorialsAndArticles/RssAndAtOMUtilitiEsROMEV0.5TutorialUsingROMEToReadASyndicationFeed.apt @@ -12,7 +12,7 @@ Rss and atOM utilitiEs (ROME) v0.5 Tutorial, Using ROME to read a syndication fe <> J2SE 1.4\+, JDOM 1.0 and ROME 0.5. - ROME represents syndication feeds (RSS and Atom) as instances of the com.sun.syndication.synd.SyndFeed interface. The SyndFeed interfaces and its properties follow the Java Bean patterns. The default implementations provided with ROME are all lightweight classes. + ROME represents syndication feeds (RSS and Atom) as instances of the com.rometools.rome.synd.SyndFeed interface. The SyndFeed interfaces and its properties follow the Java Bean patterns. The default implementations provided with ROME are all lightweight classes. ROME includes parsers to process syndication feeds into SyndFeed instances. The SyndFeedInput class handles the parsers using the correct one based on the syndication feed being processed. The developer does not need to worry about selecting the right parser for a syndication feed, the SyndFeedInput will take care of it by peeking at the syndication feed structure. All it takes to read a syndication feed using ROME are the following 2 lines of code: @@ -45,13 +45,13 @@ SyndFeed feed = input.build(new XmlReader(feedUrl)); +------+ -package com.sun.syndication.samples; +package com.rometools.rome.samples; import java.net.URL; import java.io.InputStreamReader; -import com.sun.syndication.feed.synd.SyndFeed; -import com.sun.syndication.io.SyndFeedInput; -import com.sun.syndication.io.XmlReader; +import com.rometools.rome.feed.synd.SyndFeed; +import com.rometools.rome.io.SyndFeedInput; +import com.rometools.rome.io.XmlReader; /** * It Reads and prints any RSS/Atom feed type. diff --git a/src/site/apt/RssAndAtOMUtilitiEsROMEV0.5AndAboveTutorialsAndArticles/RssAndAtOMUtilitiEsROMEV0.5TutorialUsingROMEWithinAServletToCreateAndReturnAFeed.apt b/src/site/apt/RssAndAtOMUtilitiEsROMEV0.5AndAboveTutorialsAndArticles/RssAndAtOMUtilitiEsROMEV0.5TutorialUsingROMEWithinAServletToCreateAndReturnAFeed.apt index b6451e2..dd66044 100644 --- a/src/site/apt/RssAndAtOMUtilitiEsROMEV0.5AndAboveTutorialsAndArticles/RssAndAtOMUtilitiEsROMEV0.5TutorialUsingROMEWithinAServletToCreateAndReturnAFeed.apt +++ b/src/site/apt/RssAndAtOMUtilitiEsROMEV0.5AndAboveTutorialsAndArticles/RssAndAtOMUtilitiEsROMEV0.5TutorialUsingROMEWithinAServletToCreateAndReturnAFeed.apt @@ -66,11 +66,11 @@ public class FeedServlet extends HttpServlet { +------+ -package com.sun.syndication.samples.servlet; +package com.rometools.rome.samples.servlet; -import com.sun.syndication.feed.synd.*; -import com.sun.syndication.io.FeedException; -import com.sun.syndication.io.SyndFeedOutput; +import com.rometools.rome.feed.synd.*; +import com.rometools.rome.io.FeedException; +import com.rometools.rome.io.SyndFeedOutput; import javax.servlet.http.HttpServlet; import javax.servlet.http.HttpServletRequest; @@ -222,7 +222,7 @@ public class FeedServlet extends HttpServlet { FeedServlet - com.sun.syndication.samples.servlet.FeedServlet + com.rometools.rome.samples.servlet.FeedServlet default.feed.type rss_2.0 diff --git a/src/site/apt/RssAndAtOMUtilitiEsROMEV0.5AndAboveTutorialsAndArticles/UnderstandingRssAndAtOMUtilitiEsROMEBeanUtilities.apt b/src/site/apt/RssAndAtOMUtilitiEsROMEV0.5AndAboveTutorialsAndArticles/UnderstandingRssAndAtOMUtilitiEsROMEBeanUtilities.apt index 8102f29..6beec4f 100644 --- a/src/site/apt/RssAndAtOMUtilitiEsROMEV0.5AndAboveTutorialsAndArticles/UnderstandingRssAndAtOMUtilitiEsROMEBeanUtilities.apt +++ b/src/site/apt/RssAndAtOMUtilitiEsROMEV0.5AndAboveTutorialsAndArticles/UnderstandingRssAndAtOMUtilitiEsROMEBeanUtilities.apt @@ -12,7 +12,7 @@ Understanding Rss and atOM utilitiEs (ROME) Bean Utilities ROME bean utilities are not part of ROME public API. They are used by the default implementation of ROME beans and it may be useful for alternate implementations as well. It is important to keep in mind that these APIs are not public and they are subject to change breaking backward compatibility. - Rome package contains a set of Java classes that provide support for all the basic features Java Beans commonly must have: toString, equals, hashcode and cloning. + Rome package contains a set of Java classes that provide support for all the basic features Java Beans commonly must have: toString, equals, hashcode and cloning. By using these classes Beans don't have to hand code these functions. This greatly simplifies things when Beans have several properties, collection properties and composite properties. diff --git a/src/site/apt/WhatPartOfTheAPIYouShouldBeUsing.apt b/src/site/apt/WhatPartOfTheAPIYouShouldBeUsing.apt index deabc90..664c452 100644 --- a/src/site/apt/WhatPartOfTheAPIYouShouldBeUsing.apt +++ b/src/site/apt/WhatPartOfTheAPIYouShouldBeUsing.apt @@ -12,5 +12,5 @@ What part of the API you should be using Rome API allows developers to work with classes that closely resemble a particular syndication feed type. For example, the Channel class for RSS feeds and the Feed class for Atom feeds. All the Synd\* classes, which leverage the RSS and Atom specific classes, are the bridge to go from one syndication type to another. - For day to day coding, we found ourselves using the <> classes (in <>, <> and <> packages) as we need to do applications that understand the different syndication feed types. And it is much simpler to work with a higher and independent abstraction. + For day to day coding, we found ourselves using the <> classes (in <>, <> and <> packages) as we need to do applications that understand the different syndication feed types. And it is much simpler to work with a higher and independent abstraction. diff --git a/src/test/java/com/sun/syndication/unittest/FeedOpsTest.java b/src/test/java/com/rometools/rome/unittest/FeedOpsTest.java similarity index 94% rename from src/test/java/com/sun/syndication/unittest/FeedOpsTest.java rename to src/test/java/com/rometools/rome/unittest/FeedOpsTest.java index 3edb31f..be0b2e5 100644 --- a/src/test/java/com/sun/syndication/unittest/FeedOpsTest.java +++ b/src/test/java/com/rometools/rome/unittest/FeedOpsTest.java @@ -1,13 +1,13 @@ -package com.sun.syndication.unittest; +package com.rometools.rome.unittest; import java.io.ByteArrayInputStream; import java.io.ByteArrayOutputStream; import java.io.ObjectInputStream; import java.io.ObjectOutputStream; -import com.sun.syndication.feed.WireFeed; -import com.sun.syndication.feed.synd.SyndFeed; -import com.sun.syndication.feed.synd.SyndFeedImpl; +import com.rometools.rome.feed.WireFeed; +import com.rometools.rome.feed.synd.SyndFeed; +import com.rometools.rome.feed.synd.SyndFeedImpl; /** * diff --git a/src/test/java/com/sun/syndication/unittest/FeedTest.java b/src/test/java/com/rometools/rome/unittest/FeedTest.java similarity index 89% rename from src/test/java/com/sun/syndication/unittest/FeedTest.java rename to src/test/java/com/rometools/rome/unittest/FeedTest.java index f3c6330..5cbd914 100644 --- a/src/test/java/com/sun/syndication/unittest/FeedTest.java +++ b/src/test/java/com/rometools/rome/unittest/FeedTest.java @@ -1,4 +1,4 @@ -package com.sun.syndication.unittest; +package com.rometools.rome.unittest; import java.io.InputStream; import java.io.InputStreamReader; @@ -10,11 +10,11 @@ import org.jdom2.Document; import org.jdom2.input.SAXBuilder; import org.jdom2.input.sax.XMLReaders; -import com.sun.syndication.feed.WireFeed; -import com.sun.syndication.feed.impl.ConfigurableClassLoader; -import com.sun.syndication.feed.synd.SyndFeed; -import com.sun.syndication.io.SyndFeedInput; -import com.sun.syndication.io.WireFeedInput; +import com.rometools.rome.feed.WireFeed; +import com.rometools.rome.feed.impl.ConfigurableClassLoader; +import com.rometools.rome.feed.synd.SyndFeed; +import com.rometools.rome.io.SyndFeedInput; +import com.rometools.rome.io.WireFeedInput; /** * @author pat, tucu diff --git a/src/test/java/com/sun/syndication/unittest/SyndFeedTest.java b/src/test/java/com/rometools/rome/unittest/SyndFeedTest.java similarity index 97% rename from src/test/java/com/sun/syndication/unittest/SyndFeedTest.java rename to src/test/java/com/rometools/rome/unittest/SyndFeedTest.java index ff3494f..2453268 100644 --- a/src/test/java/com/sun/syndication/unittest/SyndFeedTest.java +++ b/src/test/java/com/rometools/rome/unittest/SyndFeedTest.java @@ -1,12 +1,12 @@ -package com.sun.syndication.unittest; +package com.rometools.rome.unittest; import java.util.Date; import java.util.List; import java.util.Locale; -import com.sun.syndication.feed.synd.SyndEntry; -import com.sun.syndication.feed.synd.SyndImage; -import com.sun.syndication.io.impl.DateParser; +import com.rometools.rome.feed.synd.SyndEntry; +import com.rometools.rome.feed.synd.SyndImage; +import com.rometools.rome.io.impl.DateParser; /** * @author pat diff --git a/src/test/java/com/sun/syndication/unittest/TestAtomContent.java b/src/test/java/com/rometools/rome/unittest/TestAtomContent.java similarity index 85% rename from src/test/java/com/sun/syndication/unittest/TestAtomContent.java rename to src/test/java/com/rometools/rome/unittest/TestAtomContent.java index ce248d4..eec11c6 100644 --- a/src/test/java/com/sun/syndication/unittest/TestAtomContent.java +++ b/src/test/java/com/rometools/rome/unittest/TestAtomContent.java @@ -1,14 +1,14 @@ -package com.sun.syndication.unittest; +package com.rometools.rome.unittest; import java.io.StringReader; import java.io.StringWriter; import junit.framework.TestCase; -import com.sun.syndication.feed.atom.Content; -import com.sun.syndication.feed.atom.Feed; -import com.sun.syndication.io.WireFeedInput; -import com.sun.syndication.io.WireFeedOutput; +import com.rometools.rome.feed.atom.Content; +import com.rometools.rome.feed.atom.Feed; +import com.rometools.rome.io.WireFeedInput; +import com.rometools.rome.io.WireFeedOutput; public class TestAtomContent extends TestCase { diff --git a/src/test/java/com/sun/syndication/unittest/TestBase64.java b/src/test/java/com/rometools/rome/unittest/TestBase64.java similarity index 92% rename from src/test/java/com/sun/syndication/unittest/TestBase64.java rename to src/test/java/com/rometools/rome/unittest/TestBase64.java index 0777c3c..61719d0 100644 --- a/src/test/java/com/sun/syndication/unittest/TestBase64.java +++ b/src/test/java/com/rometools/rome/unittest/TestBase64.java @@ -1,8 +1,8 @@ -package com.sun.syndication.unittest; +package com.rometools.rome.unittest; import junit.framework.TestCase; -import com.sun.syndication.io.impl.Base64; +import com.rometools.rome.io.impl.Base64; public class TestBase64 extends TestCase { diff --git a/src/test/java/com/sun/syndication/unittest/TestDateParser.java b/src/test/java/com/rometools/rome/unittest/TestDateParser.java similarity index 98% rename from src/test/java/com/sun/syndication/unittest/TestDateParser.java rename to src/test/java/com/rometools/rome/unittest/TestDateParser.java index d9647d3..c0f2e98 100644 --- a/src/test/java/com/sun/syndication/unittest/TestDateParser.java +++ b/src/test/java/com/rometools/rome/unittest/TestDateParser.java @@ -14,7 +14,7 @@ * limitations under the License. * */ -package com.sun.syndication.unittest; +package com.rometools.rome.unittest; import java.util.Calendar; import java.util.Date; @@ -24,7 +24,7 @@ import java.util.TimeZone; import junit.framework.TestCase; -import com.sun.syndication.io.impl.DateParser; +import com.rometools.rome.io.impl.DateParser; /** * diff --git a/src/test/java/com/sun/syndication/unittest/TestDublinCore.java b/src/test/java/com/rometools/rome/unittest/TestDublinCore.java similarity index 85% rename from src/test/java/com/sun/syndication/unittest/TestDublinCore.java rename to src/test/java/com/rometools/rome/unittest/TestDublinCore.java index df180cc..4250c1b 100644 --- a/src/test/java/com/sun/syndication/unittest/TestDublinCore.java +++ b/src/test/java/com/rometools/rome/unittest/TestDublinCore.java @@ -2,16 +2,16 @@ * (c) Mobile IQ Ltd 2009. All Rights Reserved. * ---------------------------------------------------------------------------- */ -package com.sun.syndication.unittest; +package com.rometools.rome.unittest; import java.text.SimpleDateFormat; import java.util.Date; import java.util.Locale; import java.util.TimeZone; -import com.sun.syndication.feed.module.DCModule; -import com.sun.syndication.feed.synd.SyndEntry; -import com.sun.syndication.feed.synd.SyndFeed; +import com.rometools.rome.feed.module.DCModule; +import com.rometools.rome.feed.synd.SyndEntry; +import com.rometools.rome.feed.synd.SyndFeed; public class TestDublinCore extends FeedTest { public TestDublinCore() { diff --git a/src/test/java/com/sun/syndication/unittest/TestEqualsBean.java b/src/test/java/com/rometools/rome/unittest/TestEqualsBean.java similarity index 93% rename from src/test/java/com/sun/syndication/unittest/TestEqualsBean.java rename to src/test/java/com/rometools/rome/unittest/TestEqualsBean.java index 6b14d24..f3679ab 100644 --- a/src/test/java/com/sun/syndication/unittest/TestEqualsBean.java +++ b/src/test/java/com/rometools/rome/unittest/TestEqualsBean.java @@ -1,8 +1,8 @@ -package com.sun.syndication.unittest; +package com.rometools.rome.unittest; import junit.framework.TestCase; -import com.sun.syndication.feed.atom.Feed; +import com.rometools.rome.feed.atom.Feed; public class TestEqualsBean extends TestCase { diff --git a/src/test/java/com/sun/syndication/unittest/TestOpsAtom03.java b/src/test/java/com/rometools/rome/unittest/TestOpsAtom03.java similarity index 81% rename from src/test/java/com/sun/syndication/unittest/TestOpsAtom03.java rename to src/test/java/com/rometools/rome/unittest/TestOpsAtom03.java index 5002a3e..92e8089 100644 --- a/src/test/java/com/sun/syndication/unittest/TestOpsAtom03.java +++ b/src/test/java/com/rometools/rome/unittest/TestOpsAtom03.java @@ -1,4 +1,4 @@ -package com.sun.syndication.unittest; +package com.rometools.rome.unittest; /** * diff --git a/src/test/java/com/sun/syndication/unittest/TestOpsAtom10.java b/src/test/java/com/rometools/rome/unittest/TestOpsAtom10.java similarity index 81% rename from src/test/java/com/sun/syndication/unittest/TestOpsAtom10.java rename to src/test/java/com/rometools/rome/unittest/TestOpsAtom10.java index 21a9bd2..64d1a65 100644 --- a/src/test/java/com/sun/syndication/unittest/TestOpsAtom10.java +++ b/src/test/java/com/rometools/rome/unittest/TestOpsAtom10.java @@ -1,4 +1,4 @@ -package com.sun.syndication.unittest; +package com.rometools.rome.unittest; /** * diff --git a/src/test/java/com/sun/syndication/unittest/TestOpsRSS090.java b/src/test/java/com/rometools/rome/unittest/TestOpsRSS090.java similarity index 81% rename from src/test/java/com/sun/syndication/unittest/TestOpsRSS090.java rename to src/test/java/com/rometools/rome/unittest/TestOpsRSS090.java index a398929..14afa07 100644 --- a/src/test/java/com/sun/syndication/unittest/TestOpsRSS090.java +++ b/src/test/java/com/rometools/rome/unittest/TestOpsRSS090.java @@ -1,4 +1,4 @@ -package com.sun.syndication.unittest; +package com.rometools.rome.unittest; /** * diff --git a/src/test/java/com/sun/syndication/unittest/TestOpsRSS091N.java b/src/test/java/com/rometools/rome/unittest/TestOpsRSS091N.java similarity index 90% rename from src/test/java/com/sun/syndication/unittest/TestOpsRSS091N.java rename to src/test/java/com/rometools/rome/unittest/TestOpsRSS091N.java index 2a78ddf..58cb731 100644 --- a/src/test/java/com/sun/syndication/unittest/TestOpsRSS091N.java +++ b/src/test/java/com/rometools/rome/unittest/TestOpsRSS091N.java @@ -1,4 +1,4 @@ -package com.sun.syndication.unittest; +package com.rometools.rome.unittest; /** * diff --git a/src/test/java/com/sun/syndication/unittest/TestOpsRSS091U.java b/src/test/java/com/rometools/rome/unittest/TestOpsRSS091U.java similarity index 81% rename from src/test/java/com/sun/syndication/unittest/TestOpsRSS091U.java rename to src/test/java/com/rometools/rome/unittest/TestOpsRSS091U.java index 82df5c6..94a1341 100644 --- a/src/test/java/com/sun/syndication/unittest/TestOpsRSS091U.java +++ b/src/test/java/com/rometools/rome/unittest/TestOpsRSS091U.java @@ -1,4 +1,4 @@ -package com.sun.syndication.unittest; +package com.rometools.rome.unittest; /** * diff --git a/src/test/java/com/sun/syndication/unittest/TestOpsRSS092.java b/src/test/java/com/rometools/rome/unittest/TestOpsRSS092.java similarity index 81% rename from src/test/java/com/sun/syndication/unittest/TestOpsRSS092.java rename to src/test/java/com/rometools/rome/unittest/TestOpsRSS092.java index c22c51c..3c95bae 100644 --- a/src/test/java/com/sun/syndication/unittest/TestOpsRSS092.java +++ b/src/test/java/com/rometools/rome/unittest/TestOpsRSS092.java @@ -1,4 +1,4 @@ -package com.sun.syndication.unittest; +package com.rometools.rome.unittest; /** * diff --git a/src/test/java/com/sun/syndication/unittest/TestOpsRSS093.java b/src/test/java/com/rometools/rome/unittest/TestOpsRSS093.java similarity index 81% rename from src/test/java/com/sun/syndication/unittest/TestOpsRSS093.java rename to src/test/java/com/rometools/rome/unittest/TestOpsRSS093.java index c87c212..fe6c5b1 100644 --- a/src/test/java/com/sun/syndication/unittest/TestOpsRSS093.java +++ b/src/test/java/com/rometools/rome/unittest/TestOpsRSS093.java @@ -1,4 +1,4 @@ -package com.sun.syndication.unittest; +package com.rometools.rome.unittest; /** * diff --git a/src/test/java/com/sun/syndication/unittest/TestOpsRSS094.java b/src/test/java/com/rometools/rome/unittest/TestOpsRSS094.java similarity index 90% rename from src/test/java/com/sun/syndication/unittest/TestOpsRSS094.java rename to src/test/java/com/rometools/rome/unittest/TestOpsRSS094.java index e296906..466eab0 100644 --- a/src/test/java/com/sun/syndication/unittest/TestOpsRSS094.java +++ b/src/test/java/com/rometools/rome/unittest/TestOpsRSS094.java @@ -1,4 +1,4 @@ -package com.sun.syndication.unittest; +package com.rometools.rome.unittest; /** * diff --git a/src/test/java/com/sun/syndication/unittest/TestOpsRSS10.java b/src/test/java/com/rometools/rome/unittest/TestOpsRSS10.java similarity index 81% rename from src/test/java/com/sun/syndication/unittest/TestOpsRSS10.java rename to src/test/java/com/rometools/rome/unittest/TestOpsRSS10.java index 6a71657..dce2880 100644 --- a/src/test/java/com/sun/syndication/unittest/TestOpsRSS10.java +++ b/src/test/java/com/rometools/rome/unittest/TestOpsRSS10.java @@ -1,4 +1,4 @@ -package com.sun.syndication.unittest; +package com.rometools.rome.unittest; /** * diff --git a/src/test/java/com/sun/syndication/unittest/TestOpsRSS20.java b/src/test/java/com/rometools/rome/unittest/TestOpsRSS20.java similarity index 81% rename from src/test/java/com/sun/syndication/unittest/TestOpsRSS20.java rename to src/test/java/com/rometools/rome/unittest/TestOpsRSS20.java index de7ceee..d4a2619 100644 --- a/src/test/java/com/sun/syndication/unittest/TestOpsRSS20.java +++ b/src/test/java/com/rometools/rome/unittest/TestOpsRSS20.java @@ -1,4 +1,4 @@ -package com.sun.syndication.unittest; +package com.rometools.rome.unittest; /** * diff --git a/src/test/java/com/sun/syndication/unittest/TestSyndFeedAtom03.java b/src/test/java/com/rometools/rome/unittest/TestSyndFeedAtom03.java similarity index 96% rename from src/test/java/com/sun/syndication/unittest/TestSyndFeedAtom03.java rename to src/test/java/com/rometools/rome/unittest/TestSyndFeedAtom03.java index 3754223..65ec6b1 100644 --- a/src/test/java/com/sun/syndication/unittest/TestSyndFeedAtom03.java +++ b/src/test/java/com/rometools/rome/unittest/TestSyndFeedAtom03.java @@ -2,14 +2,14 @@ * Created on Jun 24, 2004 * */ -package com.sun.syndication.unittest; +package com.rometools.rome.unittest; import java.util.Date; import java.util.List; import java.util.Locale; -import com.sun.syndication.feed.synd.SyndEntry; -import com.sun.syndication.io.impl.DateParser; +import com.rometools.rome.feed.synd.SyndEntry; +import com.rometools.rome.io.impl.DateParser; /** * @author pat diff --git a/src/test/java/com/sun/syndication/unittest/TestSyndFeedAtom03DCSyModules.java b/src/test/java/com/rometools/rome/unittest/TestSyndFeedAtom03DCSyModules.java similarity index 94% rename from src/test/java/com/sun/syndication/unittest/TestSyndFeedAtom03DCSyModules.java rename to src/test/java/com/rometools/rome/unittest/TestSyndFeedAtom03DCSyModules.java index 42b6785..39ff030 100644 --- a/src/test/java/com/sun/syndication/unittest/TestSyndFeedAtom03DCSyModules.java +++ b/src/test/java/com/rometools/rome/unittest/TestSyndFeedAtom03DCSyModules.java @@ -1,13 +1,13 @@ -package com.sun.syndication.unittest; +package com.rometools.rome.unittest; import java.util.Date; import java.util.List; import java.util.Locale; -import com.sun.syndication.feed.module.DCModule; -import com.sun.syndication.feed.module.SyModule; -import com.sun.syndication.feed.synd.SyndEntry; -import com.sun.syndication.io.impl.DateParser; +import com.rometools.rome.feed.module.DCModule; +import com.rometools.rome.feed.module.SyModule; +import com.rometools.rome.feed.synd.SyndEntry; +import com.rometools.rome.io.impl.DateParser; /** * @author pat diff --git a/src/test/java/com/sun/syndication/unittest/TestSyndFeedAtom10.java b/src/test/java/com/rometools/rome/unittest/TestSyndFeedAtom10.java similarity index 95% rename from src/test/java/com/sun/syndication/unittest/TestSyndFeedAtom10.java rename to src/test/java/com/rometools/rome/unittest/TestSyndFeedAtom10.java index c93fe34..0b7b096 100644 --- a/src/test/java/com/sun/syndication/unittest/TestSyndFeedAtom10.java +++ b/src/test/java/com/rometools/rome/unittest/TestSyndFeedAtom10.java @@ -2,16 +2,16 @@ * Created on Jun 24, 2004 * */ -package com.sun.syndication.unittest; +package com.rometools.rome.unittest; import java.util.Date; import java.util.List; import java.util.Locale; -import com.sun.syndication.feed.atom.Entry; -import com.sun.syndication.feed.synd.SyndEntry; -import com.sun.syndication.feed.synd.SyndLink; -import com.sun.syndication.io.impl.DateParser; +import com.rometools.rome.feed.atom.Entry; +import com.rometools.rome.feed.synd.SyndEntry; +import com.rometools.rome.feed.synd.SyndLink; +import com.rometools.rome.io.impl.DateParser; /** * @author pat diff --git a/src/test/java/com/sun/syndication/unittest/TestSyndFeedAtom10Bray.java b/src/test/java/com/rometools/rome/unittest/TestSyndFeedAtom10Bray.java similarity index 86% rename from src/test/java/com/sun/syndication/unittest/TestSyndFeedAtom10Bray.java rename to src/test/java/com/rometools/rome/unittest/TestSyndFeedAtom10Bray.java index c489e46..963da58 100644 --- a/src/test/java/com/sun/syndication/unittest/TestSyndFeedAtom10Bray.java +++ b/src/test/java/com/rometools/rome/unittest/TestSyndFeedAtom10Bray.java @@ -1,8 +1,8 @@ -package com.sun.syndication.unittest; +package com.rometools.rome.unittest; -import com.sun.syndication.feed.synd.SyndEntry; -import com.sun.syndication.feed.synd.SyndFeed; -import com.sun.syndication.io.impl.Atom10Parser; +import com.rometools.rome.feed.synd.SyndEntry; +import com.rometools.rome.feed.synd.SyndFeed; +import com.rometools.rome.io.impl.Atom10Parser; public class TestSyndFeedAtom10Bray extends FeedTest { diff --git a/src/test/java/com/sun/syndication/unittest/TestSyndFeedAtom10Ruby.java b/src/test/java/com/rometools/rome/unittest/TestSyndFeedAtom10Ruby.java similarity index 85% rename from src/test/java/com/sun/syndication/unittest/TestSyndFeedAtom10Ruby.java rename to src/test/java/com/rometools/rome/unittest/TestSyndFeedAtom10Ruby.java index b44652f..03c70b1 100644 --- a/src/test/java/com/sun/syndication/unittest/TestSyndFeedAtom10Ruby.java +++ b/src/test/java/com/rometools/rome/unittest/TestSyndFeedAtom10Ruby.java @@ -1,8 +1,8 @@ -package com.sun.syndication.unittest; +package com.rometools.rome.unittest; -import com.sun.syndication.feed.synd.SyndEntry; -import com.sun.syndication.feed.synd.SyndFeed; -import com.sun.syndication.io.impl.Atom10Parser; +import com.rometools.rome.feed.synd.SyndEntry; +import com.rometools.rome.feed.synd.SyndFeed; +import com.rometools.rome.io.impl.Atom10Parser; public class TestSyndFeedAtom10Ruby extends FeedTest { diff --git a/src/test/java/com/sun/syndication/unittest/TestSyndFeedAtom10b.java b/src/test/java/com/rometools/rome/unittest/TestSyndFeedAtom10b.java similarity index 83% rename from src/test/java/com/sun/syndication/unittest/TestSyndFeedAtom10b.java rename to src/test/java/com/rometools/rome/unittest/TestSyndFeedAtom10b.java index c9016ba..ad916d0 100644 --- a/src/test/java/com/sun/syndication/unittest/TestSyndFeedAtom10b.java +++ b/src/test/java/com/rometools/rome/unittest/TestSyndFeedAtom10b.java @@ -1,10 +1,10 @@ -package com.sun.syndication.unittest; +package com.rometools.rome.unittest; import java.util.List; -import com.sun.syndication.feed.synd.SyndEntry; -import com.sun.syndication.feed.synd.SyndFeed; -import com.sun.syndication.io.impl.Atom10Parser; +import com.rometools.rome.feed.synd.SyndEntry; +import com.rometools.rome.feed.synd.SyndFeed; +import com.rometools.rome.io.impl.Atom10Parser; public class TestSyndFeedAtom10b extends FeedTest { diff --git a/src/test/java/com/sun/syndication/unittest/TestSyndFeedAtom10prefix.java b/src/test/java/com/rometools/rome/unittest/TestSyndFeedAtom10prefix.java similarity index 89% rename from src/test/java/com/sun/syndication/unittest/TestSyndFeedAtom10prefix.java rename to src/test/java/com/rometools/rome/unittest/TestSyndFeedAtom10prefix.java index a09fb34..8137435 100644 --- a/src/test/java/com/sun/syndication/unittest/TestSyndFeedAtom10prefix.java +++ b/src/test/java/com/rometools/rome/unittest/TestSyndFeedAtom10prefix.java @@ -1,6 +1,6 @@ -package com.sun.syndication.unittest; +package com.rometools.rome.unittest; -import com.sun.syndication.feed.atom.Feed; +import com.rometools.rome.feed.atom.Feed; public class TestSyndFeedAtom10prefix extends FeedTest { diff --git a/src/test/java/com/sun/syndication/unittest/TestSyndFeedRSS090.java b/src/test/java/com/rometools/rome/unittest/TestSyndFeedRSS090.java similarity index 97% rename from src/test/java/com/sun/syndication/unittest/TestSyndFeedRSS090.java rename to src/test/java/com/rometools/rome/unittest/TestSyndFeedRSS090.java index faa7cd4..1826a98 100644 --- a/src/test/java/com/sun/syndication/unittest/TestSyndFeedRSS090.java +++ b/src/test/java/com/rometools/rome/unittest/TestSyndFeedRSS090.java @@ -2,11 +2,11 @@ * Created on Jun 24, 2004 * */ -package com.sun.syndication.unittest; +package com.rometools.rome.unittest; import java.util.List; -import com.sun.syndication.feed.synd.SyndEntry; +import com.rometools.rome.feed.synd.SyndEntry; /** * @author pat diff --git a/src/test/java/com/sun/syndication/unittest/TestSyndFeedRSS091N.java b/src/test/java/com/rometools/rome/unittest/TestSyndFeedRSS091N.java similarity index 94% rename from src/test/java/com/sun/syndication/unittest/TestSyndFeedRSS091N.java rename to src/test/java/com/rometools/rome/unittest/TestSyndFeedRSS091N.java index 7497b03..2ba777a 100644 --- a/src/test/java/com/sun/syndication/unittest/TestSyndFeedRSS091N.java +++ b/src/test/java/com/rometools/rome/unittest/TestSyndFeedRSS091N.java @@ -2,14 +2,14 @@ * Created on Jun 24, 2004 * */ -package com.sun.syndication.unittest; +package com.rometools.rome.unittest; import java.util.Date; import java.util.List; import java.util.Locale; -import com.sun.syndication.feed.synd.SyndEntry; -import com.sun.syndication.io.impl.DateParser; +import com.rometools.rome.feed.synd.SyndEntry; +import com.rometools.rome.io.impl.DateParser; /** * @author pat diff --git a/src/test/java/com/sun/syndication/unittest/TestSyndFeedRSS091U.java b/src/test/java/com/rometools/rome/unittest/TestSyndFeedRSS091U.java similarity index 85% rename from src/test/java/com/sun/syndication/unittest/TestSyndFeedRSS091U.java rename to src/test/java/com/rometools/rome/unittest/TestSyndFeedRSS091U.java index a09c37b..5bcc691 100644 --- a/src/test/java/com/sun/syndication/unittest/TestSyndFeedRSS091U.java +++ b/src/test/java/com/rometools/rome/unittest/TestSyndFeedRSS091U.java @@ -2,7 +2,7 @@ * Created on Jun 24, 2004 * */ -package com.sun.syndication.unittest; +package com.rometools.rome.unittest; /** * @author pat diff --git a/src/test/java/com/sun/syndication/unittest/TestSyndFeedRSS092.java b/src/test/java/com/rometools/rome/unittest/TestSyndFeedRSS092.java similarity index 92% rename from src/test/java/com/sun/syndication/unittest/TestSyndFeedRSS092.java rename to src/test/java/com/rometools/rome/unittest/TestSyndFeedRSS092.java index 635d5ac..84f1788 100644 --- a/src/test/java/com/sun/syndication/unittest/TestSyndFeedRSS092.java +++ b/src/test/java/com/rometools/rome/unittest/TestSyndFeedRSS092.java @@ -2,15 +2,15 @@ * Created on Jun 24, 2004 * */ -package com.sun.syndication.unittest; +package com.rometools.rome.unittest; import java.util.HashSet; import java.util.List; import java.util.Set; -import com.sun.syndication.feed.synd.SyndCategory; -import com.sun.syndication.feed.synd.SyndEnclosure; -import com.sun.syndication.feed.synd.SyndEntry; +import com.rometools.rome.feed.synd.SyndCategory; +import com.rometools.rome.feed.synd.SyndEnclosure; +import com.rometools.rome.feed.synd.SyndEntry; /** * @author pat diff --git a/src/test/java/com/sun/syndication/unittest/TestSyndFeedRSS092Alt.java b/src/test/java/com/rometools/rome/unittest/TestSyndFeedRSS092Alt.java similarity index 91% rename from src/test/java/com/sun/syndication/unittest/TestSyndFeedRSS092Alt.java rename to src/test/java/com/rometools/rome/unittest/TestSyndFeedRSS092Alt.java index b60542a..68b8a82 100644 --- a/src/test/java/com/sun/syndication/unittest/TestSyndFeedRSS092Alt.java +++ b/src/test/java/com/rometools/rome/unittest/TestSyndFeedRSS092Alt.java @@ -1,10 +1,10 @@ -package com.sun.syndication.unittest; +package com.rometools.rome.unittest; import java.util.HashSet; import java.util.List; import java.util.Set; -import com.sun.syndication.feed.synd.SyndEnclosure; +import com.rometools.rome.feed.synd.SyndEnclosure; public class TestSyndFeedRSS092Alt extends TestSyndFeedRSS092 { diff --git a/src/test/java/com/sun/syndication/unittest/TestSyndFeedRSS093.java b/src/test/java/com/rometools/rome/unittest/TestSyndFeedRSS093.java similarity index 91% rename from src/test/java/com/sun/syndication/unittest/TestSyndFeedRSS093.java rename to src/test/java/com/rometools/rome/unittest/TestSyndFeedRSS093.java index ff5eca2..3f0cbc6 100644 --- a/src/test/java/com/sun/syndication/unittest/TestSyndFeedRSS093.java +++ b/src/test/java/com/rometools/rome/unittest/TestSyndFeedRSS093.java @@ -2,14 +2,14 @@ * Created on Jun 24, 2004 * */ -package com.sun.syndication.unittest; +package com.rometools.rome.unittest; import java.util.Date; import java.util.List; import java.util.Locale; -import com.sun.syndication.feed.synd.SyndEntry; -import com.sun.syndication.io.impl.DateParser; +import com.rometools.rome.feed.synd.SyndEntry; +import com.rometools.rome.io.impl.DateParser; /** * @author pat diff --git a/src/test/java/com/sun/syndication/unittest/TestSyndFeedRSS094.java b/src/test/java/com/rometools/rome/unittest/TestSyndFeedRSS094.java similarity index 93% rename from src/test/java/com/sun/syndication/unittest/TestSyndFeedRSS094.java rename to src/test/java/com/rometools/rome/unittest/TestSyndFeedRSS094.java index 0d7112d..2c8735f 100644 --- a/src/test/java/com/sun/syndication/unittest/TestSyndFeedRSS094.java +++ b/src/test/java/com/rometools/rome/unittest/TestSyndFeedRSS094.java @@ -2,11 +2,11 @@ * Created on Jun 24, 2004 * */ -package com.sun.syndication.unittest; +package com.rometools.rome.unittest; import java.util.List; -import com.sun.syndication.feed.synd.SyndEntry; +import com.rometools.rome.feed.synd.SyndEntry; /** * @author pat diff --git a/src/test/java/com/sun/syndication/unittest/TestSyndFeedRSS10.java b/src/test/java/com/rometools/rome/unittest/TestSyndFeedRSS10.java similarity index 93% rename from src/test/java/com/sun/syndication/unittest/TestSyndFeedRSS10.java rename to src/test/java/com/rometools/rome/unittest/TestSyndFeedRSS10.java index 8e04326..4ed7b13 100644 --- a/src/test/java/com/sun/syndication/unittest/TestSyndFeedRSS10.java +++ b/src/test/java/com/rometools/rome/unittest/TestSyndFeedRSS10.java @@ -2,11 +2,11 @@ * Created on Jun 24, 2004 * */ -package com.sun.syndication.unittest; +package com.rometools.rome.unittest; import java.util.List; -import com.sun.syndication.feed.synd.SyndEntry; +import com.rometools.rome.feed.synd.SyndEntry; /** * @author pat diff --git a/src/test/java/com/sun/syndication/unittest/TestSyndFeedRSS10DCMulti.java b/src/test/java/com/rometools/rome/unittest/TestSyndFeedRSS10DCMulti.java similarity index 95% rename from src/test/java/com/sun/syndication/unittest/TestSyndFeedRSS10DCMulti.java rename to src/test/java/com/rometools/rome/unittest/TestSyndFeedRSS10DCMulti.java index 4cadf33..16831c3 100644 --- a/src/test/java/com/sun/syndication/unittest/TestSyndFeedRSS10DCMulti.java +++ b/src/test/java/com/rometools/rome/unittest/TestSyndFeedRSS10DCMulti.java @@ -1,12 +1,12 @@ -package com.sun.syndication.unittest; +package com.rometools.rome.unittest; import java.util.Date; import java.util.List; import java.util.Locale; -import com.sun.syndication.feed.module.DCModule; -import com.sun.syndication.feed.synd.SyndEntry; -import com.sun.syndication.io.impl.DateParser; +import com.rometools.rome.feed.module.DCModule; +import com.rometools.rome.feed.synd.SyndEntry; +import com.rometools.rome.io.impl.DateParser; /** * Test case for the multi-valued DublinCore module elements. diff --git a/src/test/java/com/sun/syndication/unittest/TestSyndFeedRSS10DCSyModules.java b/src/test/java/com/rometools/rome/unittest/TestSyndFeedRSS10DCSyModules.java similarity index 93% rename from src/test/java/com/sun/syndication/unittest/TestSyndFeedRSS10DCSyModules.java rename to src/test/java/com/rometools/rome/unittest/TestSyndFeedRSS10DCSyModules.java index 0cf4550..2c8b998 100644 --- a/src/test/java/com/sun/syndication/unittest/TestSyndFeedRSS10DCSyModules.java +++ b/src/test/java/com/rometools/rome/unittest/TestSyndFeedRSS10DCSyModules.java @@ -1,13 +1,13 @@ -package com.sun.syndication.unittest; +package com.rometools.rome.unittest; import java.util.Date; import java.util.List; import java.util.Locale; -import com.sun.syndication.feed.module.DCModule; -import com.sun.syndication.feed.module.SyModule; -import com.sun.syndication.feed.synd.SyndEntry; -import com.sun.syndication.io.impl.DateParser; +import com.rometools.rome.feed.module.DCModule; +import com.rometools.rome.feed.module.SyModule; +import com.rometools.rome.feed.synd.SyndEntry; +import com.rometools.rome.io.impl.DateParser; /** * @author pat diff --git a/src/test/java/com/sun/syndication/unittest/TestSyndFeedRSS20.java b/src/test/java/com/rometools/rome/unittest/TestSyndFeedRSS20.java similarity index 89% rename from src/test/java/com/sun/syndication/unittest/TestSyndFeedRSS20.java rename to src/test/java/com/rometools/rome/unittest/TestSyndFeedRSS20.java index 4f9a6cb..e6c0375 100644 --- a/src/test/java/com/sun/syndication/unittest/TestSyndFeedRSS20.java +++ b/src/test/java/com/rometools/rome/unittest/TestSyndFeedRSS20.java @@ -2,14 +2,14 @@ * Created on Jun 24, 2004 * */ -package com.sun.syndication.unittest; +package com.rometools.rome.unittest; import java.util.List; -import com.sun.syndication.feed.WireFeed; -import com.sun.syndication.feed.rss.Channel; -import com.sun.syndication.feed.rss.Item; -import com.sun.syndication.feed.synd.SyndEntry; +import com.rometools.rome.feed.WireFeed; +import com.rometools.rome.feed.rss.Channel; +import com.rometools.rome.feed.rss.Item; +import com.rometools.rome.feed.synd.SyndEntry; /** * @author pat diff --git a/src/test/java/com/sun/syndication/unittest/TestXmlFixerReader.java b/src/test/java/com/rometools/rome/unittest/TestXmlFixerReader.java similarity index 98% rename from src/test/java/com/sun/syndication/unittest/TestXmlFixerReader.java rename to src/test/java/com/rometools/rome/unittest/TestXmlFixerReader.java index 144f171..dc94dd8 100644 --- a/src/test/java/com/sun/syndication/unittest/TestXmlFixerReader.java +++ b/src/test/java/com/rometools/rome/unittest/TestXmlFixerReader.java @@ -14,7 +14,7 @@ * limitations under the License. * */ -package com.sun.syndication.unittest; +package com.rometools.rome.unittest; import java.io.BufferedReader; import java.io.ByteArrayInputStream; @@ -30,8 +30,8 @@ import junit.framework.TestCase; import org.jdom2.input.SAXBuilder; -import com.sun.syndication.io.XmlReader; -import com.sun.syndication.io.impl.XmlFixerReader; +import com.rometools.rome.io.XmlReader; +import com.rometools.rome.io.impl.XmlFixerReader; /** * @author pat, tucu diff --git a/src/test/java/com/sun/syndication/unittest/TestXmlReader.java b/src/test/java/com/rometools/rome/unittest/TestXmlReader.java similarity index 99% rename from src/test/java/com/sun/syndication/unittest/TestXmlReader.java rename to src/test/java/com/rometools/rome/unittest/TestXmlReader.java index c9ec618..9a0eb1c 100644 --- a/src/test/java/com/sun/syndication/unittest/TestXmlReader.java +++ b/src/test/java/com/rometools/rome/unittest/TestXmlReader.java @@ -14,7 +14,7 @@ * limitations under the License. * */ -package com.sun.syndication.unittest; +package com.rometools.rome.unittest; import java.io.ByteArrayInputStream; import java.io.ByteArrayOutputStream; @@ -28,7 +28,7 @@ import java.util.Map; import junit.framework.TestCase; -import com.sun.syndication.io.XmlReader; +import com.rometools.rome.io.XmlReader; /** * @author pat, tucu diff --git a/src/test/java/com/sun/syndication/unittest/issues/Issue131Test.java b/src/test/java/com/rometools/rome/unittest/issues/Issue131Test.java similarity index 85% rename from src/test/java/com/sun/syndication/unittest/issues/Issue131Test.java rename to src/test/java/com/rometools/rome/unittest/issues/Issue131Test.java index f32e05c..25dff3c 100644 --- a/src/test/java/com/sun/syndication/unittest/issues/Issue131Test.java +++ b/src/test/java/com/rometools/rome/unittest/issues/Issue131Test.java @@ -1,13 +1,13 @@ -package com.sun.syndication.unittest.issues; +package com.rometools.rome.unittest.issues; import java.util.List; -import com.sun.syndication.feed.synd.SyndCategory; -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.unittest.FeedTest; +import com.rometools.rome.feed.synd.SyndCategory; +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.unittest.FeedTest; /** * Test for #131: SyndFeedImpl copyFrom method does not copy Entry Categories. diff --git a/src/test/java/com/sun/syndication/unittest/issues/Issue134Test.java b/src/test/java/com/rometools/rome/unittest/issues/Issue134Test.java similarity index 76% rename from src/test/java/com/sun/syndication/unittest/issues/Issue134Test.java rename to src/test/java/com/rometools/rome/unittest/issues/Issue134Test.java index 1a7d518..eefcf9e 100644 --- a/src/test/java/com/sun/syndication/unittest/issues/Issue134Test.java +++ b/src/test/java/com/rometools/rome/unittest/issues/Issue134Test.java @@ -1,7 +1,7 @@ -package com.sun.syndication.unittest.issues; +package com.rometools.rome.unittest.issues; -import com.sun.syndication.feed.synd.SyndFeed; -import com.sun.syndication.unittest.FeedTest; +import com.rometools.rome.feed.synd.SyndFeed; +import com.rometools.rome.unittest.FeedTest; /** * Test for #134: Incorrect handling of CDATA sections. diff --git a/src/test/java/com/sun/syndication/unittest/issues/Issue137Test.java b/src/test/java/com/rometools/rome/unittest/issues/Issue137Test.java similarity index 94% rename from src/test/java/com/sun/syndication/unittest/issues/Issue137Test.java rename to src/test/java/com/rometools/rome/unittest/issues/Issue137Test.java index c7b2be6..6614e3a 100644 --- a/src/test/java/com/sun/syndication/unittest/issues/Issue137Test.java +++ b/src/test/java/com/rometools/rome/unittest/issues/Issue137Test.java @@ -1,7 +1,7 @@ -package com.sun.syndication.unittest.issues; +package com.rometools.rome.unittest.issues; -import com.sun.syndication.feed.synd.SyndFeed; -import com.sun.syndication.unittest.FeedTest; +import com.rometools.rome.feed.synd.SyndFeed; +import com.rometools.rome.unittest.FeedTest; /** * Test for #137: RSS item description is not complete. diff --git a/src/test/java/com/sun/syndication/unittest/issues/Issue158Test.java b/src/test/java/com/rometools/rome/unittest/issues/Issue158Test.java similarity index 79% rename from src/test/java/com/sun/syndication/unittest/issues/Issue158Test.java rename to src/test/java/com/rometools/rome/unittest/issues/Issue158Test.java index 249b417..1b30b32 100644 --- a/src/test/java/com/sun/syndication/unittest/issues/Issue158Test.java +++ b/src/test/java/com/rometools/rome/unittest/issues/Issue158Test.java @@ -1,6 +1,6 @@ -package com.sun.syndication.unittest.issues; +package com.rometools.rome.unittest.issues; -import com.sun.syndication.unittest.FeedTest; +import com.rometools.rome.unittest.FeedTest; /** * Test for #161: No source element in RSS 2.0 items. diff --git a/src/test/java/com/sun/syndication/unittest/issues/Issue161Test.java b/src/test/java/com/rometools/rome/unittest/issues/Issue161Test.java similarity index 85% rename from src/test/java/com/sun/syndication/unittest/issues/Issue161Test.java rename to src/test/java/com/rometools/rome/unittest/issues/Issue161Test.java index 6835ebd..6e11f9a 100644 --- a/src/test/java/com/sun/syndication/unittest/issues/Issue161Test.java +++ b/src/test/java/com/rometools/rome/unittest/issues/Issue161Test.java @@ -1,9 +1,9 @@ -package com.sun.syndication.unittest.issues; +package com.rometools.rome.unittest.issues; import java.util.List; -import com.sun.syndication.feed.synd.SyndEntry; -import com.sun.syndication.unittest.TestSyndFeedRSS20; +import com.rometools.rome.feed.synd.SyndEntry; +import com.rometools.rome.unittest.TestSyndFeedRSS20; /** * Test for #161: No source element in RSS 2.0 items. diff --git a/src/test/java/com/sun/syndication/unittest/issues/Issue162Test.java b/src/test/java/com/rometools/rome/unittest/issues/Issue162Test.java similarity index 87% rename from src/test/java/com/sun/syndication/unittest/issues/Issue162Test.java rename to src/test/java/com/rometools/rome/unittest/issues/Issue162Test.java index bc8262d..c0a5300 100644 --- a/src/test/java/com/sun/syndication/unittest/issues/Issue162Test.java +++ b/src/test/java/com/rometools/rome/unittest/issues/Issue162Test.java @@ -1,12 +1,12 @@ -package com.sun.syndication.unittest.issues; +package com.rometools.rome.unittest.issues; import java.util.List; -import com.sun.syndication.feed.rss.Channel; -import com.sun.syndication.feed.rss.Item; -import com.sun.syndication.feed.synd.SyndEntry; -import com.sun.syndication.feed.synd.SyndFeed; -import com.sun.syndication.unittest.TestSyndFeedRSS20; +import com.rometools.rome.feed.rss.Channel; +import com.rometools.rome.feed.rss.Item; +import com.rometools.rome.feed.synd.SyndEntry; +import com.rometools.rome.feed.synd.SyndFeed; +import com.rometools.rome.unittest.TestSyndFeedRSS20; /** * Test for #161: No source element in RSS 2.0 items. diff --git a/src/test/java/com/sun/syndication/unittest/issues/Issue1Test.java b/src/test/java/com/rometools/rome/unittest/issues/Issue1Test.java similarity index 97% rename from src/test/java/com/sun/syndication/unittest/issues/Issue1Test.java rename to src/test/java/com/rometools/rome/unittest/issues/Issue1Test.java index 4c990ca..56acda2 100644 --- a/src/test/java/com/sun/syndication/unittest/issues/Issue1Test.java +++ b/src/test/java/com/rometools/rome/unittest/issues/Issue1Test.java @@ -14,7 +14,7 @@ * limitations under the License. * under the License. */ -package com.sun.syndication.unittest.issues; +package com.rometools.rome.unittest.issues; import java.io.BufferedReader; import java.io.ByteArrayInputStream; @@ -28,9 +28,9 @@ import java.io.Writer; import org.jdom2.input.SAXBuilder; -import com.sun.syndication.io.XmlReader; -import com.sun.syndication.io.impl.XmlFixerReader; -import com.sun.syndication.unittest.SyndFeedTest; +import com.rometools.rome.io.XmlReader; +import com.rometools.rome.io.impl.XmlFixerReader; +import com.rometools.rome.unittest.SyndFeedTest; /** * diff --git a/src/test/java/com/sun/syndication/unittest/issues/Issue2Test.java b/src/test/java/com/rometools/rome/unittest/issues/Issue2Test.java similarity index 89% rename from src/test/java/com/sun/syndication/unittest/issues/Issue2Test.java rename to src/test/java/com/rometools/rome/unittest/issues/Issue2Test.java index 4058d57..5d00ec4 100644 --- a/src/test/java/com/sun/syndication/unittest/issues/Issue2Test.java +++ b/src/test/java/com/rometools/rome/unittest/issues/Issue2Test.java @@ -15,12 +15,12 @@ * under the License. */ -package com.sun.syndication.unittest.issues; +package com.rometools.rome.unittest.issues; import java.util.List; -import com.sun.syndication.feed.synd.SyndEntry; -import com.sun.syndication.unittest.TestSyndFeedRSS094; +import com.rometools.rome.feed.synd.SyndEntry; +import com.rometools.rome.unittest.TestSyndFeedRSS094; /** * diff --git a/src/test/java/com/sun/syndication/unittest/issues/Issue88Test.java b/src/test/java/com/rometools/rome/unittest/issues/Issue88Test.java similarity index 85% rename from src/test/java/com/sun/syndication/unittest/issues/Issue88Test.java rename to src/test/java/com/rometools/rome/unittest/issues/Issue88Test.java index e4ed087..6cd5c99 100644 --- a/src/test/java/com/sun/syndication/unittest/issues/Issue88Test.java +++ b/src/test/java/com/rometools/rome/unittest/issues/Issue88Test.java @@ -1,6 +1,6 @@ -package com.sun.syndication.unittest.issues; +package com.rometools.rome.unittest.issues; -import com.sun.syndication.unittest.FeedTest; +import com.rometools.rome.unittest.FeedTest; /** * Test for #134: Incorrect handling of CDATA sections.