93 int getNumEntries() const noexcept;
99 const
ZipEntry* getEntry (
int index) const noexcept;
107 int getIndexOfFileName (const
String& fileName,
bool ignoreCase = false) const noexcept;
116 const
ZipEntry* getEntry (const
String& fileName,
bool ignoreCase = false) const noexcept;
119 void sortEntriesByFilename();
162 Result uncompressTo (const
File& targetDirectory,
163 bool shouldOverwriteFiles = true);
176 Result uncompressEntry (
int index,
177 const
File& targetDirectory,
178 bool shouldOverwriteFiles = true);
204 void addFile (
const File& fileToAdd,
int compressionLevel,
219 void addEntry (
InputStream* streamToRead,
int compressionLevel,
220 const String& storedPathName,
Time fileModificationTime);
226 bool writeToStream (
OutputStream& target,
double* progress)
const;
233 JUCE_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR (
Builder)
244 std::unique_ptr<InputStream> streamToDelete;
245 std::unique_ptr<InputSource> inputSource;
248 struct OpenStreamCounter
250 OpenStreamCounter() =
default;
251 ~OpenStreamCounter();
253 int numOpenStreams = 0;
256 OpenStreamCounter streamCounter;
261 JUCE_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR (
ZipFile)
Represents a local file or directory.
The base class for streams that write data to some kind of destination.
An array designed for holding objects.
Represents the 'success' or 'failure' of an operation, and holds an associated error message to descr...
Holds an absolute date and time.
Used to create a new zip file.
Decodes a ZIP file from a stream.
#define JUCE_API
This macro is added to all JUCE public class declarations.
String filename
The name of the file, which may also include a partial pathname.
int64 uncompressedSize
The file's original size.
bool isSymbolicLink
True if the zip entry is a symbolic link.
Time fileTime
The last time the file was modified.
Contains information about one of the entries in a ZipFile.