23#import "OFZooArchiveEntry.h"
25OF_ASSUME_NONNULL_BEGIN
35OF_SUBCLASSING_RESTRICTED
41 uint16_t _minVersionNeeded;
45#ifdef OF_ZOO_ARCHIVE_M
48 OFStream *_Nullable _lastReturnedStream;
50 OFStreamOffset _lastHeaderOffset;
52 size_t _lastHeaderLength;
85+ (instancetype)archiveWithIRI: (
OFIRI *)IRI mode: (
OFString *)mode;
98- (instancetype)
init OF_UNAVAILABLE;
111- (instancetype)initWithStream: (
OFStream *)stream
112 mode: (
OFString *)mode OF_DESIGNATED_INITIALIZER;
123- (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
An abstract class for a mutable unordered set of unique objects.
Definition OFMutableSet.h:33
Provides a way to store a number in an object.
Definition OFNumber.h:48
The root class for all other classes inside ObjFW.
Definition OFObject.h:962
instancetype init()
Initializes an already allocated object.
Definition OFObject.m:674
id copy()
Returns the class.
Definition OFObject.m:1329
A base class for different types of streams.
Definition OFStream.h:280
A class for handling strings.
Definition OFString.h:144
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:37
nullable OFZooArchiveEntry * nextEntry()
Returns the next entry from the Zoo archive or nil if all entries have been read.
Definition OFZooArchive.m:256
OFString * archiveComment
The archive comment.
Definition OFZooArchive.m:236
OFStream * streamForReadingCurrentEntry()
Returns a stream for reading the current entry.
Definition OFZooArchive.m:293
void close()
Closes the OFZooArchive.
Definition OFZooArchive.m:405
OFStringEncoding encoding
The encoding to use for the archive. Defaults to UTF-8.
Definition OFZooArchive.h:58