Class ImageIOImageWriter.IIOMultiImageWriter

    • Field Summary

      Fields 
      Modifier and Type Field Description
      private javax.imageio.ImageWriter iiowriter  
      private javax.imageio.stream.ImageOutputStream imageStream  
      private boolean prepared  
    • Constructor Summary

      Constructors 
      Constructor Description
      IIOMultiImageWriter​(java.io.OutputStream out)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void close()  
      void writeImage​(java.awt.image.RenderedImage image, ImageWriterParams params)
      Encodes an image and writes it to the image file.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • iiowriter

        private javax.imageio.ImageWriter iiowriter
      • imageStream

        private javax.imageio.stream.ImageOutputStream imageStream
      • prepared

        private boolean prepared
    • Constructor Detail

      • IIOMultiImageWriter

        public IIOMultiImageWriter​(java.io.OutputStream out)
                            throws java.io.IOException
        Throws:
        java.io.IOException
    • Method Detail

      • writeImage

        public void writeImage​(java.awt.image.RenderedImage image,
                               ImageWriterParams params)
                        throws java.io.IOException
        Description copied from interface: MultiImageWriter
        Encodes an image and writes it to the image file.
        Specified by:
        writeImage in interface MultiImageWriter
        Parameters:
        image - the image to be encoded
        params - a parameters object to customize the encoding.
        Throws:
        java.io.IOException - In case of an /IO problem
      • close

        public void close()
                   throws java.io.IOException
        Specified by:
        close in interface MultiImageWriter
        Throws:
        java.io.IOException