blob: 4c9c65cf0e9499cfc57c40b4ef1b0d3375a08cce (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
// IO: default
var IO = exports.IO = function(inputStream, outputStream) {
this.inputStream = inputStream;
this.outputStream = outputStream;
}
IO.prototype.read = function(length) {
return this.inputStream(length);
}
IO.prototype.write = function(object) {
this.outputStream(object);
return this;
}
IO.prototype.flush = function() {
return this;
}
IO.prototype.close = function() {
}
exports.TextIOWrapper = function (raw, mode, lineBuffering, buffering, charset, options) {
return raw;
}
|