1 | ;
|
2 |
|
3 | module.exports = Entry;
|
4 |
|
5 | var Stream = require('stream').Stream;
|
6 | var inherits = require('util').inherits;
|
7 |
|
8 | inherits(Entry, Stream);
|
9 |
|
10 | function 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 |
|
20 | Entry.prototype.pause = function () {
|
21 | this.pullStream.pause();
|
22 | };
|
23 |
|
24 | Entry.prototype.resume = function () {
|
25 | this.pullStream.resume();
|
26 | };
|