diff options
| author | Bryce McKinlay <mckinlay@redhat.com> | 2004-07-23 01:21:40 +0000 |
|---|---|---|
| committer | Bryce McKinlay <bryce@gcc.gnu.org> | 2004-07-23 02:21:40 +0100 |
| commit | f1f90ae0dee37c133fb46ed973c1eddfcea023fa (patch) | |
| tree | d02b2df079e500b6c08b6fc1f2a09b28c804beca /libjava/gnu/java/awt/ClasspathToolkit.java | |
| parent | ef453534c4765aeca6b44c6b496f5a02458ebb1d (diff) | |
| download | gcc-f1f90ae0dee37c133fb46ed973c1eddfcea023fa.zip gcc-f1f90ae0dee37c133fb46ed973c1eddfcea023fa.tar.gz gcc-f1f90ae0dee37c133fb46ed973c1eddfcea023fa.tar.bz2 | |
Makefile.am (ordinary_java_source_files): Add DefaultContentHandlerFactory.java.
2004-07-22 Bryce McKinlay <mckinlay@redhat.com>
* Makefile.am (ordinary_java_source_files): Add
DefaultContentHandlerFactory.java.
* Makefile.in: Rebuilt.
* java/net/URLConnection.java (defaultFactory): New field.
(getContent):
(getContentHandler): Renamed from 'setContentHandler'. Try
defaultFactory after user-set factory, if any. Search for content
handler implementations in gnu.java.net.content, not
gnu.gcj.content.
* gnu/java/net/protocol/file/Connection.java (getHeaderField):
Implemented.
(getLastModified): Implemented.
(getPermission): Create file permission here, instead of in
constructor.
* gnu/java/net/protocol/gcjlib/Connection.java (getHeaderField):
Implemented.
* gnu/java/net/protocol/jar/Connection.java (getHeaderField):
Implemented.
(getLastModified): Implemented.
* gnu/java/awt/ClasspathToolkit.java (createImageProducer): New.
Default implementation.
* gnu/java/awt/peer/gtk/GtkToolkit.java (createImageProducer): New.
Implement using GdkPixbufDecoder.
From-SVN: r85069
Diffstat (limited to 'libjava/gnu/java/awt/ClasspathToolkit.java')
| -rw-r--r-- | libjava/gnu/java/awt/ClasspathToolkit.java | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/libjava/gnu/java/awt/ClasspathToolkit.java b/libjava/gnu/java/awt/ClasspathToolkit.java index 91401f4..9293459 100644 --- a/libjava/gnu/java/awt/ClasspathToolkit.java +++ b/libjava/gnu/java/awt/ClasspathToolkit.java @@ -48,6 +48,7 @@ import java.awt.GraphicsEnvironment; import java.awt.HeadlessException; import java.awt.Toolkit; import java.awt.image.ColorModel; +import java.awt.image.ImageProducer; import java.io.File; import java.io.InputStream; import java.io.IOException; @@ -331,4 +332,17 @@ public abstract class ClasspathToolkit .initCause(muex); } } + + /** + * Creates an ImageProducer from the specified URL. The image is assumed + * to be in a recognised format. If the toolkit does not implement the + * image format or the image format is not recognised, null is returned. + * This default implementation is overriden by the Toolkit implementations. + * + * @param url URL to read image data from. + */ + public ImageProducer createImageProducer(URL url) + { + return null; + } } |
