commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From di...@apache.org
Subject svn commit: r155416 [2/4] - in jakarta/commons/proper/feedparser/trunk: ./ src/java/org/apache/commons/feedparser/ src/java/org/apache/commons/feedparser/example/ src/java/org/apache/commons/feedparser/impl/ src/java/org/apache/commons/feedparser/locate/ src/java/org/apache/commons/feedparser/locate/blogservice/ src/java/org/apache/commons/feedparser/network/ src/java/org/apache/commons/feedparser/output/ src/java/org/apache/commons/feedparser/post/ src/java/org/apache/commons/feedparser/sax/ src/java/org/apache/commons/feedparser/test/ src/java/org/apache/commons/feedparser/tools/ tests/anchor/ tests/directory/ tests/feeds/ tests/filter/ tests/locale/ tests/locate/ xdocs/
Date Sat, 26 Feb 2005 13:02:32 GMT
Modified: jakarta/commons/proper/feedparser/trunk/src/java/org/apache/commons/feedparser/locate/blogservice/DiaryLand.java
URL: http://svn.apache.org/viewcvs/jakarta/commons/proper/feedparser/trunk/src/java/org/apache/commons/feedparser/locate/blogservice/DiaryLand.java?view=diff&r1=155415&r2=155416
==============================================================================
--- jakarta/commons/proper/feedparser/trunk/src/java/org/apache/commons/feedparser/locate/blogservice/DiaryLand.java (original)
+++ jakarta/commons/proper/feedparser/trunk/src/java/org/apache/commons/feedparser/locate/blogservice/DiaryLand.java Sat Feb 26 05:00:10 2005
@@ -1,77 +1,77 @@
-/*
- * Copyright 1999,2004 The Apache Software Foundation.
- * 
- * 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.
- */
-
-package org.apache.commons.feedparser.locate.blogservice;
-
-import org.apache.commons.feedparser.FeedParserException;
-import org.apache.commons.feedparser.locate.*;
-
-/**
- * Models the DiaryLand blog service, encapsulating whether a given weblog
- * is this type of service and where it usually keeps its feeds.
- * 
- * @author Brad Neuberg, bkn3@columbia.edu
- */
-public class DiaryLand extends BlogService {
-        
-    /** Returns whether we can trust the results of this blog service's 
-     *  autodiscovery links.  For example, TextAmerica returns invalid 
-     *  autodiscovery results.
-     */
-    public boolean hasValidAutoDiscovery() {
-        return true;
-    }
-    
-    /** Determines if the weblog at the given resource and with the given
-     *  content is this blog service.
-     * @param resource A full URI to this resource, such as 
-     * "http://www.codinginparadise.org".
-     * @param content The full HTML content at the resource's URL.
-     * @throws FeedParserException Thrown if an error occurs while 
-     * determining the type of this weblog.
-     */
-    public boolean isThisService(String resource, String content)
-                                                throws FeedParserException {
-        boolean results = false;
-        
-        results = containsDomain(resource, "diaryland.com");
-        
-        return results;
-    }
-
-    /**
-     * Returns an array of FeedReferences that contains information on the
-     * usual locations this blog service contains its feed.  The feeds should
-     * be ordered by quality, so that higher quality feeds come before lower
-     * quality ones (i.e. you would want to have an Atom FeedReference
-     * object come before an RSS 0.91 FeedReference object in this list).
-     * @param resource A URL to the given weblog that might be used to build
-     * up where feeds are usually located.
-     * @param content The full content of the resource URL, which might
-     * be useful to determine where feeds are usually located.  This can be
-     * null.
-     * @throws FeedParserException Thrown if an error occurs while trying
-     * to determine the usual locations of feeds for this service.
-     */
-    public FeedReference[] getFeedLocations(String resource,
-                                            String content)
-                                                throws FeedParserException {
-        // Diaryland doesn't offer feeds
-        FeedReference diaryLandLocations[] = new FeedReference[0];
-
-        return diaryLandLocations;
-    }
-}
+/*
+ * Copyright 1999,2004 The Apache Software Foundation.
+ * 
+ * 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.
+ */
+
+package org.apache.commons.feedparser.locate.blogservice;
+
+import org.apache.commons.feedparser.FeedParserException;
+import org.apache.commons.feedparser.locate.*;
+
+/**
+ * Models the DiaryLand blog service, encapsulating whether a given weblog
+ * is this type of service and where it usually keeps its feeds.
+ * 
+ * @author Brad Neuberg, bkn3@columbia.edu
+ */
+public class DiaryLand extends BlogService {
+        
+    /** Returns whether we can trust the results of this blog service's 
+     *  autodiscovery links.  For example, TextAmerica returns invalid 
+     *  autodiscovery results.
+     */
+    public boolean hasValidAutoDiscovery() {
+        return true;
+    }
+    
+    /** Determines if the weblog at the given resource and with the given
+     *  content is this blog service.
+     * @param resource A full URI to this resource, such as 
+     * "http://www.codinginparadise.org".
+     * @param content The full HTML content at the resource's URL.
+     * @throws FeedParserException Thrown if an error occurs while 
+     * determining the type of this weblog.
+     */
+    public boolean isThisService(String resource, String content)
+                                                throws FeedParserException {
+        boolean results = false;
+        
+        results = containsDomain(resource, "diaryland.com");
+        
+        return results;
+    }
+
+    /**
+     * Returns an array of FeedReferences that contains information on the
+     * usual locations this blog service contains its feed.  The feeds should
+     * be ordered by quality, so that higher quality feeds come before lower
+     * quality ones (i.e. you would want to have an Atom FeedReference
+     * object come before an RSS 0.91 FeedReference object in this list).
+     * @param resource A URL to the given weblog that might be used to build
+     * up where feeds are usually located.
+     * @param content The full content of the resource URL, which might
+     * be useful to determine where feeds are usually located.  This can be
+     * null.
+     * @throws FeedParserException Thrown if an error occurs while trying
+     * to determine the usual locations of feeds for this service.
+     */
+    public FeedReference[] getFeedLocations(String resource,
+                                            String content)
+                                                throws FeedParserException {
+        // Diaryland doesn't offer feeds
+        FeedReference diaryLandLocations[] = new FeedReference[0];
+
+        return diaryLandLocations;
+    }
+}

Propchange: jakarta/commons/proper/feedparser/trunk/src/java/org/apache/commons/feedparser/locate/blogservice/DiaryLand.java
------------------------------------------------------------------------------
--- svn:keywords (original)
+++ svn:keywords Sat Feb 26 05:00:10 2005
@@ -1 +1 @@
-author date id revision
+Date Author Id Revision HeadURL

