@@ -10,10 +10,11 @@ */ #import "OFObject.h" @class OFString; +@class OFDataArray; /** * \brief A base class for different types of streams. */ @interface OFStream: OFObject @@ -71,10 +72,16 @@ * \return The number of bytes read */ - (size_t)readNBytesWithoutCache: (size_t)size intoBuffer: (char*)buf; +/** + * \return An OFDataArray with an item size of 1 with all the data of the + * stream until the end of the stream is reached. + */ +- (OFDataArray*)readDataArrayTillEndOfStream; + /** * Read until a newline, \\0 or end of stream occurs. * * \return The line that was read, autoreleased, or nil if the end of the * stream has been reached.