Class GifDataContentHandler

    • Constructor Detail

      • GifDataContentHandler

        public GifDataContentHandler()
    • Method Detail

      • getDF

        protected jakarta.activation.ActivationDataFlavor getDF()
      • getTransferDataFlavors

        public jakarta.activation.ActivationDataFlavor[] getTransferDataFlavors()
        Return the DataFlavors for this DataContentHandler.
        Specified by:
        getTransferDataFlavors in interface jakarta.activation.DataContentHandler
        Returns:
        The DataFlavors
      • getTransferData

        public Object getTransferData​(jakarta.activation.ActivationDataFlavor df,
                                      jakarta.activation.DataSource ds)
                               throws IOException
        Return the Transfer Data of type DataFlavor from InputStream.
        Specified by:
        getTransferData in interface jakarta.activation.DataContentHandler
        Parameters:
        df - The DataFlavor
        ds - The DataSource
        Returns:
        String object
        Throws:
        IOException - in case of an I/O error
      • getContent

        public Object getContent​(jakarta.activation.DataSource ds)
                          throws IOException
        Specified by:
        getContent in interface jakarta.activation.DataContentHandler
        Throws:
        IOException
      • writeTo

        public void writeTo​(Object obj,
                            String type,
                            OutputStream os)
                     throws IOException
        Write the object to the output stream, using the specified MIME type.
        Specified by:
        writeTo in interface jakarta.activation.DataContentHandler
        Parameters:
        obj - object to write
        type - requested MIME type of the resulting byte stream
        os - OutputStream
        Throws:
        IOException