This is the mail archive of the
java-patches@gcc.gnu.org
mailing list for the Java project.
Patch: remove ClasspathToolkit calls fromDefaultContentHandlerFactory
- From: Thomas Fitzsimmons <fitzsim at redhat dot com>
- To: java-patches at gcc dot gnu dot org
- Date: Tue, 30 Aug 2005 18:04:55 -0400
- Subject: Patch: remove ClasspathToolkit calls fromDefaultContentHandlerFactory
Hi,
This patch should be applied during the next GNU Classpath merge. We
should make the gdk-pixbuf ImageIO provider in GdkPixbufDecoder into its
own separate ImageIO provider, then implement
DefaultContentHandlerFactory using that. For now, this patch disables
the call to the removed ClasspathToolkit method.
Tom
2005-08-30 Thomas Fitzsimmons <fitzsim@redhat.com>
* gnu/java/net/DefaultContentHandlerFactory.java (getContent):
Remove ClasspathToolkit references.
Index: gnu/java/net/DefaultContentHandlerFactory.java
===================================================================
RCS file: /cvs/gcc/gcc/libjava/gnu/java/net/DefaultContentHandlerFactory.java,v
retrieving revision 1.3
diff -u -r1.3 DefaultContentHandlerFactory.java
--- gnu/java/net/DefaultContentHandlerFactory.java 30 Jun 2005 03:18:58 -0000 1.3
+++ gnu/java/net/DefaultContentHandlerFactory.java 30 Aug 2005 22:00:14 -0000
@@ -55,9 +55,11 @@
public Object getContent(URLConnection urlc) throws IOException
{
- ClasspathToolkit tk = (ClasspathToolkit) Toolkit.getDefaultToolkit();
- java.awt.image.ImageProducer ip = tk.createImageProducer(urlc.getURL());
- return ip;
+ // FIXME: implement using ImageIO
+ // ClasspathToolkit tk = (ClasspathToolkit) Toolkit.getDefaultToolkit();
+ // java.awt.image.ImageProducer ip = tk.createImageProducer(urlc.getURL());
+ // return ip;
+ return null;
}
}