home *** CD-ROM | disk | FTP | other *** search
/ PC Online 1998 January / PCO0198.ISO / browser / net_linx / java40.jar / netscape / plugin / composer / ImageEncoder.class (.txt) < prev    next >
Encoding:
Java Class File  |  1997-11-03  |  1.1 KB  |  47 lines

  1. package netscape.plugin.composer;
  2.  
  3. import java.awt.image.ImageProducer;
  4. import java.io.IOException;
  5. import java.io.OutputStream;
  6. import java.util.Enumeration;
  7. import java.util.Vector;
  8.  
  9. public class ImageEncoder {
  10.    private static Vector encoders_ = new Vector();
  11.  
  12.    public String getName() {
  13.       return this.getClass().getName();
  14.    }
  15.  
  16.    public String getHint() {
  17.       return this.getClass().getName();
  18.    }
  19.  
  20.    public String getFileExtension() {
  21.       return new String();
  22.    }
  23.  
  24.    public void getFileType(byte[] var1) {
  25.       var1[0] = 63;
  26.       var1[1] = 63;
  27.       var1[2] = 63;
  28.       var1[3] = 63;
  29.    }
  30.  
  31.    public boolean needsQuantizedSource() {
  32.       return false;
  33.    }
  34.  
  35.    public boolean encode(ImageProducer var1, OutputStream var2) throws IOException {
  36.       return false;
  37.    }
  38.  
  39.    public static void register(ImageEncoder var0) {
  40.       encoders_.addElement(var0);
  41.    }
  42.  
  43.    public static Enumeration encoders() {
  44.       return encoders_.elements();
  45.    }
  46. }
  47.