@@ -13,10 +13,11 @@ * LICENSE.GPLv2 or LICENSE.GPLv3 respectively included in the packaging of this * file. */ #import "OFObject.h" +#import "OFKernelEventObserver.h" #import "OFTarArchiveEntry.h" OF_ASSUME_NONNULL_BEGIN @class OFString; @@ -40,12 +41,16 @@ /*! * @brief A stream for reading the current entry * * @note This is only available in read mode. + * + * @note The returned stream only conforms to @ref OFReadyForReadingObserving if + * the underlying stream does so, too. */ -@property (readonly, nonatomic) OFStream *streamForReadingCurrentEntry; +@property (readonly, nonatomic) + OFStream *streamForReadingCurrentEntry; /*! * @brief Creates a new OFTarArchive object with the specified stream. * * @param stream A stream from which the tar archive will be read. @@ -120,10 +125,13 @@ /*! * @brief Returns a stream for writing the specified entry. * * @note This is only available in write and append mode. + * + * @note The returned stream only conforms to @ref OFReadyForWritingObserving if + * the underlying stream does so, too. * * @warning Calling @ref nextEntry will invalidate all streams returned by * @ref streamForReadingCurrentEntry or * @ref streamForWritingEntry:! Reading from or writing to an * invalidated stream will throw an @ref OFReadFailedException or @@ -130,14 +138,15 @@ * @ref OFWriteFailedException! * * @param entry The entry for which a stream for writing should be returned * @return A stream for writing the specified entry */ -- (OFStream *)streamForWritingEntry: (OFTarArchiveEntry *)entry; +- (OFStream *) + streamForWritingEntry: (OFTarArchiveEntry *)entry; /*! * @brief Closes the OFTarArchive. */ - (void)close; @end OF_ASSUME_NONNULL_END