summaryrefslogtreecommitdiff
path: root/gnu/java/awt/image/ImageDecoder.java
diff options
context:
space:
mode:
authorPaul Fisher <rao@gnu.org>2000-03-20 04:20:05 +0000
committerPaul Fisher <rao@gnu.org>2000-03-20 04:20:05 +0000
commitd778a542fd93d2875c2f44573678e88dfe2617da (patch)
tree2067903e3d9ad0daac1e96ec8635e2afbfba0599 /gnu/java/awt/image/ImageDecoder.java
parent987ed827739b7e2740a2f095c8380bf2bb2dcda6 (diff)
downloadclasspath-d778a542fd93d2875c2f44573678e88dfe2617da.tar.gz
Change license to clearly mark the peer and non-peer AWT libraries.
Diffstat (limited to 'gnu/java/awt/image/ImageDecoder.java')
-rw-r--r--gnu/java/awt/image/ImageDecoder.java30
1 files changed, 29 insertions, 1 deletions
diff --git a/gnu/java/awt/image/ImageDecoder.java b/gnu/java/awt/image/ImageDecoder.java
index 61c7dcba4..161d25f81 100644
--- a/gnu/java/awt/image/ImageDecoder.java
+++ b/gnu/java/awt/image/ImageDecoder.java
@@ -1,3 +1,22 @@
+/* ImageDecoder.java
+ Copyright (C) 1999 Free Software Foundation, Inc.
+
+This file is part of the non-peer AWT libraries of GNU Classpath.
+
+This library is free software; you can redistribute it and/or modify
+it under the terms of the GNU Library General Public License as published
+by the Free Software Foundation, either version 2 of the License, or
+(at your option) any later verion.
+
+This library is distributed in the hope that it will be useful, but
+WITHOUT ANY WARRANTY; without even the implied warranty of
+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+GNU Library General Public License for more details.
+
+You should have received a copy of the GNU Library General Public License
+along with this library; if not, write to the Free Software Foundation
+Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307 USA. */
+
package gnu.java.awt.image;
import java.awt.*;
@@ -12,6 +31,15 @@ public abstract class ImageDecoder implements ImageProducer
String filename;
URL url;
+ public static ColorModel cm;
+
+ static
+ {
+ String endian = System.getProperties ().getProperty ("gnu.cpu.endian");
+ if (endian == null)
+ cm =
+ }
+
public ImageDecoder (String filename)
{
this.filename = filename;
@@ -48,7 +76,7 @@ public abstract class ImageDecoder implements ImageProducer
produce (list, is);
}
- catch (IOException e)
+ catch (Exception e)
{
for (int i = 0; i < list.size (); i++)
{