UNPKG

442 BJavaScriptView Raw
1'use strict';
2
3module.exports = Entry;
4
5var Stream = require('stream').Stream;
6var inherits = require('util').inherits;
7
8inherits(Entry, Stream);
9
10function Entry (pullStream) {
11 this.pullStream = pullStream;
12 Stream.call(this);
13
14 this.writable = false;
15 this.readable = true;
16
17 this.props = {};
18}
19
20Entry.prototype.pause = function () {
21 this.pullStream.pause();
22};
23
24Entry.prototype.resume = function () {
25 this.pullStream.resume();
26};