Class WrappedDataHandler

  • All Implemented Interfaces:
    Transferable

    public class WrappedDataHandler
    extends DataHandlerWrapper
    This class acts as a wrapper for the javax.activation.DataHandler class. It is used to store away a (potentially) user-defined content-type value along with the DataHandler instance. We'll delegate all method calls except for getContentType() to the real DataHandler instance.
    • Constructor Detail

      • WrappedDataHandler

        public WrappedDataHandler​(DataHandler _delegate,
                                  String _contentType)
        Constructs a new instance of the WrappedDataHandler.
        Parameters:
        _delegate - the real DataHandler instance being wrapped
        _contentType - the user-defined contentType associated with the DataHandler instance