Modified: jakarta/commons/proper/feedparser/trunk/src/java/org/apache/commons/feedparser/locate/blogservice/ExpressionEngine.java
URL: http://svn.apache.org/viewcvs/jakarta/commons/proper/feedparser/trunk/src/java/org/apache/commons/feedparser/locate/blogservice/ExpressionEngine.java?view=diff&r1=155415&r2=155416
==============================================================================
--- jakarta/commons/proper/feedparser/trunk/src/java/org/apache/commons/feedparser/locate/blogservice/ExpressionEngine.java (original)
+++ jakarta/commons/proper/feedparser/trunk/src/java/org/apache/commons/feedparser/locate/blogservice/ExpressionEngine.java Sat Feb 26 05:00:10 2005
@@ -1,72 +1,72 @@
-/*
- * Copyright 1999,2004 The Apache Software Foundation.
- * 
- * 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.
- */
-
-package org.apache.commons.feedparser.locate.blogservice;
-
-import org.apache.commons.feedparser.FeedParserException;
-import org.apache.commons.feedparser.locate.*;
-
-/**
- * Models the ExpressionEngine blog service, encapsulating whether a given weblog
- * is this type of service and where it usually keeps its feeds.
- * 
- * @author Brad Neuberg, bkn3@columbia.edu
- */
-public class ExpressionEngine extends BlogService {
-    
-    /** Returns whether we can trust the results of this blog service's 
-     *  autodiscovery links.  For example, TextAmerica returns invalid 
-     *  autodiscovery results.
-     */
-    public boolean hasValidAutoDiscovery() {
-        return true;
-    }
-    
-    /** Determines if the weblog at the given resource and with the given
-     *  content is this blog service.
-     * @param resource A full URI to this resource, such as 
-     * "http://www.codinginparadise.org".
-     * @param content The full HTML content at the resource's URL.
-     * @throws FeedParserException Thrown if an error occurs while 
-     * determining the type of this weblog.
-     */
-    public boolean isThisService(String resource, String content)
-                                                throws FeedParserException {
-        // FIXME: No way to detect this type of weblog right now
-        return false;
-    }
-
-    /**
-     * Returns an array of FeedReferences that contains information on the
-     * usual locations this blog service contains its feed.  The feeds should
-     * be ordered by quality, so that higher quality feeds come before lower
-     * quality ones (i.e. you would want to have an Atom FeedReference
-     * object come before an RSS 0.91 FeedReference object in this list).
-     * @param resource A URL to the given weblog that might be used to build
-     * up where feeds are usually located.
-     * @param content The full content of the resource URL, which might
-     * be useful to determine where feeds are usually located.  This can be
-     * null.
-     * @throws FeedParserException Thrown if an error occurs while trying
-     * to determine the usual locations of feeds for this service.
-     */
-    public FeedReference[] getFeedLocations(String resource,
-                                            String content)
-                                                throws FeedParserException {
-        // FIXME: Implement
-        return new FeedReference[0];
-    }
-}
+/*
+ * Copyright 1999,2004 The Apache Software Foundation.
+ * 
+ * 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.
+ */
+
+package org.apache.commons.feedparser.locate.blogservice;
+
+import org.apache.commons.feedparser.FeedParserException;
+import org.apache.commons.feedparser.locate.*;
+
+/**
+ * Models the ExpressionEngine blog service, encapsulating whether a given weblog
+ * is this type of service and where it usually keeps its feeds.
+ * 
+ * @author Brad Neuberg, bkn3@columbia.edu
+ */
+public class ExpressionEngine extends BlogService {
+    
+    /** Returns whether we can trust the results of this blog service's 
+     *  autodiscovery links.  For example, TextAmerica returns invalid 
+     *  autodiscovery results.
+     */
+    public boolean hasValidAutoDiscovery() {
+        return true;
+    }
+    
+    /** Determines if the weblog at the given resource and with the given
+     *  content is this blog service.
+     * @param resource A full URI to this resource, such as 
+     * "http://www.codinginparadise.org".
+     * @param content The full HTML content at the resource's URL.
+     * @throws FeedParserException Thrown if an error occurs while 
+     * determining the type of this weblog.
+     */
+    public boolean isThisService(String resource, String content)
+                                                throws FeedParserException {
+        // FIXME: No way to detect this type of weblog right now
+        return false;
+    }
+
+    /**
+     * Returns an array of FeedReferences that contains information on the
+     * usual locations this blog service contains its feed.  The feeds should
+     * be ordered by quality, so that higher quality feeds come before lower
+     * quality ones (i.e. you would want to have an Atom FeedReference
+     * object come before an RSS 0.91 FeedReference object in this list).
+     * @param resource A URL to the given weblog that might be used to build
+     * up where feeds are usually located.
+     * @param content The full content of the resource URL, which might
+     * be useful to determine where feeds are usually located.  This can be
+     * null.
+     * @throws FeedParserException Thrown if an error occurs while trying
+     * to determine the usual locations of feeds for this service.
+     */
+    public FeedReference[] getFeedLocations(String resource,
+                                            String content)
+                                                throws FeedParserException {
+        // FIXME: Implement
+        return new FeedReference[0];
+    }
+}

Propchange: jakarta/commons/proper/feedparser/trunk/src/java/org/apache/commons/feedparser/locate/blogservice/ExpressionEngine.java
------------------------------------------------------------------------------
--- svn:keywords (original)
+++ svn:keywords Sat Feb 26 05:00:10 2005
@@ -1 +1 @@
-author date id revision
+Date Author Id Revision HeadURL

Modified: jakarta/commons/proper/feedparser/trunk/src/java/org/apache/commons/feedparser/locate/blogservice/Flickr.java
URL: http://svn.apache.org/viewcvs/jakarta/commons/proper/feedparser/trunk/src/java/org/apache/commons/feedparser/locate/blogservice/Flickr.java?view=diff&r1=155415&r2=155416
==============================================================================
--- jakarta/commons/proper/feedparser/trunk/src/java/org/apache/commons/feedparser/locate/blogservice/Flickr.java (original)
+++ jakarta/commons/proper/feedparser/trunk/src/java/org/apache/commons/feedparser/locate/blogservice/Flickr.java Sat Feb 26 05:00:10 2005
@@ -1,100 +1,100 @@
-/*
- * Copyright 1999,2004 The Apache Software Foundation.
- * 
- * 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.
- */
-
-package org.apache.commons.feedparser.locate.blogservice;
-
-import org.apache.commons.feedparser.FeedParserException;
-import org.apache.commons.feedparser.locate.*;
-
-/**
- * Models the Flickr image blog service, encapsulating whether a given weblog
- * is this type of service and where it usually keeps its feeds.
- * 
- * @author Brad Neuberg, bkn3@columbia.edu
- */
-public class Flickr extends BlogService {
-    
-    /** Returns whether we can trust the results of this blog service's 
-     *  autodiscovery links.  For example, TextAmerica returns invalid 
-     *  autodiscovery results.
-     */
-    public boolean hasValidAutoDiscovery() {
-        return true;
-    }
-    
-    /** Determines if the weblog at the given resource and with the given
-     *  content is this blog service.
-     * @param resource A full URI to this resource, such as 
-     * "http://www.codinginparadise.org".
-     * @param content The full HTML content at the resource's URL.
-     * @throws FeedParserException Thrown if an error occurs while 
-     * determining the type of this weblog.
-     */
-    public boolean isThisService(String resource, String content)
-                                                throws FeedParserException {
-        return resource.indexOf( "flickr.com" ) != -1;
-    }
-
-    /**
-     * Returns an array of FeedReferences that contains information on the
-     * usual locations this blog service contains its feed.  The feeds should
-     * be ordered by quality, so that higher quality feeds come before lower
-     * quality ones (i.e. you would want to have an Atom FeedReference
-     * object come before an RSS 0.91 FeedReference object in this list).
-     * @param resource A URL to the given weblog that might be used to build
-     * up where feeds are usually located.
-     * @param content The full content of the resource URL, which might
-     * be useful to determine where feeds are usually located.  This can be
-     * null.
-     * @throws FeedParserException Thrown if an error occurs while trying
-     * to determine the usual locations of feeds for this service.
-     */
-    public FeedReference[] getFeedLocations(String resource,
-                                            String content)
-                                                throws FeedParserException {
-        resource = getBaseFeedPath(resource);
-        //  * Input: http://flickr.com/photos/tags/cats/
-        //  *
-        //  * Output: http://flickr.com/services/feeds/photos_public.gne?tags=cats&format=atom_03
-
-        if ( resource == null )
-            return new FeedReference[0];
-
-        int begin = resource.indexOf( "/tags/" );
-
-        //we can't continue here.
-        if ( begin == -1 )
-            return new FeedReference[0];
-
-        begin += 6;
-
-        int end = resource.lastIndexOf( "/" );
-        if ( end == -1 || end < begin )
-            end = resource.length();
-
-        String tag = resource.substring( begin, end );
-
-        String location = "http://flickr.com/services/feeds/photos_public.gne?tags=" +
-                          tag +
-                          "&format=atom_03";
-        
-        FeedReference flickrLocations[] =
-                { new FeedReference(location, 
-                                    FeedReference.ATOM_MEDIA_TYPE) };
-        
-        return flickrLocations;
-    }
-}
+/*
+ * Copyright 1999,2004 The Apache Software Foundation.
+ * 
+ * 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.
+ */
+
+package org.apache.commons.feedparser.locate.blogservice;
+
+import org.apache.commons.feedparser.FeedParserException;
+import org.apache.commons.feedparser.locate.*;
+
+/**
+ * Models the Flickr image blog service, encapsulating whether a given weblog
+ * is this type of service and where it usually keeps its feeds.
+ * 
+ * @author Brad Neuberg, bkn3@columbia.edu
+ */
+public class Flickr extends BlogService {
+    
+    /** Returns whether we can trust the results of this blog service's 
+     *  autodiscovery links.  For example, TextAmerica returns invalid 
+     *  autodiscovery results.
+     */
+    public boolean hasValidAutoDiscovery() {
+        return true;
+    }
+    
+    /** Determines if the weblog at the given resource and with the given
+     *  content is this blog service.
+     * @param resource A full URI to this resource, such as 
+     * "http://www.codinginparadise.org".
+     * @param content The full HTML content at the resource's URL.
+     * @throws FeedParserException Thrown if an error occurs while 
+     * determining the type of this weblog.
+     */
+    public boolean isThisService(String resource, String content)
+                                                throws FeedParserException {
+        return resource.indexOf( "flickr.com" ) != -1;
+    }
+
+    /**
+     * Returns an array of FeedReferences that contains information on the
+     * usual locations this blog service contains its feed.  The feeds should
+     * be ordered by quality, so that higher quality feeds come before lower
+     * quality ones (i.e. you would want to have an Atom FeedReference
+     * object come before an RSS 0.91 FeedReference object in this list).
+     * @param resource A URL to the given weblog that might be used to build
+     * up where feeds are usually located.
+     * @param content The full content of the resource URL, which might
+     * be useful to determine where feeds are usually located.  This can be
+     * null.
+     * @throws FeedParserException Thrown if an error occurs while trying
+     * to determine the usual locations of feeds for this service.
+     */
+    public FeedReference[] getFeedLocations(String resource,
+                                            String content)
+                                                throws FeedParserException {
+        resource = getBaseFeedPath(resource);
+        //  * Input: http://flickr.com/photos/tags/cats/
+        //  *
+        //  * Output: http://flickr.com/services/feeds/photos_public.gne?tags=cats&format=atom_03
+
+        if ( resource == null )
+            return new FeedReference[0];
+
+        int begin = resource.indexOf( "/tags/" );
+
+        //we can't continue here.
+        if ( begin == -1 )
+            return new FeedReference[0];
+
+        begin += 6;
+
+        int end = resource.lastIndexOf( "/" );
+        if ( end == -1 || end < begin )
+            end = resource.length();
+
+        String tag = resource.substring( begin, end );
+
+        String location = "http://flickr.com/services/feeds/photos_public.gne?tags=" +
+                          tag +
+                          "&format=atom_03";
+        
+        FeedReference flickrLocations[] =
+                { new FeedReference(location, 
+                                    FeedReference.ATOM_MEDIA_TYPE) };
+        
+        return flickrLocations;
+    }
+}

