[kaffe] CVS kaffe (robilad): Resynced with GNU Classpath: New imageio classes

Kaffe CVS cvs-commits at kaffe.org
Sat Oct 23 05:57:15 PDT 2004


PatchSet 5333 
Date: 2004/10/23 12:08:11
Author: robilad
Branch: HEAD
Tag: (none) 
Log:
Resynced with GNU Classpath: New imageio classes

2004-10-23  Dalibor Topic  <robilad at kaffe.org>

        * libraries/javalib/javax/imageio/stream/FileCacheImageInputStream.java,
        libraries/javalib/javax/imageio/stream/FileCacheImageOutputStream.java,
        libraries/javalib/javax/imageio/stream/FileImageInputStream.java,
        libraries/javalib/javax/imageio/stream/FileImageOutputStream.java,
        libraries/javalib/javax/imageio/stream/MemoryCacheImageInputStream.java,
        libraries/javalib/javax/imageio/stream/MemoryCacheImageOutputStream.java:
        New files taken from GNU Classpath.

        * libraries/javalib/Makefile.am,
        libraries/javalib/Makefile.in,
        libraries/javalib/all.files:
        Regenerated.

        2004-10-20  Michael Koch  <konqueror at gmx.de>

        * javax/imageio/stream/FileCacheImageInputStream.java,
        javax/imageio/stream/FileCacheImageOutputStream.java,
        javax/imageio/stream/FileImageInputStream.java,
        javax/imageio/stream/FileImageOutputStream.java,
        javax/imageio/stream/MemoryCacheImageInputStream.java,
        javax/imageio/stream/MemoryCacheImageOutputStream.java:
        New files.

Members: 
	ChangeLog:1.2885->1.2886 
	libraries/javalib/Makefile.am:1.252->1.253 
	libraries/javalib/Makefile.in:1.332->1.333 
	libraries/javalib/all.files:1.40->1.41 
	libraries/javalib/javax/imageio/stream/FileCacheImageInputStream.java:INITIAL->1.1 
	libraries/javalib/javax/imageio/stream/FileCacheImageOutputStream.java:INITIAL->1.1 
	libraries/javalib/javax/imageio/stream/FileImageInputStream.java:INITIAL->1.1 
	libraries/javalib/javax/imageio/stream/FileImageOutputStream.java:INITIAL->1.1 
	libraries/javalib/javax/imageio/stream/MemoryCacheImageInputStream.java:INITIAL->1.1 
	libraries/javalib/javax/imageio/stream/MemoryCacheImageOutputStream.java:INITIAL->1.1 

Index: kaffe/ChangeLog
diff -u kaffe/ChangeLog:1.2885 kaffe/ChangeLog:1.2886
--- kaffe/ChangeLog:1.2885	Sat Oct 23 11:24:18 2004
+++ kaffe/ChangeLog	Sat Oct 23 12:08:11 2004
@@ -1,5 +1,30 @@
 2004-10-23  Dalibor Topic  <robilad at kaffe.org>
 
+	* libraries/javalib/javax/imageio/stream/FileCacheImageInputStream.java,
+	libraries/javalib/javax/imageio/stream/FileCacheImageOutputStream.java,
+	libraries/javalib/javax/imageio/stream/FileImageInputStream.java,
+	libraries/javalib/javax/imageio/stream/FileImageOutputStream.java,
+	libraries/javalib/javax/imageio/stream/MemoryCacheImageInputStream.java,
+	libraries/javalib/javax/imageio/stream/MemoryCacheImageOutputStream.java:
+	New files taken from GNU Classpath.
+
+	* libraries/javalib/Makefile.am,
+	libraries/javalib/Makefile.in,
+	libraries/javalib/all.files:
+	Regenerated.
+
+	2004-10-20  Michael Koch  <konqueror at gmx.de>
+
+        * javax/imageio/stream/FileCacheImageInputStream.java,
+        javax/imageio/stream/FileCacheImageOutputStream.java,
+        javax/imageio/stream/FileImageInputStream.java,
+        javax/imageio/stream/FileImageOutputStream.java,
+        javax/imageio/stream/MemoryCacheImageInputStream.java,
+        javax/imageio/stream/MemoryCacheImageOutputStream.java:
+        New files.
+
+2004-10-23  Dalibor Topic  <robilad at kaffe.org>
+
 	* libraries/javalib/java/io/File.java,
 	libraries/javalib/java/sql/Timestamp.java,
 	libraries/javalib/java/text/AttributedCharacterIterator.java,
