@@ -0,0 +1,744 @@
+# -*- coding: utf-8 -*-%0A%0Afrom . core import Origin, Pipe%0A%0A%0Aclass FileReadStream(Origin):%0A    %22%22%22%60%60FileReadStream%60%60 is a file input stream wrapped by%0A    %60%60kisell.core.Origin%60%60.%0A%0A    :param name: file name%0A    :param encoding: file encoding (default: utf-8)%0A%0A    %22%22%22%0A    def __init__(self, name, encoding=None):%0A        super(FileReadStream, self).__init__(%0A            open(name, encoding=encoding or 'utf-8', mode='r')%0A        )%0A%0A%0Aclass WriteStream(Pipe):%0A    %22%22%22%60%60WriteStream%60%60 is an output stream. Write each line into %60%60writable%60%60.%0A%0A    :param writable: writable object%0A    :param lineterminator: line terminator (default: %60%60%5C%5Cn%60%60)%0A%0A    %22%22%22%0A    def __init__(self, writable, lineterminator='%5Cn'):%0A        super(WriteStream, self).__init__()%0A

add io.py