Propchange: jakarta/commons/proper/feedparser/trunk/src/java/org/apache/commons/feedparser/locate/blogservice/Flickr.java
------------------------------------------------------------------------------
--- svn:keywords (original)
+++ svn:keywords Sat Feb 26 05:00:10 2005
@@ -1 +1 @@
-author date id revision
+Date Author Id Revision HeadURL

Modified: jakarta/commons/proper/feedparser/trunk/src/java/org/apache/commons/feedparser/locate/blogservice/GreyMatter.java
URL: http://svn.apache.org/viewcvs/jakarta/commons/proper/feedparser/trunk/src/java/org/apache/commons/feedparser/locate/blogservice/GreyMatter.java?view=diff&r1=155415&r2=155416
==============================================================================
--- jakarta/commons/proper/feedparser/trunk/src/java/org/apache/commons/feedparser/locate/blogservice/GreyMatter.java (original)
+++ jakarta/commons/proper/feedparser/trunk/src/java/org/apache/commons/feedparser/locate/blogservice/GreyMatter.java Sat Feb 26 05:00:10 2005
@@ -1,75 +1,75 @@
-/*
- * Copyright 1999,2004 The Apache Software Foundation.
- * 
- * 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.
- */
-
-package org.apache.commons.feedparser.locate.blogservice;
-
-import org.apache.commons.feedparser.FeedParserException;
-import org.apache.commons.feedparser.locate.*;
-
-/**
- * Models the GreyMatter blog service, encapsulating whether a given weblog
- * is this type of service and where it usually keeps its feeds.
- * 
- * @author Brad Neuberg, bkn3@columbia.edu
- */
-public class GreyMatter extends BlogService {
-    
-    /** Returns whether we can trust the results of this blog service's 
-     *  autodiscovery links.  For example, TextAmerica returns invalid 
-     *  autodiscovery results.
-     */
-    public boolean hasValidAutoDiscovery() {
-        return true;
-    }
-    
-    /** Determines if the weblog at the given resource and with the given
-     *  content is this blog service.
-     * @param resource A full URI to this resource, such as 
-     * "http://www.codinginparadise.org".
-     * @param content The full HTML content at the resource's URL.
-     * @throws FeedParserException Thrown if an error occurs while 
-     * determining the type of this weblog.
-     */
-    public boolean isThisService(String resource, String content)
-                                                throws FeedParserException {
-        boolean results = false;
-        
-        results = hasGenerator(content, "greymatter");
-        
-        return results;
-    }
-
-    /**
-     * Returns an array of FeedReferences that contains information on the
-     * usual locations this blog service contains its feed.  The feeds should
-     * be ordered by quality, so that higher quality feeds come before lower
-     * quality ones (i.e. you would want to have an Atom FeedReference
-     * object come before an RSS 0.91 FeedReference object in this list).
-     * @param resource A URL to the given weblog that might be used to build
-     * up where feeds are usually located.
-     * @param content The full content of the resource URL, which might
-     * be useful to determine where feeds are usually located.  This can be
-     * null.
-     * @throws FeedParserException Thrown if an error occurs while trying
-     * to determine the usual locations of feeds for this service.
-     */
-    public FeedReference[] getFeedLocations(String resource,
-                                            String content)
-                                                throws FeedParserException {
-        // FIXME: Implement
-        return new FeedReference[0];
-    }
-}
+/*
+ * Copyright 1999,2004 The Apache Software Foundation.
+ * 
+ * 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.
+ */
+
+package org.apache.commons.feedparser.locate.blogservice;
+
+import org.apache.commons.feedparser.FeedParserException;
+import org.apache.commons.feedparser.locate.*;
+
+/**
+ * Models the GreyMatter blog service, encapsulating whether a given weblog
+ * is this type of service and where it usually keeps its feeds.
+ * 
+ * @author Brad Neuberg, bkn3@columbia.edu
+ */
+public class GreyMatter extends BlogService {
+    
+    /** Returns whether we can trust the results of this blog service's 
+     *  autodiscovery links.  For example, TextAmerica returns invalid 
+     *  autodiscovery results.
+     */
+    public boolean hasValidAutoDiscovery() {
+        return true;
+    }
+    
+    /** Determines if the weblog at the given resource and with the given
+     *  content is this blog service.
+     * @param resource A full URI to this resource, such as 
+     * "http://www.codinginparadise.org".
+     * @param content The full HTML content at the resource's URL.
+     * @throws FeedParserException Thrown if an error occurs while 
+     * determining the type of this weblog.
+     */
+    public boolean isThisService(String resource, String content)
+                                                throws FeedParserException {
+        boolean results = false;
+        
+        results = hasGenerator(content, "greymatter");
+        
+        return results;
+    }
+
+    /**
+     * Returns an array of FeedReferences that contains information on the
+     * usual locations this blog service contains its feed.  The feeds should
+     * be ordered by quality, so that higher quality feeds come before lower
+     * quality ones (i.e. you would want to have an Atom FeedReference
+     * object come before an RSS 0.91 FeedReference object in this list).
+     * @param resource A URL to the given weblog that might be used to build
+     * up where feeds are usually located.
+     * @param content The full content of the resource URL, which might
+     * be useful to determine where feeds are usually located.  This can be
+     * null.
+     * @throws FeedParserException Thrown if an error occurs while trying
+     * to determine the usual locations of feeds for this service.
+     */
+    public FeedReference[] getFeedLocations(String resource,
+                                            String content)
+                                                throws FeedParserException {
+        // FIXME: Implement
+        return new FeedReference[0];
+    }
+}

Propchange: jakarta/commons/proper/feedparser/trunk/src/java/org/apache/commons/feedparser/locate/blogservice/GreyMatter.java
------------------------------------------------------------------------------
--- svn:keywords (original)
+++ svn:keywords Sat Feb 26 05:00:10 2005
@@ -1 +1 @@
-author date id revision
+Date Author Id Revision HeadURL

