Class ImageEncodingHelper.RenderedImageEncoder

  • All Implemented Interfaces:
    ImageEncoder
    Enclosing class:
    ImageEncodingHelper

    private static class ImageEncodingHelper.RenderedImageEncoder
    extends java.lang.Object
    implements ImageEncoder
    ImageEncoder implementation for RenderedImage instances.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private java.awt.image.RenderedImage img  
    • Constructor Summary

      Constructors 
      Constructor Description
      RenderedImageEncoder​(java.awt.image.RenderedImage img)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String getImplicitFilter()  
      void writeTo​(java.io.OutputStream out)
      Writes the whole raw bitmap field to the given OutputStream.
      • Methods inherited from class java.lang.Object

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

      • img

        private final java.awt.image.RenderedImage img
    • Constructor Detail

      • RenderedImageEncoder

        public RenderedImageEncoder​(java.awt.image.RenderedImage img)
    • Method Detail

      • writeTo

        public void writeTo​(java.io.OutputStream out)
                     throws java.io.IOException
        Description copied from interface: ImageEncoder
        Writes the whole raw bitmap field to the given OutputStream. The implementation must not close the OutputStream when it is finished!
        Specified by:
        writeTo in interface ImageEncoder
        Parameters:
        out - the OutputStream to write to
        Throws:
        java.io.IOException - if an I/O error occurs