| 150 | } |
| 151 | |
| 152 | StreamObject * ZipObject::openFileForWrite(const char *filename) |
| 153 | { |
| 154 | if(mZipArchive == NULL) |
| 155 | return NULL; |
| 156 | |
| 157 | Stream * stream = mZipArchive->openFile(filename, Zip::ZipArchive::Write); |
| 158 | if(stream != NULL) |
| 159 | return createStreamObject(stream); |
| 160 | |
| 161 | return NULL; |
| 162 | } |
| 163 | |
| 164 | void ZipObject::closeFile(StreamObject *stream) |
| 165 | { |