blob: 46a71038810f7daaa9c4a36b630d56cfcf7c4877 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
// 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);
}
IO.prototype.flush = function() {
}
IO.prototype.close = function() {
}
|