@@ -19,10 +19,15 @@ { char *cache; size_t cache_len; } +/** + * \return A boolean whether the end of the stream has been reached + */ +- (BOOL)atEndOfStream; + /** * Reads from the stream into a buffer. * * \param buf The buffer into which the data is read * \param size The size of the data that should be read. @@ -36,11 +41,12 @@ * Read until a newline or \0 occurs. * * If you want to use readNBytes afterwards again, you have to clear the cache * before and optionally get the cache before clearing it! * - * \return The line that was read, autoreleased. + * \return The line that was read, autoreleased, or nil if the end of the + * stream has been reached. */ - (OFString*)readLine; /** * Writes from a buffer into the stream.