(self, reader, writer, buffer_size=DEFAULT_BUFFER_SIZE)
Constructor.

        The arguments are two RawIO instances.
Constructor.
Constructor .
def __init__(self, reader, writer, buffer_size=DEFAULT_BUFFER_SIZE):
        """Constructor.

        The arguments are two RawIO instances.
        """
        if not reader.readable():
            raise OSError('"reader" argument must be readable.')

        if not writer.writable():
            raise OSError('"writer" argument must be writable.')

        self.reader = BufferedReader(reader, buffer_size)
        self.writer = BufferedWriter(writer, buffer_size)
def __init__ ( self , reader , writer , buffer_size = DEFAULT_BUFFER_SIZE ) : if not reader . readable ( ) : raise OSError ( '"reader" argument must be readable.' ) if not writer . writable ( ) : raise OSError ( '"writer" argument must be writable.' ) self . reader = BufferedReader ( reader , buffer_size ) self . writer = BufferedWriter ( writer , buffer_size )