/[classpath]/classpath/gnu/java/awt/peer/gtk/GdkPixbufDecoder.java
ViewVC logotype

Diff of /classpath/gnu/java/awt/peer/gtk/GdkPixbufDecoder.java

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.6.2.6 by gnu_andrew, Sat Sep 10 15:31:37 2005 UTC revision 1.6.2.7 by gnu_andrew, Sun Nov 27 21:00:36 2005 UTC
# Line 47  import java.awt.image.ImageConsumer; Line 47  import java.awt.image.ImageConsumer;
47  import java.awt.image.ImageProducer;  import java.awt.image.ImageProducer;
48  import java.awt.image.Raster;  import java.awt.image.Raster;
49  import java.awt.image.RenderedImage;  import java.awt.image.RenderedImage;
50    import java.io.DataInput;
51  import java.io.DataOutput;  import java.io.DataOutput;
52  import java.io.IOException;  import java.io.IOException;
53  import java.io.InputStream;  import java.io.InputStream;
# Line 102  public class GdkPixbufDecoder extends gn Line 103  public class GdkPixbufDecoder extends gn
103                                                       0x00ff0000,                                                       0x00ff0000,
104                                                       0x0000ff00,                                                       0x0000ff00,
105                                                       0x000000ff);                                                       0x000000ff);
106      public GdkPixbufDecoder (DataInput datainput)
107      {
108        super (datainput);
109      }
110    
111    public GdkPixbufDecoder (InputStream in)    public GdkPixbufDecoder (InputStream in)
112    {    {
113      super (in);      super (in);
# Line 630  public class GdkPixbufDecoder extends gn Line 636  public class GdkPixbufDecoder extends gn
636                           boolean ignoreMetadata)                           boolean ignoreMetadata)
637      {      {
638        super.setInput(input, seekForwardOnly, ignoreMetadata);        super.setInput(input, seekForwardOnly, ignoreMetadata);
639        dec = new GdkPixbufDecoder((InputStream) getInput());        Object get = getInput();
640          if (get instanceof InputStream)
641            dec = new GdkPixbufDecoder((InputStream) get);
642          else if (get instanceof DataInput)
643            dec = new GdkPixbufDecoder((DataInput) get);
644          else
645            throw new IllegalArgumentException("input object not supported: "
646                                               + get);
647      }      }
648    
649      public BufferedImage read(int imageIndex, ImageReadParam param)      public BufferedImage read(int imageIndex, ImageReadParam param)

Legend:
Removed from v.1.6.2.6  
changed lines
  Added in v.1.6.2.7

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26