Index: kaffe/libraries/javalib/Makefile.am
diff -u kaffe/libraries/javalib/Makefile.am:1.252 kaffe/libraries/javalib/Makefile.am:1.253
--- kaffe/libraries/javalib/Makefile.am:1.252	Mon Oct 18 20:19:41 2004
+++ kaffe/libraries/javalib/Makefile.am	Sat Oct 23 12:08:15 2004
@@ -2702,11 +2702,17 @@
 	javax/imageio/spi/RegisterableService.java \
 	javax/imageio/spi/ServiceRegistry.java
 javax_imageio_stream_SRCS = \
+	javax/imageio/stream/FileCacheImageInputStream.java \
+	javax/imageio/stream/FileCacheImageOutputStream.java \
+	javax/imageio/stream/FileImageInputStream.java \
+	javax/imageio/stream/FileImageOutputStream.java \
 	javax/imageio/stream/IIOByteBuffer.java \
 	javax/imageio/stream/ImageInputStream.java \
 	javax/imageio/stream/ImageInputStreamImpl.java \
 	javax/imageio/stream/ImageOutputStream.java \
-	javax/imageio/stream/ImageOutputStreamImpl.java
+	javax/imageio/stream/ImageOutputStreamImpl.java \
+	javax/imageio/stream/MemoryCacheImageInputStream.java \
+	javax/imageio/stream/MemoryCacheImageOutputStream.java
 javax_naming_SRCS = \
 	javax/naming/AuthenticationException.java \
 	javax/naming/AuthenticationNotSupportedException.java \
Index: kaffe/libraries/javalib/Makefile.in
diff -u kaffe/libraries/javalib/Makefile.in:1.332 kaffe/libraries/javalib/Makefile.in:1.333
--- kaffe/libraries/javalib/Makefile.in:1.332	Mon Oct 18 20:19:43 2004
+++ kaffe/libraries/javalib/Makefile.in	Sat Oct 23 12:08:16 2004
@@ -3206,11 +3206,17 @@
 	javax/imageio/spi/ServiceRegistry.java
 
 javax_imageio_stream_SRCS = \
+	javax/imageio/stream/FileCacheImageInputStream.java \
+	javax/imageio/stream/FileCacheImageOutputStream.java \
+	javax/imageio/stream/FileImageInputStream.java \
+	javax/imageio/stream/FileImageOutputStream.java \
 	javax/imageio/stream/IIOByteBuffer.java \
 	javax/imageio/stream/ImageInputStream.java \
 	javax/imageio/stream/ImageInputStreamImpl.java \
 	javax/imageio/stream/ImageOutputStream.java \
-	javax/imageio/stream/ImageOutputStreamImpl.java
+	javax/imageio/stream/ImageOutputStreamImpl.java \
+	javax/imageio/stream/MemoryCacheImageInputStream.java \
+	javax/imageio/stream/MemoryCacheImageOutputStream.java
 
 javax_naming_SRCS = \
 	javax/naming/AuthenticationException.java \
Index: kaffe/libraries/javalib/all.files
diff -u kaffe/libraries/javalib/all.files:1.40 kaffe/libraries/javalib/all.files:1.41
--- kaffe/libraries/javalib/all.files:1.40	Mon Oct 18 20:19:44 2004
+++ kaffe/libraries/javalib/all.files	Sat Oct 23 12:08:19 2004
@@ -2219,11 +2219,17 @@
 javax/imageio/spi/ImageWriterSpi.java
 javax/imageio/spi/RegisterableService.java
 javax/imageio/spi/ServiceRegistry.java
