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 Summary

    Modifier and Type
    Method
    Description
     
    void
    Writes the image to the output stream.
  • Method Details

    • writeTo

      void writeTo(OutputStream out) throws 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:
      IOException - If the underlying stream throws.
    • getType

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