home *** CD-ROM | disk | FTP | other *** search
/ Dynamic HTML Construction Kit / Dynamic HTML Construction Kit.iso / earthlink / nscomm / java40.jar / sun / awt / image / ImageDecoder.class (.txt) < prev    next >
Encoding:
Java Class File  |  1997-11-03  |  722 b   |  32 lines

  1. package sun.awt.image;
  2.  
  3. import java.awt.image.ImageConsumer;
  4. import java.io.IOException;
  5. import java.io.InputStream;
  6.  
  7. public abstract class ImageDecoder {
  8.    InputStreamImageSource source;
  9.    InputStream input;
  10.  
  11.    public ImageDecoder(InputStreamImageSource var1, InputStream var2) {
  12.       this.source = var1;
  13.       this.input = var2;
  14.    }
  15.  
  16.    public abstract boolean catchupConsumer(InputStreamImageSource var1, ImageConsumer var2);
  17.  
  18.    public abstract void produceImage() throws IOException, ImageFormatException;
  19.  
  20.    public synchronized void close() {
  21.       if (this.input != null) {
  22.          try {
  23.             this.input.close();
  24.          } catch (IOException var1) {
  25.          }
  26.  
  27.          this.input = null;
  28.       }
  29.  
  30.    }
  31. }
  32.