lib/streams/classic-writable.js
function ClassicWritable(stream, options) {
	var self = this;

	PassThrough.call(this, options);
	classicMixins.call(this, stream, options);

	stream.on('error', function(error) {
		self.emit('error', error);
	});

	self._isClosed = false;
	stream.on('close', function() {
		self._isClosed = true;
	});
	if (!stream.end) stream.end = () => { /* do nothing */ };
	this._zSuperObj.pipe.call(this, stream);
}
function ClassicWritable(stream, options) {
	var self = this;

	PassThrough.call(this, options);
	classicMixins.call(this, stream, options);

	stream.on('error', function(error) {
		self.emit('error', error);
	});

	self._isClosed = false;
	stream.on('close', function() {
		self._isClosed = true;
	});
	if (!stream.end) stream.end = () => { /* do nothing */ };
	this._zSuperObj.pipe.call(this, stream);
}
function ClassicWritable ( stream , options ) { var self = this ; PassThrough . call ( this , options ) ; classicMixins . call ( this , stream , options ) ; stream . on ( 'error' , function ( error ) { self . emit ( 'error' , error ) ; } ) ; self . _isClosed = false ; stream . on ( 'close' , function ( ) { self . _isClosed = true ; } ) ; if ( ! stream . end ) stream . end = ( ) => { /* do nothing */ } ; this . _zSuperObj . pipe . call ( this , stream ) ; }
ClassicWritable wraps a "classic" writable stream.

@class ClassicWritable
@constructor
@extends ZPassThrough
@uses _Classic
@param {Stream} stream - The classic stream being wrapped
@param {Object} [options] - Stream options
ClassicWritable wraps a classic writable stream .