Class WriteOp


  • public class WriteOp
    extends Operation
    Author:
    Fabrizio Giudici
    • Constructor Summary

      Constructors 
      Constructor Description
      WriteOp​(java.lang.String format, java.lang.Object output)
      Writes the image to a File or a OutputStream.
      WriteOp​(java.lang.String format, java.lang.Object output, javax.imageio.ImageWriteParam imageWriteParam)
      Writes the image to a File or a OutputStream.
      WriteOp​(java.lang.String format, java.lang.Object output, javax.imageio.ImageWriteParam imageWriteParam, javax.imageio.metadata.IIOMetadata iioMetadata)  
      WriteOp​(java.lang.String format, java.lang.String fileName)
      Writes the image to a file.
      WriteOp​(java.lang.String format, java.lang.String fileName, javax.imageio.ImageWriteParam imageWriteParam)
      Writes the image to a file.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String getFormat()  
      javax.imageio.metadata.IIOMetadata getIIOMetadata()
      Please note that this method is unsupported.
      javax.imageio.ImageWriteParam getImageWriteParam()  
      java.lang.Object getOutput()  
      java.lang.String toString()
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • WriteOp

        public WriteOp​(java.lang.String format,
                       java.lang.String fileName)
        Writes the image to a file.
        Parameters:
        format - the image format
        fileName - the file name
      • WriteOp

        public WriteOp​(java.lang.String format,
                       java.lang.String fileName,
                       javax.imageio.ImageWriteParam imageWriteParam)
        Writes the image to a file.
        Parameters:
        format - the image format
        fileName - the file name
        imageWriteParam - the write parameters
      • WriteOp

        public WriteOp​(java.lang.String format,
                       java.lang.Object output)
        Writes the image to a File or a OutputStream. In the latter case, note that the OutputStream is not closed.
        Parameters:
        format - the image format
        output - the output object
      • WriteOp

        public WriteOp​(java.lang.String format,
                       java.lang.Object output,
                       javax.imageio.ImageWriteParam imageWriteParam)
        Writes the image to a File or a OutputStream. In the latter case, note that the OutputStream is not closed.
        Parameters:
        format - the image format
        output - the output object
        imageWriteParam - the write parameters
      • WriteOp

        public WriteOp​(java.lang.String format,
                       java.lang.Object output,
                       javax.imageio.ImageWriteParam imageWriteParam,
                       javax.imageio.metadata.IIOMetadata iioMetadata)
    • Method Detail

      • getFormat

        public java.lang.String getFormat()
      • getOutput

        public java.lang.Object getOutput()
      • getImageWriteParam

        public javax.imageio.ImageWriteParam getImageWriteParam()
      • getIIOMetadata

        public javax.imageio.metadata.IIOMetadata getIIOMetadata()
        Please note that this method is unsupported.
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object