23#import "OFZooArchiveEntry.h"
25OF_ASSUME_NONNULL_BEGIN
32OF_SUBCLASSING_RESTRICTED
38 uint16_t _minVersionNeeded;
42#ifdef OF_ZOO_ARCHIVE_M
45 OFStream *_Nullable _lastReturnedStream;
47 OFStreamOffset _lastHeaderOffset;
48 size_t _lastHeaderLength;
81+ (instancetype)archiveWithIRI: (
OFIRI *)IRI mode: (
OFString *)mode;
94- (instancetype)
init OF_UNAVAILABLE;
107- (instancetype)initWithStream: (
OFStream *)stream
108 mode: (
OFString *)mode OF_DESIGNATED_INITIALIZER;
119- (instancetype)initWithIRI: (
OFIRI *)IRI mode: (
OFString *)mode;
OFStringEncoding
The encoding of a string.
Definition OFString.h:65
A class for representing IRIs, URIs, URLs and URNs, for parsing them as well as accessing parts of th...
Definition OFIRI.h:41
The root class for all other classes inside ObjFW.
Definition OFObject.h:692
instancetype init()
Initializes an already allocated object.
Definition OFObject.m:696
id copy()
Returns the class.
Definition OFObject.m:1407
A base class for different types of streams.
Definition OFStream.h:280
A class for handling strings.
Definition OFString.h:143
A class which represents an entry in a Zoo archive.
Definition OFZooArchiveEntry.h:37
A class for accessing and manipulating Zoo files.
Definition OFZooArchive.h:34
nullable OFZooArchiveEntry * nextEntry()
Returns the next entry from the Zoo archive or nil if all entries have been read.
Definition OFZooArchive.m:245
OFString * archiveComment
The archive comment.
Definition OFZooArchive.m:225
OFStream * streamForReadingCurrentEntry()
Returns a stream for reading the current entry.
Definition OFZooArchive.m:271
void close()
Closes the OFZooArchive.
Definition OFZooArchive.m:384
OFStringEncoding encoding
The encoding to use for the archive. Defaults to UTF-8.
Definition OFZooArchive.h:54