jdk/src/share/classes/javax/imageio/stream/ImageInputStream.java

Print this page

        

@@ -23,10 +23,11 @@
  * questions.
  */
 
 package javax.imageio.stream;
 
+import java.io.Closeable;
 import java.io.DataInput;
 import java.io.IOException;
 import java.nio.ByteOrder;
 
 /**

@@ -40,11 +41,11 @@
  * @see FileImageInputStream
  * @see FileCacheImageInputStream
  * @see MemoryCacheImageInputStream
  *
  */
-public interface ImageInputStream extends DataInput {
+public interface ImageInputStream extends DataInput, Closeable {
 
     /**
      * Sets the desired byte order for future reads of data values
      * from this stream.  For example, the sequence of bytes '0x01
      * 0x02 0x03 0x04' if read as a 4-byte integer would have the