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)
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.
String filename
The name of the file, which may also include a partial pathname.
int64 uncompressedSize
The file's original size.
uint32 externalFileAttributes
Platform specific data.
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.
#define JUCE_API
This macro is added to all JUCE public class declarations.