|
| | ZipFile (File file_, std::string password_="") |
| | Create a new zip file for the specified file. More...
|
| |
| | ZipFile (const ZipFile &zipFile)=default |
| | Create a new zip file by copying the supplied instance. More...
|
| |
| | ZipFile (ZipFile &&zipFile) noexcept |
| | Create a new zip file by moving the contents of the supplied instance. More...
|
| |
| std::unique_ptr< Uri > | append (const std::string &pathComponent) const override |
| | Appends the path component to the supplied URI, returning a new URI. More...
|
| |
| std::unique_ptr< ByteReadResource > | byteReadResource () const override |
| | Get a byte read resource for the URI. More...
|
| |
| std::unique_ptr< ByteWriteResource > | byteWriteResource () override |
| | Get a byte write resource for the URI. More...
|
| |
| bool | canReadFrom () const override |
| | Can data be read from the URI via a read resource. More...
|
| |
| bool | canWriteTo () const override |
| | Can data be written to the URI via a write resource. More...
|
| |
| std::unique_ptr< Uri > | clone () const override |
| | Clone the concrete Uri. More...
|
| |
| void | dispatch (UriDispatcher &dispatcher) const override |
| | Visitor pattern dispatching. More...
|
| |
| FileIterator | fileIterator () const override |
| | Get a non-recursive file iterator for this file (directory). More...
|
| |
| bool | isIterable () const override |
| | Does the URI have a non-recursive iterator (examples: file and zip archive URIs). More...
|
| |
| bool | isRecursivelyIterable () const override |
| | Does the URI have a recursive iterator (examples: file and zip archive URIs). More...
|
| |
| bool | isRegularDirectory () const override |
| | Returns true if the file URI points to a directory. More...
|
| |
| bool | isRegularFile () const override |
| | Returns true if the file URI points to a regular file. More...
|
| |
| std::unique_ptr< UriIterator > | iterator () const override |
| | Get a (non-recursive) iterator. More...
|
| |
| ZipFile & | operator= (const ZipFile &zipFile)=default |
| | Assign the zip file by copying the supplied instance. More...
|
| |
| ZipFile & | operator= (ZipFile &&zipFile)=default |
| | Assign the zip file by moving the contents of the supplied instance. More...
|
| |
| bool | operator== (const Uri &rhs) const override |
| | Compare the supplied URI to the current URI. More...
|
| |
| RecursiveFileIterator | recursiveFileIterator () const override |
| | Get a recursive file iterator for this file (directory). More...
|
| |
| std::unique_ptr< RecursiveUriIterator > | recursiveIterator () const override |
| | Get a recursive iterator. More...
|
| |
| RecursiveZipFileIterator | recursiveZipFileIterator (bool verify=false, const std::string &pw="") |
| | Get a recursive zip file iterator, specifying if the zip file should be verified and an optional encryption password. More...
|
| |
| std::unique_ptr< Uri > | resolve (std::string_view path) const override |
| | Resolve the relative or absolute path, in reference to the current URI. More...
|
| |
| std::unique_ptr< Utf32To8WriteResource > | utf32To8WriteResource () override |
| | Get a UTF-32 to UTF-8 write resource for the URI. More...
|
| |
| std::unique_ptr< Utf8To32ReadResource > | utf8To32ReadResource () const override |
| | Get a UTF-8 to UTF-32 read resource for the URI. More...
|
| |
| ZipFileIterator | zipFileIterator (bool verify=false, const std::string &pw="") |
| | Get a non-recursive zip file iterator, specifying if the zip file should be verified and an optional encryption password. More...
|
| |
| | File ()=default |
| | Create an empty file URI. More...
|
| |
| | File (boost::filesystem::directory_entry entry_) |
| | Create a file from the supplied directory entry. More...
|
| |
| | File (const boost::filesystem::path &entry_) |
| | Create a file from the supplied Boost path. More...
|
| |
| | File (const std::string &path) |
| | Create a file path with the supplied path string. More...
|
| |
| | File (const char *path) |
| | Create a file path with the supplied path string. More...
|
| |
| | File (std::string_view path) |
| | Create a file path with the supplied path string. More...
|
| |
| | File (const std::string &path, const std::string &name) |
| | Create a file path with the supplied path string and filename string. More...
|
| |
| | File (const File &path, const std::string &name) |
| | Create a file path with the supplied path and filename. More...
|
| |
| | File (File &&file) noexcept |
| | Move an existing file URI into a new File URI. More...
|
| |
| | File (const File &file) |
| | Copy an existing file URI into a new File URI. More...
|
| |
| bool | createDirectories () const |
| | Create all intermediate directories and the final directory. More...
|
| |
| bool | exists () const |
| | Returns true if an item exits in the file system for the file URI. More...
|
| |
| FileByteReadResource | getByteReadResource () const |
| | Get a file byte read resource for this file URI. More...
|
| |
| FileByteWriteResource | getByteWriteResource () const |
| | Get a file byte write resource for this file URI. More...
|
| |
| File | getChildEntry (std::string child) const |
| |
| boost::filesystem::directory_entry | getEntry () const |
| | Get the underlying directory entry for this file URI. More...
|
| |
| std::chrono::system_clock::time_point | getModifiedTimestamp () const |
| | Get the modified time of the file. More...
|
| |
| File | getParentDirectory () const |
| | Get the parent directory of the file URI. More...
|
| |
| File | getSubDirectory (std::string subDirectory) const |
| | Create a new file representing the specified sub-directory of the file URI. More...
|
| |
| FileUtf32To8WriteResource | getUtf32To8WriteResource () const |
| | Get a file UTF-8 to UTF-32 write resource for this file URI. More...
|
| |
| FileUtf8To32ReadResource | getUtf8To32ReadResource () const |
| | Get a file UTF-8 to UTF-32 read resource for this file URI. More...
|
| |
| size_t | hashcode () const noexcept override |
| | Get the URI's hash code. More...
|
| |
| File | operator+ (const std::string &fragment) const |
| | Concatenate the supplied path fragment to the end of the path represented by the file. More...
|
| |
| File | operator/ (const char *component) const |
| | Append a path component to the path represented by the file. More...
|
| |
| File | operator/ (const std::string &component) const |
| | Append a path component to the path represented by the file. More...
|
| |
| File | operator/ (const std::string_view &component) const |
| | Append a path component to the path represented by the file. More...
|
| |
| template<typename ... T, template< typename ... > class Container> |
| File | operator/ (const Container< T ... > &container) const |
| | Append a sequence of path components to the path represented by the file. More...
|
| |
| File & | operator/= (const char *component) |
| | Append a path component to the path represented by the file in place. More...
|
| |
| File & | operator/= (const std::string &component) |
| | Append a path component to the path represented by the file in place. More...
|
| |
| File & | operator/= (const std::string_view &component) |
| | Append a path component to the path represented by the file in place. More...
|
| |
| bool | operator< (const File &rhs) const |
| | Return true if the current object is less than the supplied instance. More...
|
| |
| File & | operator= (const File &file) |
| | Copy assign the supplied file to this file. More...
|
| |
| File & | operator= (File &&file) noexcept |
| | Move assign the supplied file to this file. More...
|
| |
| File & | operator= (const boost::filesystem::directory_entry &entry_) |
| | Copy the supplied directory entry to this file. More...
|
| |
| File & | operator= (const boost::filesystem::path &path) |
| | Copy the supplied file system path to this file. More...
|
| |
| bool | operator== (const File &rhs) const |
| | Compare the supplied file to the current file. More...
|
| |
| File | relative (const File &base) const |
| | Get the relative path of the current object, compared to the supplied file. More...
|
| |
| bool | removeFile () const |
| | Remove the file if it exists. More...
|
| |
| size_t | size () const |
| | Get the size of the file if it exists or -1 if the file does not exist. More...
|
| |
| File | toAbsolutePath () const |
| | Convert the file to an absolute path if it is relative, using the current working directory. More...
|
| |
| std::string | toRawString () const override |
| | Get a string representing the raw URI. More...
|
| |
| template<typename AllocatorT > |
| Balau::U8String< AllocatorT > | toRawString () const |
| | Get a string representing the raw URI. More...
|
| |
| std::string | toUriString () const override |
| | Get a string representing the URI, complete with scheme. More...
|
| |
| virtual | ~Uri ()=default |
| | Destroy the URI instance. More...
|
| |
| std::shared_ptr< Uri > | cloneToShared () const |
| | Clone the concrete Uri to a shared pointer. More...
|
| |
A zip file on the local file system.
Zip file iterators iterate over the zip entries in the zip file. From each zip entry, a read or write stream may be obtained to read from or modify the entry data.
If random read access is required over the entries of a zip file , it is better to use the Unzipper class directly instead of a ZipFile URI and iterator.