|
CEF C++ API Docs - Revision 1123 | ||||||
FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
CefBase | +--CefZipArchivein cef_zip_archive.h
Thread-safe class for accessing zip archive file contents. This class should not be used with large archive files because all data will be resident in memory at the same time. This implementation supports a restricted set of zip archive features: (1) Password-protected files are not supported. (2) All file names are stored and compared in lower case. (3) File ordering from the original zip archive is not maintained. This means that files from the same folder may not be located together in the file content map.
Inner Classes, Typedefs, and Enums | |
class |
CefZipArchive::File
Class representing a file in the archive. |
typedef |
CefZipArchive::FileMap
|
Constructor Summary | |
CefZipArchive()
Create a new object. |
|
virtual ~CefZipArchive()
|
Method Summary | |
void |
Clear()
Clears the contents of this object. |
CefRefPtr< CefZipArchive::File > |
GetFile( const CefString& fileName )
Returns the specified file. |
size_t |
GetFileCount()
Returns the number of files in the archive. |
size_t |
GetFiles( CefZipArchive::FileMap& map )
Returns the map of all files. |
bool |
HasFile( const CefString& fileName )
Returns true if the specified file exists and has contents. |
size_t |
Load( CefRefPtr< CefStreamReader > stream, bool overwriteExisting )
Load the contents of the specified zip archive stream into this object. |
bool |
RemoveFile( const CefString& fileName )
Removes the specified file. |
Methods inherited from class CefBase |
AddRef, Release, GetRefCt |
Constructor Detail |
public CefZipArchive();
public virtual ~CefZipArchive();
Method Detail |
public void Clear();
public CefRefPtr< CefZipArchive::File > GetFile( const CefString& fileName );
public size_t GetFileCount();
public size_t GetFiles( CefZipArchive::FileMap& map );
public bool HasFile( const CefString& fileName );
public size_t Load( CefRefPtr< CefStreamReader > stream, bool overwriteExisting );
public bool RemoveFile( const CefString& fileName );
|
CEF C++ API Docs - Revision 1123 | ||||||
FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |