Go to the documentation of this file.
29 #ifndef __APKFileSystemArchive_H__
30 #define __APKFileSystemArchive_H__
34 #include <android/asset_manager.h>
StringVectorPtr list(bool recursive=true, bool dirs=false)
List all file names in the archive.
void remove(const String &filename) const
virtual ~APKFileSystemArchiveFactory()
bool exists(const String &filename)
Find out if the named file exists (note: fully qualified filename required)
DataStreamPtr open(const String &filename, bool readOnly=true) const
Open a stream on a given file.
Abstract factory class, archive codec plugins can register concrete subclasses of this.
StringVectorPtr find(const String &pattern, bool recursive=true, bool dirs=false)
Find all file or directory names matching a given pattern in this archive.
DataStreamPtr create(const String &filename) const
Create a new file (or overwrite one already there).
Archive * createInstance(const String &name, bool readOnly)
Creates a new object.
AAssetManager * mAssetMgr
void unload()
Unloads the archive.
FileInfoListPtr listFileInfo(bool recursive=true, bool dirs=false)
List all files in the archive with accompanying information.
APKFileSystemArchive(const String &name, const String &archType, AAssetManager *assetMgr)
AAssetManager * mAssetMgr
bool isCaseSensitive(void) const
Returns whether this archive is case sensitive in the way it matches files.
time_t getModifiedTime(const String &filename)
Retrieve the modification time of a given file.
const String & getType(void) const
Returns the factory type.
void load()
Loads the archive.
APKFileSystemArchiveFactory(AAssetManager *assetMgr)
void destroyInstance(Archive *arch)
Destroys an object which was created by this factory.
FileInfoListPtr findFileInfo(const String &pattern, bool recursive=true, bool dirs=false) const
Find all files or directories matching a given pattern in this archive and get some detailed informat...
Copyright © 2012 Torus Knot Software Ltd

This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 Unported License.
Last modified Tue Apr 13 2021 08:53:15