Interface ImageHolder


  • @API(type=NOT_EXTENDABLE,
         src=PUBLIC)
    public interface ImageHolder
    An image holder that can be written to an OutputStream and contains additional information about the image.
    Since:
    19.1
    • Method Detail

      • writeTo

        void writeTo​(java.io.OutputStream out)
              throws java.io.IOException
        Writes the image to the output stream. This method does not close the output stream. This method does not close or flush the output stream.
        Parameters:
        out - The output stream.
        Throws:
        java.io.IOException - If the underlying stream throws.
      • getType

        java.lang.String getType()
        Returns:
        The type of the image that is written, or null if the type could not be determined.