184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
|
}
_lastReturnedStream = nil;
_currentEntry = [[OFZooArchiveEntry alloc]
of_initWithStream: _stream
encoding: _encoding];
if (_currentEntry->_nextHeaderOffset == 0) {
/*
* End of archive is marked by a header that has the next
* header's offset set to 0.
*/
[_currentEntry release];
_currentEntry = nil;
}
return _currentEntry;
}
- (OFStream *)streamForReadingCurrentEntry
{
if (_mode != modeRead)
@throw [OFInvalidArgumentException exception];
|
<
<
<
<
<
<
<
<
<
|
184
185
186
187
188
189
190
191
192
193
194
195
196
197
|
}
_lastReturnedStream = nil;
_currentEntry = [[OFZooArchiveEntry alloc]
of_initWithStream: _stream
encoding: _encoding];
return _currentEntry;
}
- (OFStream *)streamForReadingCurrentEntry
{
if (_mode != modeRead)
@throw [OFInvalidArgumentException exception];
|