StreamWriter.py 352 Bytes
Newer Older
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
class StreamWriter:
    
    def __init__(self, stream):
        self.stream = stream
        pass
            
    def start(self, encoder, version):
        encoder.encode_string(version)
        pass
    
    def write(self, data):
        self.stream.write(data)
        pass

    def mark(self):
        self.stream.flush()
        pass

    pass