@@ -30,11 +30,11 @@ @public char *cache; @protected char *wBuffer; size_t cacheLen, wBufferLen; - BOOL useWBuffer; + BOOL bufferWrites;; } /** * Returns a boolean whether the end of the stream has been reached. * @@ -196,16 +196,23 @@ */ - (OFString*)readTillDelimiter: (OFString*)delimiter withEncoding: (enum of_string_encoding)encoding; /** - * Buffer all writes until flushWriteBuffer is called. + * \return A boolean whether writes are buffered + */ +- (BOOL)bufferWrites; + +/** + * Enables or disables the write buffer. + * + * \param enable Whether the write buffer should be enabled or disabled */ -- (void)bufferWrites; +- (void)setBufferWrites: (BOOL)enable; /** - * Writes everything in the write cache to the stream. + * Writes everythig in the write buffer to the stream. */ - (void)flushWriteBuffer; /** * Writes from a buffer into the stream.