99 int getNumEntries() const noexcept;
105 const
ZipEntry* getEntry (
int index) const noexcept;
113 int getIndexOfFileName (const
String& fileName,
bool ignoreCase = false) const noexcept;
122 const
ZipEntry* getEntry (const
String& fileName,
bool ignoreCase = false) const noexcept;
125 void sortEntriesByFilename();
168 Result uncompressTo (const
File& targetDirectory,
169 bool shouldOverwriteFiles = true);
182 Result uncompressEntry (
int index,
183 const
File& targetDirectory,
184 bool shouldOverwriteFiles = true);
210 void addFile (
const File& fileToAdd,
int compressionLevel,
225 void addEntry (
InputStream* streamToRead,
int compressionLevel,
226 const String& storedPathName,
Time fileModificationTime);
232 bool writeToStream (
OutputStream& target,
double* progress)
const;
239 JUCE_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR (Builder)
250 std::unique_ptr<InputStream> streamToDelete;
251 std::unique_ptr<InputSource> inputSource;
254 struct OpenStreamCounter
256 OpenStreamCounter() =
default;
257 ~OpenStreamCounter();
259 int numOpenStreams = 0;
262 OpenStreamCounter streamCounter;
267 JUCE_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR (
ZipFile)
bool isSymbolicLink
True if the zip entry is a symbolic link.
#define JUCE_API
This macro is added to all JUCE public class declarations.
Used to create a new zip file.
Contains information about one of the entries in a ZipFile.
String filename
The name of the file, which may also include a partial pathname.
int64 uncompressedSize
The file's original size.
Time fileTime
The last time the file was modified.
Represents the 'success' or 'failure' of an operation, and holds an associated error message to descr...
Represents a local file or directory.
The base class for streams that write data to some kind of destination.
uint32 externalFileAttributes
Platform specific data.
Decodes a ZIP file from a stream.
An array designed for holding objects.
Holds an absolute date and time.