Modified: jakarta/commons/proper/feedparser/trunk/src/java/org/apache/commons/feedparser/locate/blogservice/LiveJournal.java
URL: http://svn.apache.org/viewcvs/jakarta/commons/proper/feedparser/trunk/src/java/org/apache/commons/feedparser/locate/blogservice/LiveJournal.java?view=diff&r1=155415&r2=155416
==============================================================================
--- jakarta/commons/proper/feedparser/trunk/src/java/org/apache/commons/feedparser/locate/blogservice/LiveJournal.java (original)
+++ jakarta/commons/proper/feedparser/trunk/src/java/org/apache/commons/feedparser/locate/blogservice/LiveJournal.java Sat Feb 26 05:00:10 2005
@@ -1,78 +1,78 @@
-/*
- * Copyright 1999,2004 The Apache Software Foundation.
- * 
- * 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.
- */
-
-package org.apache.commons.feedparser.locate.blogservice;
-
-import org.apache.commons.feedparser.FeedParserException;
-import org.apache.commons.feedparser.locate.*;
-
-/**
- * Models the LiveJournal blog service, encapsulating whether a given weblog
- * is this type of service and where it usually keeps its feeds.
- * 
- * @author Brad Neuberg, bkn3@columbia.edu
- */
-public class LiveJournal extends BlogService {
-    
-    /** Returns whether we can trust the results of this blog service's 
-     *  autodiscovery links.  For example, TextAmerica returns invalid 
-     *  autodiscovery results.
-     */
-    public boolean hasValidAutoDiscovery() {
-        return true;
-    }
-    
-    /** Determines if the weblog at the given resource and with the given
-     *  content is this blog service.
-     * @param resource A full URI to this resource, such as 
-     * "http://www.codinginparadise.org".
-     * @param content The full HTML content at the resource's URL.
-     * @throws FeedParserException Thrown if an error occurs while 
-     * determining the type of this weblog.
-     */
-    public boolean isThisService(String resource, String content)
-                                                throws FeedParserException {
-        boolean results = false;
-        
-        results = containsDomain(resource, "livejournal.com");
-        
-        return results;
-    }
-
-    /**
-     * Returns an array of FeedReferences that contains information on the
-     * usual locations this blog service contains its feed.  The feeds should
-     * be ordered by quality, so that higher quality feeds come before lower
-     * quality ones (i.e. you would want to have an Atom FeedReference
-     * object come before an RSS 0.91 FeedReference object in this list).
-     * @param resource A URL to the given weblog that might be used to build
-     * up where feeds are usually located.
-     * @param content The full content of the resource URL, which might
-     * be useful to determine where feeds are usually located.  This can be
-     * null.
-     * @throws FeedParserException Thrown if an error occurs while trying
-     * to determine the usual locations of feeds for this service.
-     */
-    public FeedReference[] getFeedLocations(String resource,
-                                            String content)
-                                                throws FeedParserException {
-        FeedReference liveJournalLocations[] =
-            { new FeedReference("data/atom", FeedReference.ATOM_MEDIA_TYPE),
-              new FeedReference("data/rss", FeedReference.RSS_MEDIA_TYPE) };
-        
-        return liveJournalLocations;
-    }
-}
+/*
+ * Copyright 1999,2004 The Apache Software Foundation.
+ * 
+ * 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.
+ */
+
+package org.apache.commons.feedparser.locate.blogservice;
+
+import org.apache.commons.feedparser.FeedParserException;
+import org.apache.commons.feedparser.locate.*;
+
+/**
+ * Models the LiveJournal blog service, encapsulating whether a given weblog
+ * is this type of service and where it usually keeps its feeds.
+ * 
+ * @author Brad Neuberg, bkn3@columbia.edu
+ */
+public class LiveJournal extends BlogService {
+    
+    /** Returns whether we can trust the results of this blog service's 
+     *  autodiscovery links.  For example, TextAmerica returns invalid 
+     *  autodiscovery results.
+     */
+    public boolean hasValidAutoDiscovery() {
+        return true;
+    }
+    
+    /** Determines if the weblog at the given resource and with the given
+     *  content is this blog service.
+     * @param resource A full URI to this resource, such as 
+     * "http://www.codinginparadise.org".
+     * @param content The full HTML content at the resource's URL.
+     * @throws FeedParserException Thrown if an error occurs while 
+     * determining the type of this weblog.
+     */
+    public boolean isThisService(String resource, String content)
+                                                throws FeedParserException {
+        boolean results = false;
+        
+        results = containsDomain(resource, "livejournal.com");
+        
+        return results;
+    }
+
+    /**
+     * Returns an array of FeedReferences that contains information on the
+     * usual locations this blog service contains its feed.  The feeds should
+     * be ordered by quality, so that higher quality feeds come before lower
+     * quality ones (i.e. you would want to have an Atom FeedReference
+     * object come before an RSS 0.91 FeedReference object in this list).
+     * @param resource A URL to the given weblog that might be used to build
+     * up where feeds are usually located.
+     * @param content The full content of the resource URL, which might
+     * be useful to determine where feeds are usually located.  This can be
+     * null.
+     * @throws FeedParserException Thrown if an error occurs while trying
+     * to determine the usual locations of feeds for this service.
+     */
+    public FeedReference[] getFeedLocations(String resource,
+                                            String content)
+                                                throws FeedParserException {
+        FeedReference liveJournalLocations[] =
+            { new FeedReference("data/atom", FeedReference.ATOM_MEDIA_TYPE),
+              new FeedReference("data/rss", FeedReference.RSS_MEDIA_TYPE) };
+        
+        return liveJournalLocations;
+    }
+}

Propchange: jakarta/commons/proper/feedparser/trunk/src/java/org/apache/commons/feedparser/locate/blogservice/LiveJournal.java
------------------------------------------------------------------------------
--- svn:keywords (original)
+++ svn:keywords Sat Feb 26 05:00:10 2005
@@ -1 +1 @@
-author date id revision
+Date Author Id Revision HeadURL

