@abc.abstractmethod<EOL><INDENT>def write(self, buf, n):<DEDENT>
pass<EOL>
Writes ``n`` bytes to this stream.

        :param buf: the buffer containing the data to write
        :type buf: ``byte[]``
        :param n: the number of ``bytes`` to write
        :type n: ``cardinal``
        :raise: ``IllegalState`` -- this stream has been closed
        :raise: ``InvalidArgument`` -- ``buf`` does not contain ``n bytes``
        :raise: ``NullArgument`` -- ``buf`` is ``null``
        :raise: ``OperationFailed`` -- unable to complete request

        *compliance: mandatory -- This method must be implemented.*