Class handler_base

    • Constructor Detail

      • handler_base

        public handler_base()
    • Method Detail

      • getDataFlavors

        protected abstract ActivationDataFlavor[] getDataFlavors()
        Return an array of ActivationDataFlavors that we support. Usually there will be only one.
        Returns:
        array of ActivationDataFlavors that we support
      • getData

        protected Object getData​(ActivationDataFlavor aFlavor,
                                 DataSource ds)
                          throws IOException
        Given the flavor that matched, return the appropriate type of object. Usually there's only one flavor so just call getContent.
        Parameters:
        aFlavor - the ActivationDataFlavor
        ds - DataSource containing the data
        Returns:
        the object
        Throws:
        IOException - for errors reading the data