Modified: jakarta/commons/proper/feedparser/trunk/src/java/org/apache/commons/feedparser/locate/blogservice/Manila.java
URL: http://svn.apache.org/viewcvs/jakarta/commons/proper/feedparser/trunk/src/java/org/apache/commons/feedparser/locate/blogservice/Manila.java?view=diff&r1=155415&r2=155416
==============================================================================
--- jakarta/commons/proper/feedparser/trunk/src/java/org/apache/commons/feedparser/locate/blogservice/Manila.java (original)
+++ jakarta/commons/proper/feedparser/trunk/src/java/org/apache/commons/feedparser/locate/blogservice/Manila.java Sat Feb 26 05:00:10 2005
@@ -1,75 +1,75 @@
-/*
- * Copyright 1999,2004 The Apache Software Foundation.
- * 
- * 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.
- */
-
-package org.apache.commons.feedparser.locate.blogservice;
-
-import org.apache.commons.feedparser.FeedParserException;
-import org.apache.commons.feedparser.locate.*;
-
-/**
- * Models the Manila blog service, encapsulating whether a given weblog
- * is this type of service and where it usually keeps its feeds.
- * 
- * @author Brad Neuberg, bkn3@columbia.edu
- */
-public class Manila extends BlogService {
-    
-    /** Returns whether we can trust the results of this blog service's 
-     *  autodiscovery links.  For example, TextAmerica returns invalid 
-     *  autodiscovery results.
-     */
-    public boolean hasValidAutoDiscovery() {
-        return true;
-    }
-    
-    /** Determines if the weblog at the given resource and with the given
-     *  content is this blog service.
-     * @param resource A full URI to this resource, such as 
-     * "http://www.codinginparadise.org".
-     * @param content The full HTML content at the resource's URL.
-     * @throws FeedParserException Thrown if an error occurs while 
-     * determining the type of this weblog.
-     */
-    public boolean isThisService(String resource, String content)
-                                                throws FeedParserException {
-        // FIXME: No way to detect this type of weblog right now
-        return false;
-    }
-
-    /**
-     * Returns an array of FeedReferences that contains information on the
-     * usual locations this blog service contains its feed.  The feeds should
-     * be ordered by quality, so that higher quality feeds come before lower
-     * quality ones (i.e. you would want to have an Atom FeedReference
-     * object come before an RSS 0.91 FeedReference object in this list).
-     * @param resource A URL to the given weblog that might be used to build
-     * up where feeds are usually located.
-     * @param content The full content of the resource URL, which might
-     * be useful to determine where feeds are usually located.  This can be
-     * null.
-     * @throws FeedParserException Thrown if an error occurs while trying
-     * to determine the usual locations of feeds for this service.
-     */
-    public FeedReference[] getFeedLocations(String resource,
-                                            String content)
-                                                throws FeedParserException {
-        FeedReference manilaLocations[] =
-            { new FeedReference("xml/rss.xml", FeedReference.RSS_MEDIA_TYPE),
-              new FeedReference("rss.xml", FeedReference.RSS_MEDIA_TYPE) };
-        
-        return manilaLocations;
-    }
-}
+/*
+ * Copyright 1999,2004 The Apache Software Foundation.
+ * 
+ * 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.
+ */
+
+package org.apache.commons.feedparser.locate.blogservice;
+
+import org.apache.commons.feedparser.FeedParserException;
+import org.apache.commons.feedparser.locate.*;
+
+/**
+ * Models the Manila blog service, encapsulating whether a given weblog
+ * is this type of service and where it usually keeps its feeds.
+ * 
+ * @author Brad Neuberg, bkn3@columbia.edu
+ */
+public class Manila extends BlogService {
+    
+    /** Returns whether we can trust the results of this blog service's 
+     *  autodiscovery links.  For example, TextAmerica returns invalid 
+     *  autodiscovery results.
+     */
+    public boolean hasValidAutoDiscovery() {
+        return true;
+    }
+    
+    /** Determines if the weblog at the given resource and with the given
+     *  content is this blog service.
+     * @param resource A full URI to this resource, such as 
+     * "http://www.codinginparadise.org".
+     * @param content The full HTML content at the resource's URL.
+     * @throws FeedParserException Thrown if an error occurs while 
+     * determining the type of this weblog.
+     */
+    public boolean isThisService(String resource, String content)
+                                                throws FeedParserException {
+        // FIXME: No way to detect this type of weblog right now
+        return false;
+    }
+
+    /**
+     * Returns an array of FeedReferences that contains information on the
+     * usual locations this blog service contains its feed.  The feeds should
+     * be ordered by quality, so that higher quality feeds come before lower
+     * quality ones (i.e. you would want to have an Atom FeedReference
+     * object come before an RSS 0.91 FeedReference object in this list).
+     * @param resource A URL to the given weblog that might be used to build
+     * up where feeds are usually located.
+     * @param content The full content of the resource URL, which might
+     * be useful to determine where feeds are usually located.  This can be
+     * null.
+     * @throws FeedParserException Thrown if an error occurs while trying
+     * to determine the usual locations of feeds for this service.
+     */
+    public FeedReference[] getFeedLocations(String resource,
+                                            String content)
+                                                throws FeedParserException {
+        FeedReference manilaLocations[] =
+            { new FeedReference("xml/rss.xml", FeedReference.RSS_MEDIA_TYPE),
+              new FeedReference("rss.xml", FeedReference.RSS_MEDIA_TYPE) };
+        
+        return manilaLocations;
+    }
+}

Propchange: jakarta/commons/proper/feedparser/trunk/src/java/org/apache/commons/feedparser/locate/blogservice/Manila.java
------------------------------------------------------------------------------
--- svn:keywords (original)
+++ svn:keywords Sat Feb 26 05:00:10 2005
@@ -1 +1 @@
-author date id revision
+Date Author Id Revision HeadURL

Modified: jakarta/commons/proper/feedparser/trunk/src/java/org/apache/commons/feedparser/locate/blogservice/MovableType.java
URL: http://svn.apache.org/viewcvs/jakarta/commons/proper/feedparser/trunk/src/java/org/apache/commons/feedparser/locate/blogservice/MovableType.java?view=diff&r1=155415&r2=155416
==============================================================================
--- jakarta/commons/proper/feedparser/trunk/src/java/org/apache/commons/feedparser/locate/blogservice/MovableType.java (original)
+++ jakarta/commons/proper/feedparser/trunk/src/java/org/apache/commons/feedparser/locate/blogservice/MovableType.java Sat Feb 26 05:00:10 2005
@@ -1,75 +1,75 @@
-/*
- * Copyright 1999,2004 The Apache Software Foundation.
- * 
- * 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.
- */
-
-package org.apache.commons.feedparser.locate.blogservice;
-
-import org.apache.commons.feedparser.FeedParserException;
-import org.apache.commons.feedparser.locate.*;
-
-/**
- * Models the MovableType blog service, encapsulating whether a given weblog
- * is this type of service and where it usually keeps its feeds.
- * 
- * @author Brad Neuberg, bkn3@columbia.edu
- */
-public class MovableType extends BlogService {
-    
-    /** Returns whether we can trust the results of this blog service's 
-     *  autodiscovery links.  For example, TextAmerica returns invalid 
-     *  autodiscovery results.
-     */
-    public boolean hasValidAutoDiscovery() {
-        return true;
-    }
-    
-    /** Determines if the weblog at the given resource and with the given
-     *  content is this blog service.
-     * @param resource A full URI to this resource, such as 
-     * "http://www.codinginparadise.org".
-     * @param content The full HTML content at the resource's URL.
-     * @throws FeedParserException Thrown if an error occurs while 
-     * determining the type of this weblog.
-     */
-    public boolean isThisService(String resource, String content)
-                                                throws FeedParserException {
-        boolean results = false;
-        
-        results = hasGenerator(content, "movabletype");
-        
-        return results;
-    }
-
-    /**
-     * Returns an array of FeedReferences that contains information on the
-     * usual locations this blog service contains its feed.  The feeds should
-     * be ordered by quality, so that higher quality feeds come before lower
-     * quality ones (i.e. you would want to have an Atom FeedReference
-     * object come before an RSS 0.91 FeedReference object in this list).
-     * @param resource A URL to the given weblog that might be used to build
-     * up where feeds are usually located.
-     * @param content The full content of the resource URL, which might
-     * be useful to determine where feeds are usually located.  This can be
-     * null.
-     * @throws FeedParserException Thrown if an error occurs while trying
-     * to determine the usual locations of feeds for this service.
-     */
-    public FeedReference[] getFeedLocations(String resource,
-                                            String content)
-                                                throws FeedParserException {
-        // FIXME: Implement
-        return new FeedReference[0];
-    }
-}
+/*
+ * Copyright 1999,2004 The Apache Software Foundation.
+ * 
+ * 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.
+ */
+
+package org.apache.commons.feedparser.locate.blogservice;
+
+import org.apache.commons.feedparser.FeedParserException;
+import org.apache.commons.feedparser.locate.*;
+
+/**
+ * Models the MovableType blog service, encapsulating whether a given weblog
+ * is this type of service and where it usually keeps its feeds.
+ * 
+ * @author Brad Neuberg, bkn3@columbia.edu
+ */
+public class MovableType extends BlogService {
+    
+    /** Returns whether we can trust the results of this blog service's 
+     *  autodiscovery links.  For example, TextAmerica returns invalid 
+     *  autodiscovery results.
+     */
+    public boolean hasValidAutoDiscovery() {
+        return true;
+    }
+    
+    /** Determines if the weblog at the given resource and with the given
+     *  content is this blog service.
+     * @param resource A full URI to this resource, such as 
+     * "http://www.codinginparadise.org".
+     * @param content The full HTML content at the resource's URL.
+     * @throws FeedParserException Thrown if an error occurs while 
+     * determining the type of this weblog.
+     */
+    public boolean isThisService(String resource, String content)
+                                                throws FeedParserException {
+        boolean results = false;
+        
+        results = hasGenerator(content, "movabletype");
+        
+        return results;
+    }
+
+    /**
+     * Returns an array of FeedReferences that contains information on the
+     * usual locations this blog service contains its feed.  The feeds should
+     * be ordered by quality, so that higher quality feeds come before lower
+     * quality ones (i.e. you would want to have an Atom FeedReference
+     * object come before an RSS 0.91 FeedReference object in this list).
+     * @param resource A URL to the given weblog that might be used to build
+     * up where feeds are usually located.
+     * @param content The full content of the resource URL, which might
+     * be useful to determine where feeds are usually located.  This can be
+     * null.
+     * @throws FeedParserException Thrown if an error occurs while trying
+     * to determine the usual locations of feeds for this service.
+     */
+    public FeedReference[] getFeedLocations(String resource,
+                                            String content)
+                                                throws FeedParserException {
+        // FIXME: Implement
+        return new FeedReference[0];
+    }
+}

