ImageIO.h 3.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798
  1. // DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*-
  2. #ifndef __javax_imageio_ImageIO__
  3. #define __javax_imageio_ImageIO__
  4. #pragma interface
  5. #include <java/lang/Object.h>
  6. #include <gcj/array.h>
  7. extern "Java"
  8. {
  9. namespace java
  10. {
  11. namespace awt
  12. {
  13. namespace image
  14. {
  15. class BufferedImage;
  16. class RenderedImage;
  17. }
  18. }
  19. namespace net
  20. {
  21. class URL;
  22. }
  23. }
  24. namespace javax
  25. {
  26. namespace imageio
  27. {
  28. class ImageIO;
  29. class ImageReader;
  30. class ImageTypeSpecifier;
  31. class ImageWriter;
  32. namespace spi
  33. {
  34. class IIORegistry;
  35. class ServiceRegistry$Filter;
  36. }
  37. namespace stream
  38. {
  39. class ImageInputStream;
  40. class ImageOutputStream;
  41. }
  42. }
  43. }
  44. }
  45. class javax::imageio::ImageIO : public ::java::lang::Object
  46. {
  47. ImageIO();
  48. static ::java::util::Iterator * getReadersByFilter(::java::lang::Class *, ::javax::imageio::spi::ServiceRegistry$Filter *, ::java::lang::Object *);
  49. static ::java::util::Iterator * getWritersByFilter(::java::lang::Class *, ::javax::imageio::spi::ServiceRegistry$Filter *, ::java::lang::Object *);
  50. public:
  51. static ::java::io::File * getCacheDirectory();
  52. static ::java::util::Iterator * getImageReadersByFormatName(::java::lang::String *);
  53. static ::java::util::Iterator * getImageReadersByMIMEType(::java::lang::String *);
  54. static ::java::util::Iterator * getImageReadersBySuffix(::java::lang::String *);
  55. static ::java::util::Iterator * getImageWritersByFormatName(::java::lang::String *);
  56. static ::java::util::Iterator * getImageWritersByMIMEType(::java::lang::String *);
  57. static ::java::util::Iterator * getImageWritersBySuffix(::java::lang::String *);
  58. static JArray< ::java::lang::String * > * getReaderFormatNames();
  59. static JArray< ::java::lang::String * > * getReaderMIMETypes();
  60. private:
  61. static ::javax::imageio::spi::IIORegistry * getRegistry();
  62. public:
  63. static jboolean getUseCache();
  64. static JArray< ::java::lang::String * > * getWriterFormatNames();
  65. static JArray< ::java::lang::String * > * getWriterMIMETypes();
  66. static void scanForPlugins();
  67. static void setCacheDirectory(::java::io::File *);
  68. static void setUseCache(jboolean);
  69. static jboolean write(::java::awt::image::RenderedImage *, ::java::lang::String *, ::java::io::File *);
  70. static jboolean write(::java::awt::image::RenderedImage *, ::java::lang::String *, ::java::io::OutputStream *);
  71. static jboolean write(::java::awt::image::RenderedImage *, ::java::lang::String *, ::javax::imageio::stream::ImageOutputStream *);
  72. static ::java::awt::image::BufferedImage * read(::javax::imageio::stream::ImageInputStream *);
  73. static ::java::awt::image::BufferedImage * read(::java::net::URL *);
  74. static ::java::awt::image::BufferedImage * read(::java::io::InputStream *);
  75. static ::java::awt::image::BufferedImage * read(::java::io::File *);
  76. static ::javax::imageio::stream::ImageInputStream * createImageInputStream(::java::lang::Object *);
  77. static ::javax::imageio::stream::ImageOutputStream * createImageOutputStream(::java::lang::Object *);
  78. static ::javax::imageio::ImageReader * getImageReader(::javax::imageio::ImageWriter *);
  79. static ::java::util::Iterator * getImageReaders(::java::lang::Object *);
  80. static ::java::util::Iterator * getImageWriters(::javax::imageio::ImageTypeSpecifier *, ::java::lang::String *);
  81. static ::javax::imageio::ImageWriter * getImageWriter(::javax::imageio::ImageReader *);
  82. static ::java::util::Iterator * getImageTranscoders(::javax::imageio::ImageReader *, ::javax::imageio::ImageWriter *);
  83. private:
  84. static ::java::io::File * cacheDirectory;
  85. static jboolean useCache;
  86. public:
  87. static ::java::lang::Class class$;
  88. };
  89. #endif // __javax_imageio_ImageIO__