portals-jetspeed-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From shins...@apache.org
Subject cvs commit: jakarta-jetspeed-2/applications/rss/src/java/org/apache/portals/applications/rss RSSPortlet.java
Date Sun, 23 Jan 2005 00:56:32 GMT
shinsuke    2005/01/22 16:56:32

  Modified:    applications/rss/src/java/org/apache/portals/applications/rss
                        RSSPortlet.java
  Log:
  supported encoding
  
  Revision  Changes    Path
  1.4       +3 -4      jakarta-jetspeed-2/applications/rss/src/java/org/apache/portals/applications/rss/RSSPortlet.java
  
  Index: RSSPortlet.java
  ===================================================================
  RCS file: /home/cvs/jakarta-jetspeed-2/applications/rss/src/java/org/apache/portals/applications/rss/RSSPortlet.java,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- RSSPortlet.java	26 Dec 2004 11:08:00 -0000	1.3
  +++ RSSPortlet.java	23 Jan 2005 00:56:32 -0000	1.4
  @@ -141,10 +141,9 @@
           parser = docfactory.newDocumentBuilder(); 
           parser.setEntityResolver(this);
   
  -        URL u = new URL(url);        
  -        InputSource isrc = new InputSource(u.openStream());
  +        Reader rdr = openURL(url);
  +        InputSource isrc = new InputSource(rdr);
           isrc.setSystemId(url);
  -        isrc.setEncoding("UTF-8"); 
           this.document = parser.parse(isrc);
           return document;        
       }
  
  
  

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


Mime
View raw message