@@ -62,21 +62,22 @@ { if (self == [ZIPArchive class]) app = [[OFApplication sharedApplication] delegate]; } -+ (instancetype)archiveWithFile: (OFFile*)file ++ (instancetype)archiveWithStream: (OF_KINDOF(OFStream*))stream { - return [[[self alloc] initWithFile: file] autorelease]; + return [[[self alloc] initWithStream: stream] autorelease]; } -- initWithFile: (OFFile*)file +- initWithStream: (OF_KINDOF(OFStream*))stream { self = [super init]; @try { - _archive = [[OFZIPArchive alloc] initWithSeekableStream: file]; + _archive = [[OFZIPArchive alloc] + initWithSeekableStream: stream]; } @catch (id e) { [self release]; @throw e; }