public static synchronized void setDataContentHandlerFactory (DataContentHandlerFactory newFactory)

Sets the DataContentHandlerFactory. The DataContentHandlerFactory is called first to find DataContentHandlers. The DataContentHandlerFactory can only be set once.

If the DataContentHandlerFactory has already been set, this method throws an Error.

Parameters:
newFactory    the DataContentHandlerFactory

Exceptions:
Error    if the factory has already been defined.

See also:
javax.activation.DataContentHandlerFactory