/** * * @constructor * @param {shoutT} shout */ var ShoutStream = function(shout) { stream.Writable.call(this); this.shout = shout; }
function ResponseWriter(request, response){ if (!(this instanceof ResponseWriter)){ return new ResponseWriter(request, response); } this.request = request; this.response = response; stream.Writable.call(this, { objectMode : true }); }
function MyWritable () { Writable.call(this) this._write = (buffer, encoding, next) => { console.log(buffer) next() } }
function Cache(options) { stream.Writable.call(this, options); this._key = options.key; this._value = null; this.on('finish', function() { Cache.store[this._key] = this._value.toString(); }); }
function Decoder(options) { Writable.call(this, options);
function ConsoleStream(env) { Writable.call(this, { objectMode: true }); env = env || { debug: true }; this.debug = env.debug; }
//------------------------------------------------------------------------------ // Public Interface //------------------------------------------------------------------------------ function BufferStream() { Writable.call(this) this.value = "" }
function WritStream() { stream.Writable.call(this); this._cached = new Buffer(''); }
function ToFileStream(){ stream.Writable.call(this,{objectMode:true}); /*other options are *highWaterMark - (the default is 16 kB) this controls the back-pressure limit. *decodeStrings(defaults to true) This enables the automatic decoding of strings into binary buffers before passing them to the _write() method. This otion is ignored in the object mode. */ }
var FakeWritable = function () { Writable.call(this) }
function GreenStream() { Writable.call(this); }