@@ -36,10 +36,17 @@ OF_TAR_ARCHIVE_MODE_APPEND } _mode; OF_KINDOF(OFStream *) _Nullable _lastReturnedStream; } +/*! + * @return A stream for reading the current entry + * + * @note This is only available in read mode. + */ +@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. * For append mode, this needs to be an OFSeekableStream. @@ -109,19 +116,10 @@ * @return The next entry from the tar archive or `nil` if all entries have * been read */ - (nullable OFTarArchiveEntry *)nextEntry; -/*! - * @brief Returns a stream for reading the current entry. - * - * @note This is only available in read mode. - * - * @return A stream for reading the current entry - */ -- (OFStream *)streamForReadingCurrentEntry; - /*! * @brief Returns a stream for writing the specified entry. * * @note This is only available in write and append mode. *