function Vimeo(image){ /* jshint validthis:true */ if (!(this instanceof Vimeo)){ return new Vimeo(image); } stream.Readable.call(this, { objectMode : true }); this.image = image; this.ended = false; // set the expiry value to the shorter value this.image.expiry = env.IMAGE_EXPIRY_SHORT; }
function Alphabet(options) { stream.Readable.call(this, options); this._start = 'a'; this._end = 'z'; this._curr = this._start.charCodeAt(0); }
function MyReadable () { Readable.call(this) this._read = function () { var data = 'payload' this.push(data) this.push(null) } }
function emailStream(options) { if (!(this instanceof emailStream)) return new emailStream(options); stream.Readable.call(this, options || {}); // Subscribe to model changes Emails.filter(email => { return email('to').contains((to) => { return to('address').eq(options.email); }); }).changes().then(feed => { feed.each((error, entity) => { if (entity.isSaved() === false) return; this.push(JSON.stringify(entity)); }); }); }
if (options.highWaterMark === undefined) options.highWaterMark = 64 * 1024 stream.Readable.call(this, options) this.path = _path this.options = options
function MixerStream (bitdepth, channel, sampleRate) { stream.Readable.call(this);
function BufferStream (source) { stream.Readable.call(this) this._source = source this._offset = 0 this._length = source.length this.on('end', this._destroy) }
function ReadStream() { Readable.call(this); this._offset = 0; this.readable = false; this.complete = false; this._object = new Buffer(0); }
/** * This class is simple clone of readable file stream that supports custom buffer size. * Because, fs.createReadableStream does not support to specify buffer size. * @constructor * @param {string} file File path. * @param {number} chunkSize Buffer size in bytes. */ var FileReadStream = function(file, chunkSize) { stream.Readable.call(this); this.reset(); this.file = file; this.chunkSize = chunkSize; this.buffer = new Buffer(this.chunkSize); this.start(); }
function UdpStream(msg, info) { Readable.call(this); this.msg = msg; this.info = info; }
function Alphabet(options) { stream.Readable.call(this, options); this._end = 100; this._curr = 0; }
var FakeReadable = function (err) { Readable.call(this) this.err = err }
function ReadStream() { stream.Readable.call(this); }
var MyReadable = function() { Readable.call(this); }
var RandomSteam = function(){ stream.Readable.call(this,arguments); }