Propchange: jakarta/commons/proper/feedparser/trunk/src/java/org/apache/commons/feedparser/locate/blogservice/MovableType.java
------------------------------------------------------------------------------
--- svn:keywords (original)
+++ svn:keywords Sat Feb 26 05:00:10 2005
@@ -1 +1 @@
-author date id revision
+Date Author Id Revision HeadURL

Modified: jakarta/commons/proper/feedparser/trunk/src/java/org/apache/commons/feedparser/locate/blogservice/PMachine.java
URL: http://svn.apache.org/viewcvs/jakarta/commons/proper/feedparser/trunk/src/java/org/apache/commons/feedparser/locate/blogservice/PMachine.java?view=diff&r1=155415&r2=155416
==============================================================================
--- jakarta/commons/proper/feedparser/trunk/src/java/org/apache/commons/feedparser/locate/blogservice/PMachine.java (original)
+++ jakarta/commons/proper/feedparser/trunk/src/java/org/apache/commons/feedparser/locate/blogservice/PMachine.java Sat Feb 26 05:00:10 2005
@@ -1,85 +1,85 @@
-/*
- * Copyright 1999,2004 The Apache Software Foundation.
- * 
- * 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.
- */
-
-package org.apache.commons.feedparser.locate.blogservice;
-
-import org.apache.commons.feedparser.FeedParserException;
-import org.apache.commons.feedparser.locate.*;
-
-import java.util.regex.*;
-
-/**
- * Models the PMachine blog service, encapsulating whether a given weblog
- * is this type of service and where it usually keeps its feeds.
- * 
- * @author Brad Neuberg, bkn3@columbia.edu
- */
-public class PMachine extends BlogService {
-    
-    /** A pattern used to discover PMachine blogs. */
-    private static Pattern pmachinePattern =
-                Pattern.compile("pmachine", Pattern.CASE_INSENSITIVE);
-        
-    /** Returns whether we can trust the results of this blog service's 
-     *  autodiscovery links.  For example, TextAmerica returns invalid 
-     *  autodiscovery results.
-     */
-    public boolean hasValidAutoDiscovery() {
-        return true;
-    }
-    
-    /** Determines if the weblog at the given resource and with the given
-     *  content is this blog service.
-     * @param resource A full URI to this resource, such as 
-     * "http://www.codinginparadise.org".
-     * @param content The full HTML content at the resource's URL.
-     * @throws FeedParserException Thrown if an error occurs while 
-     * determining the type of this weblog.
-     */
-    public boolean isThisService(String resource, String content)
-                                                throws FeedParserException {
-        boolean results = false;
-        
-        Matcher pmachineMatcher = pmachinePattern.matcher(resource);
-        
-        results = pmachineMatcher.find();
-        
-        return results;
-    }
-
-    /**
-     * Returns an array of FeedReferences that contains information on the
-     * usual locations this blog service contains its feed.  The feeds should
-     * be ordered by quality, so that higher quality feeds come before lower
-     * quality ones (i.e. you would want to have an Atom FeedReference
-     * object come before an RSS 0.91 FeedReference object in this list).
-     * @param resource A URL to the given weblog that might be used to build
-     * up where feeds are usually located.
-     * @param content The full content of the resource URL, which might
-     * be useful to determine where feeds are usually located.  This can be
-     * null.
-     * @throws FeedParserException Thrown if an error occurs while trying
-     * to determine the usual locations of feeds for this service.
-     */
-    public FeedReference[] getFeedLocations(String resource,
-                                            String content)
-                                                throws FeedParserException {
-        FeedReference pmachineLocations[] =
-            { new FeedReference("index.xml", FeedReference.RSS_MEDIA_TYPE) };
-        
-        return pmachineLocations;
-    }
-}
+/*
+ * Copyright 1999,2004 The Apache Software Foundation.
+ * 
+ * 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.
+ */
+
+package org.apache.commons.feedparser.locate.blogservice;
+
+import org.apache.commons.feedparser.FeedParserException;
+import org.apache.commons.feedparser.locate.*;
+
+import java.util.regex.*;
+
+/**
+ * Models the PMachine blog service, encapsulating whether a given weblog
+ * is this type of service and where it usually keeps its feeds.
+ * 
+ * @author Brad Neuberg, bkn3@columbia.edu
+ */
+public class PMachine extends BlogService {
+    
+    /** A pattern used to discover PMachine blogs. */
+    private static Pattern pmachinePattern =
+                Pattern.compile("pmachine", Pattern.CASE_INSENSITIVE);
+        
+    /** Returns whether we can trust the results of this blog service's 
+     *  autodiscovery links.  For example, TextAmerica returns invalid 
+     *  autodiscovery results.
+     */
+    public boolean hasValidAutoDiscovery() {
+        return true;
+    }
+    
+    /** Determines if the weblog at the given resource and with the given
+     *  content is this blog service.
+     * @param resource A full URI to this resource, such as 
+     * "http://www.codinginparadise.org".
+     * @param content The full HTML content at the resource's URL.
+     * @throws FeedParserException Thrown if an error occurs while 
+     * determining the type of this weblog.
+     */
+    public boolean isThisService(String resource, String content)
+                                                throws FeedParserException {
+        boolean results = false;
+        
+        Matcher pmachineMatcher = pmachinePattern.matcher(resource);
+        
+        results = pmachineMatcher.find();
+        
+        return results;
+    }
+
+    /**
+     * Returns an array of FeedReferences that contains information on the
+     * usual locations this blog service contains its feed.  The feeds should
+     * be ordered by quality, so that higher quality feeds come before lower
+     * quality ones (i.e. you would want to have an Atom FeedReference
+     * object come before an RSS 0.91 FeedReference object in this list).
+     * @param resource A URL to the given weblog that might be used to build
+     * up where feeds are usually located.
+     * @param content The full content of the resource URL, which might
+     * be useful to determine where feeds are usually located.  This can be
+     * null.
+     * @throws FeedParserException Thrown if an error occurs while trying
+     * to determine the usual locations of feeds for this service.
+     */
+    public FeedReference[] getFeedLocations(String resource,
+                                            String content)
+                                                throws FeedParserException {
+        FeedReference pmachineLocations[] =
+            { new FeedReference("index.xml", FeedReference.RSS_MEDIA_TYPE) };
+        
+        return pmachineLocations;
+    }
+}

Propchange: jakarta/commons/proper/feedparser/trunk/src/java/org/apache/commons/feedparser/locate/blogservice/PMachine.java
------------------------------------------------------------------------------
--- svn:keywords (original)
+++ svn:keywords Sat Feb 26 05:00:10 2005
@@ -1 +1 @@
-author date id revision
+Date Author Id Revision HeadURL

