Overview   Project   Class   Tree   Index 
CEF3 C++ API Docs - Version 75.1.4+g4210896+chromium-75.0.3770.100
FRAMES    NO FRAMES
SUMMARY:  INNER | FIELD | CONSTR | METHOD

(default)
Class CefZipArchive

base::RefCountedThreadSafe
   |
   +--CefZipArchive

   in cef_zip_archive.h

class CefZipArchive
extends base::RefCountedThreadSafe

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) All file names are stored and compared in lower case. (2) 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.
private  ~CefZipArchive()
          
 
Method Summary
 void Clear()
          Clears the contents of this object.
 CefRefPtr< CefZipArchive::File > GetFile( const CefString& fileName ) const
          Returns the specified file.
 size_t GetFileCount() const
          Returns the number of files in the archive.
 size_t GetFiles( CefZipArchive::FileMap& map ) const
          Returns the map of all files.
 bool HasFile( const CefString& fileName ) const
          Returns true if the specified file exists and has contents.
 size_t Load( CefRefPtr< CefStreamReader > stream, const CefString& password, bool overwriteExisting )
          Load the contents of the specified zip archive stream into this object.
 bool RemoveFile( const CefString& fileName )
          Removes the specified file.
 

Constructor Detail

CefZipArchive

public CefZipArchive();
Create a new object.

~CefZipArchive

private ~CefZipArchive();


Method Detail

Clear

public void Clear();
Clears the contents of this object.

GetFile

public CefRefPtr< CefZipArchive::File > GetFile( const CefString& fileName ) const;
Returns the specified file.

GetFileCount

public size_t GetFileCount() const;
Returns the number of files in the archive.

GetFiles

public size_t GetFiles( CefZipArchive::FileMap& map ) const;
Returns the map of all files.

HasFile

public bool HasFile( const CefString& fileName ) const;
Returns true if the specified file exists and has contents.

Load

public size_t Load( CefRefPtr< CefStreamReader > stream, const CefString& password, bool overwriteExisting );
Load the contents of the specified zip archive stream into this object. If the zip archive requires a password then provide it via |password|. If |overwriteExisting| is true then any files in this object that also exist in the specified archive will be replaced with the new files. Returns the number of files successfully loaded.

RemoveFile

public bool RemoveFile( const CefString& fileName );
Removes the specified file.

 Overview   Project   Class   Tree   Index 
CEF3 C++ API Docs - Version 75.1.4+g4210896+chromium-75.0.3770.100
FRAMES    NO FRAMES
SUMMARY:  INNER | FIELD | CONSTR | METHOD

Chromium Embedded Framework (CEF) Copyright © 2016 Marshall A. Greenblatt