Set a generic output handler.
A write handler.
Any application data for passing to the write handler.
An emitter object.