48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
|
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
|
-
-
+
+
-
+
-
|
@property (nonatomic) of_string_encoding_t encoding;
/*!
* @brief A stream for reading the current entry.
*
* @note This is only available in read mode.
*
* @note The returned stream only conforms to @ref OFReadyForReadingObserving if
* the underlying stream does so, too.
* @note The returned stream conforms to @ref OFReadyForReadingObserving if the
* underlying stream does so, too.
*/
@property (readonly, nonatomic)
@property (readonly, nonatomic) OFStream *streamForReadingCurrentEntry;
OFStream <OFReadyForReadingObserving> *streamForReadingCurrentEntry;
/*!
* @brief Creates a new OFLHAArchive object with the specified stream.
*
* @param stream A stream from which the LHA archive will be read.
* For read and append mode, this needs to be an OFSeekableStream.
* @param mode The mode for the LHA file. Valid modes are "r" for reading,
|
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
|
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
|
-
-
+
+
-
-
+
|
* @brief Returns a stream for writing the specified entry.
*
* @note This is only available in write and append mode.
*
* @note The uncompressed size, compressed size and CRC16 of the specified
* entry are ignored.
*
* @note The returned stream only conforms to @ref OFReadyForWritingObserving if
* the underlying stream does so, too.
* @note The returned stream conforms to @ref OFReadyForWritingObserving if the
* underlying stream does so, too.
*
* @warning Calling @ref nextEntry will invalidate all streams returned by
* @ref streamForReadingCurrentEntry or
* @ref streamForWritingEntry:! Reading from or writing to an
* invalidated stream will throw an @ref OFReadFailedException or
* @ref OFWriteFailedException!
*
* @param entry The entry for which a stream for writing should be returned
* @return A stream for writing the specified entry
*/
- (OFStream <OFReadyForWritingObserving> *)
streamForWritingEntry: (OFLHAArchiveEntry *)entry;
- (OFStream *)streamForWritingEntry: (OFLHAArchiveEntry *)entry;
/*!
* @brief Closes the OFLHAArchive.
*/
- (void)close;
@end
OF_ASSUME_NONNULL_END
|