+javax/imageio/stream/FileCacheImageInputStream.java
+javax/imageio/stream/FileCacheImageOutputStream.java
+javax/imageio/stream/FileImageInputStream.java
+javax/imageio/stream/FileImageOutputStream.java
 javax/imageio/stream/IIOByteBuffer.java
 javax/imageio/stream/ImageInputStream.java
 javax/imageio/stream/ImageInputStreamImpl.java
 javax/imageio/stream/ImageOutputStream.java
 javax/imageio/stream/ImageOutputStreamImpl.java
+javax/imageio/stream/MemoryCacheImageInputStream.java
+javax/imageio/stream/MemoryCacheImageOutputStream.java
 javax/naming/AuthenticationException.java
 javax/naming/AuthenticationNotSupportedException.java
 javax/naming/BinaryRefAddr.java
===================================================================
Checking out kaffe/libraries/javalib/javax/imageio/stream/FileCacheImageInputStream.java
RCS:  /home/cvs/kaffe/kaffe/libraries/javalib/javax/imageio/stream/FileCacheImageInputStream.java,v
VERS: 1.1
***************
--- /dev/null	Sun Aug  4 19:57:58 2002
+++ kaffe/libraries/javalib/javax/imageio/stream/FileCacheImageInputStream.java	Sat Oct 23 12:57:14 2004
@@ -0,0 +1,93 @@
+/* FileCacheImageInputStream.java --
+   Copyright (C) 2004  Free Software Foundation, Inc.
+
+This file is part of GNU Classpath.
+
+GNU Classpath is free software; you can redistribute it and/or modify
+it under the terms of the GNU General Public License as published by
+the Free Software Foundation; either version 2, or (at your option)
+any later version.
+
+GNU Classpath 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
+General Public License for more details.
+
+You should have received a copy of the GNU General Public License
+along with GNU Classpath; see the file COPYING.  If not, write to the
+Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
+02111-1307 USA.
+
+Linking this library statically or dynamically with other modules is
+making a combined work based on this library.  Thus, the terms and
+conditions of the GNU General Public License cover the whole
+combination.
+
+As a special exception, the copyright holders of this library give you
+permission to link this library with independent modules to produce an
+executable, regardless of the license terms of these independent
+modules, and to copy and distribute the resulting executable under
+terms of your choice, provided that you also meet, for each linked
+independent module, the terms and conditions of the license of that
+module.  An independent module is a module which is not derived from
+or based on this library.  If you modify this library, you may extend
+this exception to your version of the library, but you are not
+obligated to do so.  If you do not wish to do so, delete this
+exception statement from your version. */
+
+
+package javax.imageio.stream;
+
+import java.io.File;
+import java.io.IOException;
+import java.io.InputStream;
+
+/**
+ * @author Michael Koch (konqueror at gmx.de)
+ */
+public class FileCacheImageInputStream
+{
+  private InputStream stream;
+  private File cacheDir;
+  
+  public FileCacheImageInputStream(InputStream stream, File cacheDir)
+    throws IOException
+  {
+    super();
+    this.stream = stream;
+    // FIXME: We do not support caching yet.
+    this.cacheDir = cacheDir;
+  }
+
+  public void close()
+    throws IOException
+  {
+    if (stream != null)
+      {
+	stream.close();
+	stream = null;
+      }
+  }
+
+  private void checkStreamClosed()
+    throws IOException
+  {
+    if (stream == null)
+      throw new IOException("stream closed");
+  }
+
+  public boolean isCached()
+  {
+    return true;
+  }
+
+  public boolean isCachedFile()
+  {
+    return true;
+  }
+  
+  public boolean isCachedMemory()
+  {
+    return false;
+  }
+}
===================================================================
Checking out kaffe/libraries/javalib/javax/imageio/stream/FileCacheImageOutputStream.java
RCS:  /home/cvs/kaffe/kaffe/libraries/javalib/javax/imageio/stream/FileCacheImageOutputStream.java,v
VERS: 1.1
***************
--- /dev/null	Sun Aug  4 19:57:58 2002
+++ kaffe/libraries/javalib/javax/imageio/stream/FileCacheImageOutputStream.java	Sat Oct 23 12:57:14 2004
@@ -0,0 +1,93 @@
+/* FileCacheImageOutputStream.java --
+   Copyright (C) 2004  Free Software Foundation, Inc.
+
+This file is part of GNU Classpath.
+
+GNU Classpath is free software; you can redistribute it and/or modify
+it under the terms of the GNU General Public License as published by
+the Free Software Foundation; either version 2, or (at your option)
+any later version.
+
+GNU Classpath 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
+General Public License for more details.
+
+You should have received a copy of the GNU General Public License
+along with GNU Classpath; see the file COPYING.  If not, write to the
+Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
+02111-1307 USA.
+
+Linking this library statically or dynamically with other modules is
+making a combined work based on this library.  Thus, the terms and
+conditions of the GNU General Public License cover the whole
+combination.
+
+As a special exception, the copyright holders of this library give you
+permission to link this library with independent modules to produce an
+executable, regardless of the license terms of these independent
+modules, and to copy and distribute the resulting executable under
+terms of your choice, provided that you also meet, for each linked
+independent module, the terms and conditions of the license of that
+module.  An independent module is a module which is not derived from
+or based on this library.  If you modify this library, you may extend
+this exception to your version of the library, but you are not
+obligated to do so.  If you do not wish to do so, delete this
+exception statement from your version. */
+
+
+package javax.imageio.stream;
+
+import java.io.File;
+import java.io.IOException;
+import java.io.OutputStream;
+
+/**
+ * @author Michael Koch (konqueror at gmx.de)
+ */
+public class FileCacheImageOutputStream
+{
+  private OutputStream stream;
+  private File cacheDir;
+  
+  public FileCacheImageOutputStream(OutputStream stream, File cacheDir)
+    throws IOException
+  {
+    super();
+    this.stream = stream;
+    // FIXME: We do not support caching yet.
+    this.cacheDir = cacheDir;
+  }
+
+  public void close()
+    throws IOException
+  {
+    if (stream != null)
+      {
+	stream.close();
+	stream = null;
+      }
+  }
+
+  private void checkStreamClosed()
+    throws IOException
+  {
+    if (stream == null)
+      throw new IOException("stream closed");
+  }
+
+  public boolean isCached()
+  {
+    return true;
+  }
+
+  public boolean isCachedFile()
+  {
+    return true;
+  }
+  
+  public boolean isCachedMemory()
+  {
+    return false;
+  }
+}
===================================================================
Checking out kaffe/libraries/javalib/javax/imageio/stream/FileImageInputStream.java
RCS:  /home/cvs/kaffe/kaffe/libraries/javalib/javax/imageio/stream/FileImageInputStream.java,v
VERS: 1.1
***************
--- /dev/null	Sun Aug  4 19:57:58 2002
+++ kaffe/libraries/javalib/javax/imageio/stream/FileImageInputStream.java	Sat Oct 23 12:57:15 2004
@@ -0,0 +1,87 @@
+/* FileImageInputStream.java --
+   Copyright (C) 2004  Free Software Foundation, Inc.
+
+This file is part of GNU Classpath.
+
+GNU Classpath is free software; you can redistribute it and/or modify
+it under the terms of the GNU General Public License as published by
+the Free Software Foundation; either version 2, or (at your option)
+any later version.
+
+GNU Classpath 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
+General Public License for more details.
+
+You should have received a copy of the GNU General Public License
+along with GNU Classpath; see the file COPYING.  If not, write to the
+Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
+02111-1307 USA.
+
+Linking this library statically or dynamically with other modules is
+making a combined work based on this library.  Thus, the terms and
+conditions of the GNU General Public License cover the whole
+combination.
+
+As a special exception, the copyright holders of this library give you
+permission to link this library with independent modules to produce an
+executable, regardless of the license terms of these independent
+modules, and to copy and distribute the resulting executable under
+terms of your choice, provided that you also meet, for each linked
+independent module, the terms and conditions of the license of that
+module.  An independent module is a module which is not derived from
+or based on this library.  If you modify this library, you may extend
+this exception to your version of the library, but you are not
+obligated to do so.  If you do not wish to do so, delete this
+exception statement from your version. */
+
+
+package javax.imageio.stream;
+
+import java.io.File;
+import java.io.FileNotFoundException;
+import java.io.IOException;
+import java.io.RandomAccessFile;
+
+/**
+ * @author Michael Koch (konqueror at gmx.de)
+ */
+public class FileImageInputStream
+{
+  private RandomAccessFile file;
+  
+  public FileImageInputStream(File file)
+    throws FileNotFoundException, IOException
+  {
+    if (file == null)
+      throw new IllegalArgumentException ("file may not be null");
+
+    this.file = new RandomAccessFile(file, "r");
+  }
+
+  public FileImageInputStream(RandomAccessFile file)
+  {
+    if (file == null)
+      throw new IllegalArgumentException ("file may not be null");
+
+    this.file = file;
+  }
+
+  public void close()
+    throws IOException
+  {
+    file.close();
+  }
+
+  public long length()
+  {
+    try
+      {
+        return file.length();
+      }
+    catch (IOException e)
+      {
+        return -1L;
+      }
+  }
+}
===================================================================
Checking out kaffe/libraries/javalib/javax/imageio/stream/FileImageOutputStream.java
RCS:  /home/cvs/kaffe/kaffe/libraries/javalib/javax/imageio/stream/FileImageOutputStream.java,v
VERS: 1.1
***************
--- /dev/null	Sun Aug  4 19:57:58 2002
+++ kaffe/libraries/javalib/javax/imageio/stream/FileImageOutputStream.java	Sat Oct 23 12:57:15 2004
@@ -0,0 +1,90 @@
+/* FileImageOutputStream.java --
+   Copyright (C) 2004  Free Software Foundation, Inc.
+
+This file is part of GNU Classpath.
+
+GNU Classpath is free software; you can redistribute it and/or modify
+it under the terms of the GNU General Public License as published by
+the Free Software Foundation; either version 2, or (at your option)
+any later version.
+
+GNU Classpath 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
+General Public License for more details.
+
+You should have received a copy of the GNU General Public License
+along with GNU Classpath; see the file COPYING.  If not, write to the
+Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
+02111-1307 USA.
+
+Linking this library statically or dynamically with other modules is
+making a combined work based on this library.  Thus, the terms and
+conditions of the GNU General Public License cover the whole
+combination.
+
+As a special exception, the copyright holders of this library give you
+permission to link this library with independent modules to produce an
+executable, regardless of the license terms of these independent
+modules, and to copy and distribute the resulting executable under
+terms of your choice, provided that you also meet, for each linked
+independent module, the terms and conditions of the license of that
+module.  An independent module is a module which is not derived from
+or based on this library.  If you modify this library, you may extend
+this exception to your version of the library, but you are not
+obligated to do so.  If you do not wish to do so, delete this
+exception statement from your version. */
+
+
+package javax.imageio.stream;
+
+import java.io.File;
+import java.io.FileNotFoundException;
+import java.io.IOException;
+import java.io.RandomAccessFile;
+
+/**
+ * @author Michael Koch (konqueror at gmx.de)
+ */
+public class FileImageOutputStream
+{
+  private RandomAccessFile file;
+  
+  public FileImageOutputStream(File file)
+    throws FileNotFoundException, IOException
+  {
+    if (file == null)
+      throw new IllegalArgumentException("file may not be null");
+
+    // Do security check.
+    file.canRead();
+
+    this.file = new RandomAccessFile(file, "r");
+  }
+
+  public FileImageOutputStream(RandomAccessFile file)
+  {
+    if (file == null)
+      throw new IllegalArgumentException("file may not be null");
+
+    this.file = file;
+  }
+
+  public void close()
+    throws IOException
+  {
+    file.close();
+  }
+
+  public long length()
+  {
+    try
+      {
+        return file.length();
+      }
+    catch (IOException e)
+      {
+        return -1L;
+      }
+  }
+}
===================================================================
Checking out kaffe/libraries/javalib/javax/imageio/stream/MemoryCacheImageInputStream.java
RCS:  /home/cvs/kaffe/kaffe/libraries/javalib/javax/imageio/stream/MemoryCacheImageInputStream.java,v
VERS: 1.1
***************
--- /dev/null	Sun Aug  4 19:57:58 2002
+++ kaffe/libraries/javalib/javax/imageio/stream/MemoryCacheImageInputStream.java	Sat Oct 23 12:57:15 2004
@@ -0,0 +1,60 @@
+/* MemoryCacheImageInputStream.java --
+   Copyright (C) 2004  Free Software Foundation, Inc.
+
+This file is part of GNU Classpath.
+
+GNU Classpath is free software; you can redistribute it and/or modify
+it under the terms of the GNU General Public License as published by
+the Free Software Foundation; either version 2, or (at your option)
+any later version.
+
+GNU Classpath 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
+General Public License for more details.
+
+You should have received a copy of the GNU General Public License
+along with GNU Classpath; see the file COPYING.  If not, write to the
+Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
+02111-1307 USA.
+
+Linking this library statically or dynamically with other modules is
+making a combined work based on this library.  Thus, the terms and
+conditions of the GNU General Public License cover the whole
+combination.
+
+As a special exception, the copyright holders of this library give you
+permission to link this library with independent modules to produce an
+executable, regardless of the license terms of these independent
+modules, and to copy and distribute the resulting executable under
+terms of your choice, provided that you also meet, for each linked
+independent module, the terms and conditions of the license of that
+module.  An independent module is a module which is not derived from
+or based on this library.  If you modify this library, you may extend
+this exception to your version of the library, but you are not
+obligated to do so.  If you do not wish to do so, delete this
+exception statement from your version. */
+
+
+package javax.imageio.stream;
+
+/**
+ * @author Michael Koch (konqueror at gmx.de)
+ */
+public class MemoryCacheImageInputStream
+{
+  public boolean isCached()
+  {
+    return true;
+  }
+
+  public boolean isCachedFile()
+  {
+    return false;
+  }
+  
+  public boolean isCachedMemory()
+  {
+    return true;
+  }
+}
===================================================================
Checking out kaffe/libraries/javalib/javax/imageio/stream/MemoryCacheImageOutputStream.java
RCS:  /home/cvs/kaffe/kaffe/libraries/javalib/javax/imageio/stream/MemoryCacheImageOutputStream.java,v
VERS: 1.1
***************
--- /dev/null	Sun Aug  4 19:57:58 2002
+++ kaffe/libraries/javalib/javax/imageio/stream/MemoryCacheImageOutputStream.java	Sat Oct 23 12:57:15 2004
@@ -0,0 +1,60 @@
+/* MemoryCacheImageOutputStream.java --
+   Copyright (C) 2004 Free Software Foundation, Inc.
+
+This file is part of GNU Classpath.
+
+GNU Classpath is free software; you can redistribute it and/or modify
+it under the terms of the GNU General Public License as published by
+the Free Software Foundation; either version 2, or (at your option)
+any later version.
+
+GNU Classpath 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
+General Public License for more details.
+
+You should have received a copy of the GNU General Public License
+along with GNU Classpath; see the file COPYING.  If not, write to the
+Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
+02111-1307 USA.
+
+Linking this library statically or dynamically with other modules is
+making a combined work based on this library.  Thus, the terms and
+conditions of the GNU General Public License cover the whole
+combination.
+
+As a special exception, the copyright holders of this library give you
+permission to link this library with independent modules to produce an
+executable, regardless of the license terms of these independent
+modules, and to copy and distribute the resulting executable under
+terms of your choice, provided that you also meet, for each linked
+independent module, the terms and conditions of the license of that
+module.  An independent module is a module which is not derived from
+or based on this library.  If you modify this library, you may extend
+this exception to your version of the library, but you are not
+obligated to do so.  If you do not wish to do so, delete this
+exception statement from your version. */
+
+
+package javax.imageio.stream;
+
+/**
+ * @author Michael Koch (konqueror at gmx.de)
+ */
+public class MemoryCacheImageOutputStream
+{
+  public boolean isCached()
+  {
+    return true;
+  }
+
+  public boolean isCachedFile()
+  {
+    return false;
+  }
+  
+  public boolean isCachedMemory()
+  {
+    return true;
+  }
+}




More information about the kaffe mailing list