@abc.abstractmethod<EOL><INDENT>def close(self):<DEDENT>
pass<EOL>
Flushes the output, closes this stream and frees up any allocated resources.

        Methods in this object may not be invoked after this method is
        called.

        :raise: ``IllegalState`` -- this stream has been closed

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