
// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*-

#ifndef __gnu_javax_imageio_gif_GIFImageReader__
#define __gnu_javax_imageio_gif_GIFImageReader__

#pragma interface

#include <javax/imageio/ImageReader.h>
extern "Java"
{
  namespace gnu
  {
    namespace javax
    {
      namespace imageio
      {
        namespace gif
        {
            class GIFFile;
            class GIFImageReader;
        }
      }
    }
  }
  namespace java
  {
    namespace awt
    {
      namespace image
      {
          class BufferedImage;
          class IndexColorModel;
      }
    }
  }
  namespace javax
  {
    namespace imageio
    {
        class ImageReadParam;
      namespace metadata
      {
          class IIOMetadata;
      }
      namespace spi
      {
          class ImageReaderSpi;
      }
    }
  }
}

class gnu::javax::imageio::gif::GIFImageReader : public ::javax::imageio::ImageReader
{

public: // actually protected
  GIFImageReader(::javax::imageio::spi::ImageReaderSpi *);
private:
  void readImage();
  ::java::awt::image::IndexColorModel * getPalette(jint);
  void validateIndex(jint);
public:
  virtual void setInput(::java::lang::Object *);
  virtual void setInput(::java::lang::Object *, jboolean, jboolean);
  virtual void setInput(::java::lang::Object *, jboolean);
private:
  void checkStream();
public:
  virtual jint getWidth(jint);
  virtual jint getHeight(jint);
  virtual ::java::util::Iterator * getImageTypes(jint);
  virtual jint getNumImages(jboolean);
  virtual ::javax::imageio::metadata::IIOMetadata * getImageMetadata(jint);
  virtual ::javax::imageio::metadata::IIOMetadata * getStreamMetadata();
  virtual ::java::awt::image::BufferedImage * read(jint, ::javax::imageio::ImageReadParam *);
private:
  ::gnu::javax::imageio::gif::GIFFile * __attribute__((aligned(__alignof__( ::javax::imageio::ImageReader)))) file;
public:
  static ::java::lang::Class class$;
};

#endif // __gnu_javax_imageio_gif_GIFImageReader__
