Class IIOImageProviderHelper
java.lang.Object
org.jboss.resteasy.plugins.providers.IIOImageProviderHelper
-
Method Summary
Modifier and TypeMethodDescriptionstatic ImageReader
getImageReaderByMediaType
(jakarta.ws.rs.core.MediaType mediaType) FIXME Comment thisstatic ImageWriter
getImageWriterByMediaType
(jakarta.ws.rs.core.MediaType mediaType) FIXME Comment thisstatic IIOImage
readImage
(InputStream in, ImageReader reader, int imageIndex) FIXME Comment thisstatic void
writeImage
(Annotation[] annotations, jakarta.ws.rs.core.MediaType mediaType, ImageWriter writer, OutputStream out, IIOImage image) FIXME Comment this
-
Method Details
-
getImageWriterByMediaType
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 streamreader
- image readerimageIndex
- index- Returns:
IIOImage
- Throws:
IOException
- if I/O error occurred
-
getImageReaderByMediaType
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 annotationsmediaType
- media typewriter
- image writerout
- output streamimage
-IIOImage
- Throws:
IOException
- if I/O error occurred
-