Class IIOImageProviderHelper

java.lang.Object
org.jboss.resteasy.plugins.providers.IIOImageProviderHelper

public final class IIOImageProviderHelper extends Object
A IIOImageProviderHelper.
Version:
$Revision:$
Author:
Ryan J. McDonough
  • Method Details

    • getImageWriterByMediaType

      public static ImageWriter getImageWriterByMediaType(jakarta.ws.rs.core.MediaType mediaType)
      FIXME Comment this
      Parameters:
      mediaType - media type
      Returns:
      image writer
    • readImage

      public static IIOImage readImage(InputStream in, ImageReader reader, int imageIndex) throws IOException
      FIXME Comment this
      Parameters:
      in - input stream
      reader - image reader
      imageIndex - index
      Returns:
      IIOImage
      Throws:
      IOException - if I/O error occurred
    • getImageReaderByMediaType

      public static ImageReader getImageReaderByMediaType(jakarta.ws.rs.core.MediaType mediaType)
      FIXME Comment this
      Parameters:
      mediaType - media type
      Returns:
      image reader
    • writeImage

      public static void writeImage(Annotation[] annotations, jakarta.ws.rs.core.MediaType mediaType, ImageWriter writer, OutputStream out, IIOImage image) throws IOException
      FIXME Comment this
      Parameters:
      annotations - array of annotations
      mediaType - media type
      writer - image writer
      out - output stream
      image - IIOImage
      Throws:
      IOException - if I/O error occurred