Modified: jakarta/commons/proper/feedparser/trunk/src/java/org/apache/commons/feedparser/locate/blogservice/RadioUserland.java
URL: http://svn.apache.org/viewcvs/jakarta/commons/proper/feedparser/trunk/src/java/org/apache/commons/feedparser/locate/blogservice/RadioUserland.java?view=diff&r1=155415&r2=155416
==============================================================================
--- jakarta/commons/proper/feedparser/trunk/src/java/org/apache/commons/feedparser/locate/blogservice/RadioUserland.java (original)
+++ jakarta/commons/proper/feedparser/trunk/src/java/org/apache/commons/feedparser/locate/blogservice/RadioUserland.java Sat Feb 26 05:00:10 2005
@@ -1,81 +1,81 @@
-/*
- * Copyright 1999,2004 The Apache Software Foundation.
- * 
- * 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.
- */
-
-package org.apache.commons.feedparser.locate.blogservice;
-
-import org.apache.commons.feedparser.FeedParserException;
-import org.apache.commons.feedparser.locate.*;
-
-/**
- * Models the Radio Userland blog service, encapsulating whether a given weblog
- * is this type of service and where it usually keeps its feeds.
- * 
- * @author Brad Neuberg, bkn3@columbia.edu
- */
-public class RadioUserland extends BlogService {
-    
-    /** Returns whether we can trust the results of this blog service's 
-     *  autodiscovery links.  For example, TextAmerica returns invalid 
-     *  autodiscovery results.
-     */
-    public boolean hasValidAutoDiscovery() {
-        return true;
-    }
-    
-    /** Determines if the weblog at the given resource and with the given
-     *  content is this blog service.
-     * @param resource A full URI to this resource, such as 
-     * "http://www.codinginparadise.org".
-     * @param content The full HTML content at the resource's URL.
-     * @throws FeedParserException Thrown if an error occurs while 
-     * determining the type of this weblog.
-     */
-    public boolean isThisService(String resource, String content)
-                                                throws FeedParserException {
-        boolean results = false;
-        
-        results = containsDomain(resource, "radio.userland.com");
-        
-        if (results == false) {
-            results = containsDomain(resource, "radio.weblogs.com");
-        }
-        
-        return results;
-    }
-
-    /**
-     * Returns an array of FeedReferences that contains information on the
-     * usual locations this blog service contains its feed.  The feeds should
-     * be ordered by quality, so that higher quality feeds come before lower
-     * quality ones (i.e. you would want to have an Atom FeedReference
-     * object come before an RSS 0.91 FeedReference object in this list).
-     * @param resource A URL to the given weblog that might be used to build
-     * up where feeds are usually located.
-     * @param content The full content of the resource URL, which might
-     * be useful to determine where feeds are usually located.  This can be
-     * null.
-     * @throws FeedParserException Thrown if an error occurs while trying
-     * to determine the usual locations of feeds for this service.
-     */
-    public FeedReference[] getFeedLocations(String resource,
-                                            String content)
-                                                throws FeedParserException {
-        FeedReference radioUserlandLocations[] =
-            { new FeedReference("rss.xml", FeedReference.RSS_MEDIA_TYPE) };
-        
-        return radioUserlandLocations;
-    }
-}
+/*
+ * Copyright 1999,2004 The Apache Software Foundation.
+ * 
+ * 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.
+ */
+
+package org.apache.commons.feedparser.locate.blogservice;
+
+import org.apache.commons.feedparser.FeedParserException;
+import org.apache.commons.feedparser.locate.*;
+
+/**
+ * Models the Radio Userland blog service, encapsulating whether a given weblog
+ * is this type of service and where it usually keeps its feeds.
+ * 
+ * @author Brad Neuberg, bkn3@columbia.edu
+ */
+public class RadioUserland extends BlogService {
+    
+    /** Returns whether we can trust the results of this blog service's 
+     *  autodiscovery links.  For example, TextAmerica returns invalid 
+     *  autodiscovery results.
+     */
+    public boolean hasValidAutoDiscovery() {
+        return true;
+    }
+    
+    /** Determines if the weblog at the given resource and with the given
+     *  content is this blog service.
+     * @param resource A full URI to this resource, such as 
+     * "http://www.codinginparadise.org".
+     * @param content The full HTML content at the resource's URL.
+     * @throws FeedParserException Thrown if an error occurs while 
+     * determining the type of this weblog.
+     */
+    public boolean isThisService(String resource, String content)
+                                                throws FeedParserException {
+        boolean results = false;
+        
+        results = containsDomain(resource, "radio.userland.com");
+        
+        if (results == false) {
+            results = containsDomain(resource, "radio.weblogs.com");
+        }
+        
+        return results;
+    }
+
+    /**
+     * Returns an array of FeedReferences that contains information on the
+     * usual locations this blog service contains its feed.  The feeds should
+     * be ordered by quality, so that higher quality feeds come before lower
+     * quality ones (i.e. you would want to have an Atom FeedReference
+     * object come before an RSS 0.91 FeedReference object in this list).
+     * @param resource A URL to the given weblog that might be used to build
+     * up where feeds are usually located.
+     * @param content The full content of the resource URL, which might
+     * be useful to determine where feeds are usually located.  This can be
+     * null.
+     * @throws FeedParserException Thrown if an error occurs while trying
+     * to determine the usual locations of feeds for this service.
+     */
+    public FeedReference[] getFeedLocations(String resource,
+                                            String content)
+                                                throws FeedParserException {
+        FeedReference radioUserlandLocations[] =
+            { new FeedReference("rss.xml", FeedReference.RSS_MEDIA_TYPE) };
+        
+        return radioUserlandLocations;
+    }
+}

Propchange: jakarta/commons/proper/feedparser/trunk/src/java/org/apache/commons/feedparser/locate/blogservice/RadioUserland.java
------------------------------------------------------------------------------
--- svn:keywords (original)
+++ svn:keywords Sat Feb 26 05:00:10 2005
@@ -1 +1 @@
-author date id revision
+Date Author Id Revision HeadURL

Modified: jakarta/commons/proper/feedparser/trunk/src/java/org/apache/commons/feedparser/locate/blogservice/TextAmerica.java
URL: http://svn.apache.org/viewcvs/jakarta/commons/proper/feedparser/trunk/src/java/org/apache/commons/feedparser/locate/blogservice/TextAmerica.java?view=diff&r1=155415&r2=155416
==============================================================================
--- jakarta/commons/proper/feedparser/trunk/src/java/org/apache/commons/feedparser/locate/blogservice/TextAmerica.java (original)
+++ jakarta/commons/proper/feedparser/trunk/src/java/org/apache/commons/feedparser/locate/blogservice/TextAmerica.java Sat Feb 26 05:00:10 2005
@@ -1,77 +1,77 @@
-/*
- * Copyright 1999,2004 The Apache Software Foundation.
- * 
- * 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.
- */
-
-package org.apache.commons.feedparser.locate.blogservice;
-
-import org.apache.commons.feedparser.FeedParserException;
-import org.apache.commons.feedparser.locate.*;
-
-/**
- * Models the TextAmerica blog service, encapsulating whether a given weblog
- * is this type of service and where it usually keeps its feeds.
- * 
- * @author Brad Neuberg, bkn3@columbia.edu
- */
-public class TextAmerica extends BlogService {
-    
-    /** Returns whether we can trust the results of this blog service's 
-     *  autodiscovery links.  For example, TextAmerica returns invalid 
-     *  autodiscovery results.
-     */
-    public boolean hasValidAutoDiscovery() {
-        return false;
-    }
-    
-    /** Determines if the weblog at the given resource and with the given
-     *  content is this blog service.
-     * @param resource A full URI to this resource, such as 
-     * "http://www.codinginparadise.org".
-     * @param content The full HTML content at the resource's URL.
-     * @throws FeedParserException Thrown if an error occurs while 
-     * determining the type of this weblog.
-     */
-    public boolean isThisService(String resource, String content)
-                                                throws FeedParserException {
-        boolean results = false;
-        
-        results = containsDomain(resource, "textamerica.com");
-        
-        return results;
-    }
-
-    /**
-     * Returns an array of FeedReferences that contains information on the
-     * usual locations this blog service contains its feed.  The feeds should
-     * be ordered by quality, so that higher quality feeds come before lower
-     * quality ones (i.e. you would want to have an Atom FeedReference
-     * object come before an RSS 0.91 FeedReference object in this list).
-     * @param resource A URL to the given weblog that might be used to build
-     * up where feeds are usually located.
-     * @param content The full content of the resource URL, which might
-     * be useful to determine where feeds are usually located.  This can be
-     * null.
-     * @throws FeedParserException Thrown if an error occurs while trying
-     * to determine the usual locations of feeds for this service.
-     */
-    public FeedReference[] getFeedLocations(String resource,
-                                            String content)
-                                                throws FeedParserException {
-        FeedReference textAmericaLocations[] =
-            { new FeedReference("rss.aspx", FeedReference.RSS_MEDIA_TYPE) };
-        
-        return textAmericaLocations;
-    }
-}
+/*
+ * Copyright 1999,2004 The Apache Software Foundation.
+ * 
+ * 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.
+ */
+
+package org.apache.commons.feedparser.locate.blogservice;
+
+import org.apache.commons.feedparser.FeedParserException;
+import org.apache.commons.feedparser.locate.*;
+
+/**
+ * Models the TextAmerica blog service, encapsulating whether a given weblog
+ * is this type of service and where it usually keeps its feeds.
+ * 
+ * @author Brad Neuberg, bkn3@columbia.edu
+ */
+public class TextAmerica extends BlogService {
+    
+    /** Returns whether we can trust the results of this blog service's 
+     *  autodiscovery links.  For example, TextAmerica returns invalid 
+     *  autodiscovery results.
+     */
+    public boolean hasValidAutoDiscovery() {
+        return false;
+    }
+    
+    /** Determines if the weblog at the given resource and with the given
+     *  content is this blog service.
+     * @param resource A full URI to this resource, such as 
+     * "http://www.codinginparadise.org".
+     * @param content The full HTML content at the resource's URL.
+     * @throws FeedParserException Thrown if an error occurs while 
+     * determining the type of this weblog.
+     */
+    public boolean isThisService(String resource, String content)
+                                                throws FeedParserException {
+        boolean results = false;
+        
+        results = containsDomain(resource, "textamerica.com");
+        
+        return results;
+    }
+
+    /**
+     * Returns an array of FeedReferences that contains information on the
+     * usual locations this blog service contains its feed.  The feeds should
+     * be ordered by quality, so that higher quality feeds come before lower
+     * quality ones (i.e. you would want to have an Atom FeedReference
+     * object come before an RSS 0.91 FeedReference object in this list).
+     * @param resource A URL to the given weblog that might be used to build
+     * up where feeds are usually located.
+     * @param content The full content of the resource URL, which might
+     * be useful to determine where feeds are usually located.  This can be
+     * null.
+     * @throws FeedParserException Thrown if an error occurs while trying
+     * to determine the usual locations of feeds for this service.
+     */
+    public FeedReference[] getFeedLocations(String resource,
+                                            String content)
+                                                throws FeedParserException {
+        FeedReference textAmericaLocations[] =
+            { new FeedReference("rss.aspx", FeedReference.RSS_MEDIA_TYPE) };
+        
+        return textAmericaLocations;
+    }
+}

