lib/streams/classic-duplex.js
function ClassicDuplex(stream, options) {
	var readable, writable, classicReadable, classicWritable, self = this;

	readable = new PassThrough();
	writable = new PassThrough();
	CompoundDuplex.call(self, writable, readable, options);
	classicMixins.call(this, stream, options);

	classicReadable = this._internalReadable = new ClassicReadable(stream, options);
	classicReadable.on('error', this._duplexHandleInternalError.bind(this));

	classicWritable = this._internalWritable = new ClassicWritable(stream, options);
	classicWritable.on('error', this._duplexHandleInternalError.bind(this));

	writable.pipe(classicWritable);
	classicReadable.pipe(readable);
}
function ClassicDuplex(stream, options) {
	var readable, writable, classicReadable, classicWritable, self = this;

	readable = new PassThrough();
	writable = new PassThrough();
	CompoundDuplex.call(self, writable, readable, options);
	classicMixins.call(this, stream, options);

	classicReadable = this._internalReadable = new ClassicReadable(stream, options);
	classicReadable.on('error', this._duplexHandleInternalError.bind(this));

	classicWritable = this._internalWritable = new ClassicWritable(stream, options);
	classicWritable.on('error', this._duplexHandleInternalError.bind(this));

	writable.pipe(classicWritable);
	classicReadable.pipe(readable);
}
function ClassicDuplex ( stream , options ) { var readable , writable , classicReadable , classicWritable , self = this ; readable = new PassThrough ( ) ; writable = new PassThrough ( ) ; CompoundDuplex . call ( self , writable , readable , options ) ; classicMixins . call ( this , stream , options ) ; classicReadable = this . _internalReadable = new ClassicReadable ( stream , options ) ; classicReadable . on ( 'error' , this . _duplexHandleInternalError . bind ( this ) ) ; classicWritable = this . _internalWritable = new ClassicWritable ( stream , options ) ; classicWritable . on ( 'error' , this . _duplexHandleInternalError . bind ( this ) ) ; writable . pipe ( classicWritable ) ; classicReadable . pipe ( readable ) ; }
ClassicDuplex wraps a "classic" duplex stream.

@class ClassicDuplex
@constructor
@extends CompoundDuplex
@uses _Classic
@param {Stream} stream - The classic stream being wrapped
@param {Object} [options] - Stream options
ClassicDuplex wraps a classic duplex stream .