Propchange: jakarta/commons/proper/feedparser/trunk/src/java/org/apache/commons/feedparser/locate/blogservice/TextAmerica.java
------------------------------------------------------------------------------
--- svn:keywords (original)
+++ svn:keywords Sat Feb 26 05:00:10 2005
@@ -1 +1 @@
-author date id revision
+Date Author Id Revision HeadURL

Modified: jakarta/commons/proper/feedparser/trunk/src/java/org/apache/commons/feedparser/locate/blogservice/TextPattern.java
URL: http://svn.apache.org/viewcvs/jakarta/commons/proper/feedparser/trunk/src/java/org/apache/commons/feedparser/locate/blogservice/TextPattern.java?view=diff&r1=155415&r2=155416
==============================================================================
--- jakarta/commons/proper/feedparser/trunk/src/java/org/apache/commons/feedparser/locate/blogservice/TextPattern.java (original)
+++ jakarta/commons/proper/feedparser/trunk/src/java/org/apache/commons/feedparser/locate/blogservice/TextPattern.java Sat Feb 26 05:00:10 2005
@@ -1,78 +1,78 @@
-/*
- * Copyright 1999,2004 The Apache Software Foundation.
- * 
- * 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.
- */
-
-package org.apache.commons.feedparser.locate.blogservice;
-
-import org.apache.commons.feedparser.FeedParserException;
-import org.apache.commons.feedparser.locate.*;
-
-/**
- * Models the TextPattern blog service, encapsulating whether a given weblog
- * is this type of service and where it usually keeps its feeds.
- * 
- * @author Brad Neuberg, bkn3@columbia.edu
- */
-public class TextPattern extends BlogService {
-    
-    /** Returns whether we can trust the results of this blog service's 
-     *  autodiscovery links.  For example, TextAmerica returns invalid 
-     *  autodiscovery results.
-     */
-    public boolean hasValidAutoDiscovery() {
-        return true;
-    }
-    
-    /** Determines if the weblog at the given resource and with the given
-     *  content is this blog service.
-     * @param resource A full URI to this resource, such as 
-     * "http://www.codinginparadise.org".
-     * @param content The full HTML content at the resource's URL.
-     * @throws FeedParserException Thrown if an error occurs while 
-     * determining the type of this weblog.
-     */
-    public boolean isThisService(String resource, String content)
-                                                throws FeedParserException {
-        boolean results = false;
-        
-        results = hasGenerator(content, "textpattern");
-        
-        return results;
-    }
-
-    /**
-     * Returns an array of FeedReferences that contains information on the
-     * usual locations this blog service contains its feed.  The feeds should
-     * be ordered by quality, so that higher quality feeds come before lower
-     * quality ones (i.e. you would want to have an Atom FeedReference
-     * object come before an RSS 0.91 FeedReference object in this list).
-     * @param resource A URL to the given weblog that might be used to build
-     * up where feeds are usually located.
-     * @param content The full content of the resource URL, which might
-     * be useful to determine where feeds are usually located.  This can be
-     * null.
-     * @throws FeedParserException Thrown if an error occurs while trying
-     * to determine the usual locations of feeds for this service.
-     */
-    public FeedReference[] getFeedLocations(String resource,
-                                            String content)
-                                                throws FeedParserException {
-        FeedReference textPatternLocations[] =
-            { new FeedReference("?atom=1", FeedReference.ATOM_MEDIA_TYPE),
-              new FeedReference("?rss=1", FeedReference.RSS_MEDIA_TYPE) };
-        
-        return textPatternLocations;
-    }
-}
+/*
+ * Copyright 1999,2004 The Apache Software Foundation.
+ * 
+ * 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.
+ */
+
+package org.apache.commons.feedparser.locate.blogservice;
+
+import org.apache.commons.feedparser.FeedParserException;
+import org.apache.commons.feedparser.locate.*;
+
+/**
+ * Models the TextPattern blog service, encapsulating whether a given weblog
+ * is this type of service and where it usually keeps its feeds.
+ * 
+ * @author Brad Neuberg, bkn3@columbia.edu
+ */
+public class TextPattern extends BlogService {
+    
+    /** Returns whether we can trust the results of this blog service's 
+     *  autodiscovery links.  For example, TextAmerica returns invalid 
+     *  autodiscovery results.
+     */
+    public boolean hasValidAutoDiscovery() {
+        return true;
+    }
+    
+    /** Determines if the weblog at the given resource and with the given
+     *  content is this blog service.
+     * @param resource A full URI to this resource, such as 
+     * "http://www.codinginparadise.org".
+     * @param content The full HTML content at the resource's URL.
+     * @throws FeedParserException Thrown if an error occurs while 
+     * determining the type of this weblog.
+     */
+    public boolean isThisService(String resource, String content)
+                                                throws FeedParserException {
+        boolean results = false;
+        
+        results = hasGenerator(content, "textpattern");
+        
+        return results;
+    }
+
+    /**
+     * Returns an array of FeedReferences that contains information on the
+     * usual locations this blog service contains its feed.  The feeds should
+     * be ordered by quality, so that higher quality feeds come before lower
+     * quality ones (i.e. you would want to have an Atom FeedReference
+     * object come before an RSS 0.91 FeedReference object in this list).
+     * @param resource A URL to the given weblog that might be used to build
+     * up where feeds are usually located.
+     * @param content The full content of the resource URL, which might
+     * be useful to determine where feeds are usually located.  This can be
+     * null.
+     * @throws FeedParserException Thrown if an error occurs while trying
+     * to determine the usual locations of feeds for this service.
+     */
+    public FeedReference[] getFeedLocations(String resource,
+                                            String content)
+                                                throws FeedParserException {
+        FeedReference textPatternLocations[] =
+            { new FeedReference("?atom=1", FeedReference.ATOM_MEDIA_TYPE),
+              new FeedReference("?rss=1", FeedReference.RSS_MEDIA_TYPE) };
+        
+        return textPatternLocations;
+    }
+}

Propchange: jakarta/commons/proper/feedparser/trunk/src/java/org/apache/commons/feedparser/locate/blogservice/TextPattern.java
------------------------------------------------------------------------------
--- svn:keywords (original)
+++ svn:keywords Sat Feb 26 05:00:10 2005
@@ -1 +1 @@
-author date id revision
+Date Author Id Revision HeadURL



---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org


Mime
View raw message