Android Programming Press on the image to return to the main documentation page.

Archiver

Written by Fr\u00e9d\u00e9ric Leneuf-Magaud

List of types:

Archiver

Archiver


Events:

None

Members:


  AsyncGzip (inDir As String, inFileName As String, outDir As String, eventName As String)

  AsyncTarGzFolder (inDir As String, outDir As String, outArchiveName As String, eventName As String)

  AsyncUnGzip (inDir As String, inArchiveName As String, outDir As String, eventName As String)

  AsyncUnTarGz (inDir As String, inArchiveName As String, outDir As String, eventName As String)

  AsyncUnZip (inDir As String, inArchiveName As String, outDir As String, eventName As String)

  AsyncUnZipFiles (inDir As String, inArchiveName As String, outDir As String, outFileNames() As String, eventName As String)

  AsyncZipFiles (inDir As String, inFileNames() As String, outDir As String, outArchiveName As String, eventName As String)

  AsyncZipFolder (inDir As String, outDir As String, outArchiveName As String, eventName As String)

  BufferSize As Int

  Gzip (inDir As String, inFileName As String, outDir As String)

  ListZipEntries (inDir As String, inArchiveName As String) As Map

  NumberOfZipEntries (inDir As String, inArchiveName As String) As Int

  TarFiles (inDir As String, inFileNames() As String, outDir As String, outArchiveName As String) As Int

  TarFolder (inDir As String, outDir As String, outArchiveName As String) As Int

  TarGzFolder (inDir As String, outDir As String, outArchiveName As String) As Int

  UnGzip (inDir As String, inArchiveName As String, outDir As String)

  UnTar (inDir As String, inArchiveName As String, outDir As String) As Int

  UnTarGz (inDir As String, inArchiveName As String, outDir As String) As Int

  UnZip (inDir As String, inArchiveName As String, outDir As String, eventName As String) As Int

  UnZipFiles (inDir As String, inArchiveName As String, outDir As String, outFileNames() As String, eventName As String) As Int

  ZipFiles (inDir As String, inFileNames() As String, outDir As String, outArchiveName As String, eventName As String) As Int

  ZipFolder (inDir As String, outDir As String, outArchiveName As String, eventName As String) As Int

Members description:

AsyncGzip (inDir As String, inFileName As String, outDir As String, eventName As String)
Compresses the given file into a gzip archive (with a thread running in the background).
inDir & inFileName = location of the file to compress
outDir = destination folder of the gzip archive
eventName = prefix of the "GzipDone" event. When the job ends, an event is triggered. You can get it with:
Sub eventName_GzipDone(CompletedWithoutError As Boolean)
AsyncTarGzFolder (inDir As String, outDir As String, outArchiveName As String, eventName As String)
Compresses the given folder and its subfolders into a tar.gz archive (with a thread running in the background).
inDir = folder to compress
outDir & outArchiveName = location of the tar.gz archive (don't add an extension to the outFileName)
eventName = prefix of the "TarGzDone" event. When the job ends, an event is triggered. You can get it with:
Sub eventName_TarGzDone(CompletedWithoutError As Boolean, NbOfFiles As Int)
AsyncUnGzip (inDir As String, inArchiveName As String, outDir As String, eventName As String)
Uncompresses the given gzip archive (with a thread running in the background).
inDir & inArchiveName = location of the gzip archive
outDir = destination folder
eventName = prefix of the "UnGzipDone" event. When the job ends, an event is triggered. You can get it with:
Sub eventName_UnGzipDone(CompletedWithoutError As Boolean)
AsyncUnTarGz (inDir As String, inArchiveName As String, outDir As String, eventName As String)
Uncompresses the given tar.gz archive (with a thread running in the background).
inDir & inArchiveName = location of the tar.gz archive
outDir = destination folder
eventName = prefix of the "UnTarGzDone" event. When the job ends, an event is triggered. You can get it with:
Sub eventName_UnTarGzDone(CompletedWithoutError As Boolean, NbOfFiles As Int)
AsyncUnZip (inDir As String, inArchiveName As String, outDir As String, eventName As String)
Uncompresses the given zip archive (with a thread running in the background).
inDir & inArchiveName = location of the zip archive
outDir = destination folder
eventName = prefix of the "UnZipProgression" and "UnZipDone" events. An event is triggered for each file unzipped, and when the job ends. You can get these events with:
Sub eventName_UnZipProgression(Count As Int, FileName As String)
Sub eventName_UnZipDone(CompletedWithoutError As Boolean, NbOfFiles As Int)
AsyncUnZipFiles (inDir As String, inArchiveName As String, outDir As String, outFileNames() As String, eventName As String)
Extracts the given files from a zip archive (with a thread running in the background).
inDir & inArchiveName = location of the zip archive
outDir = destination folder
outFileNames = names of the files to extract (with their relative path)
eventName = prefix of the "UnZipProgression" and "UnZipDone" events. An event is triggered for each file unzipped, and when the job ends. You can get these events with:
Sub eventName_UnZipProgression(Count As Int, FileName As String)
Sub eventName_UnZipDone(CompletedWithoutError As Boolean, NbOfFiles As Int)
AsyncZipFiles (inDir As String, inFileNames() As String, outDir As String, outArchiveName As String, eventName As String)
Compresses the given files into a zip archive (with a thread running in the background).
inDir & inFileNames = location of the files to zip
outDir & outArchiveName = location of the zip archive
eventName = prefix of the "ZipProgression" and "ZipDone" events. An event is triggered for each processed file, and when the job ends. You can get these events with:
Sub eventName_ZipProgression(Count As Int, FileName As String)
Sub eventName_ZipDone(CompletedWithoutError As Boolean, NbOfFiles As Int)
AsyncZipFolder (inDir As String, outDir As String, outArchiveName As String, eventName As String)
Compresses the given folder and its subfolders into a zip archive (with a thread running in the background).
inDir = folder to zip
outDir & outArchiveName = location of the zip archive
eventName = prefix of the "ZipProgression" and "ZipDone" events. An event is triggered for each processed file, and when the job ends. You can get these events with:
Sub eventName_ZipProgression(Count As Int, FileName As String)
Sub eventName_ZipDone(CompletedWithoutError As Boolean, NbOfFiles As Int)
BufferSize As Int
Gets/sets the buffer size. By default: 2048 bytes.
Gzip (inDir As String, inFileName As String, outDir As String)
Compresses the given file into a gzip archive.
inDir & inFileName = location of the file to compress
outDir = destination folder of the gzip archive
ListZipEntries (inDir As String, inArchiveName As String) As Map
Lists the entries of the given zip archive.
Returns a map with all the entries found.
Map structure: key=filename, value=long array (0=uncompressed size, 1=compressed size, 2=CRC)
inDir & inArchiveName = location of the zip archive
NumberOfZipEntries (inDir As String, inArchiveName As String) As Int
Returns the number of files in the given zip archive.
TarFiles (inDir As String, inFileNames() As String, outDir As String, outArchiveName As String) As Int
Packs the given files into a tar archive.
Returns the number of files in the tar archive.
inDir & inFileNames = location of the files to tar
outDir & outArchiveName = location of the tar archive
TarFolder (inDir As String, outDir As String, outArchiveName As String) As Int
Packs the given folder and its subfolders into a tar archive.
Returns the number of files in the tar archive.
inDir = folder to tar
outDir & outArchiveName = location of the tar archive
TarGzFolder (inDir As String, outDir As String, outArchiveName As String) As Int
Compresses the given folder and its subfolders into a tar.gz archive.
Returns the number of files in the tar.gz archive.
inDir = folder to compress
outDir & outArchiveName = location of the tar.gz archive (don't add an extension to the archive name)
UnGzip (inDir As String, inArchiveName As String, outDir As String)
Uncompresses the given gzip archive.
inDir & inArchiveName = location of the gzip archive
outDir = destination folder
UnTar (inDir As String, inArchiveName As String, outDir As String) As Int
Unpacks the given tar archive.
Returns the number of files copied into the destination folder.
inDir & inArchiveName = location of the tar archive
outDir = destination folder
UnTarGz (inDir As String, inArchiveName As String, outDir As String) As Int
Uncompresses the given tar.gz archive.
Returns the number of files copied into the destination folder.
inDir & inArchiveName = location of the tar.gz archive
outDir = destination folder
UnZip (inDir As String, inArchiveName As String, outDir As String, eventName As String) As Int
Uncompresses the given zip archive.
Returns the number of files copied into the destination folder.
inDir & inArchiveName = location of the zip archive
outDir = destination folder
eventName = prefix of the "UnZipProgression" event. An event is triggered for each file unzipped. You can get these events with:
Sub eventName_UnZipProgression(Count As Int, FileName As String)
UnZipFiles (inDir As String, inArchiveName As String, outDir As String, outFileNames() As String, eventName As String) As Int
Extracts the given files from a zip archive.
Returns the number of files copied into the destination folder.
inDir & inArchiveName = location of the zip archive
outDir = destination folder
outFileNames = names of the files to extract (with their relative path)
eventName = prefix of the "UnZipProgression" event. An event is triggered for each file unzipped. You can get these events with:
Sub eventName_UnZipProgression(Count As Int, FileName As String)
ZipFiles (inDir As String, inFileNames() As String, outDir As String, outArchiveName As String, eventName As String) As Int
Compresses the given files into a zip archive.
Returns the number of files in the zip archive.
inDir & inFileNames = location of the files to zip
outDir & outArchiveName = location of the zip archive
eventName = prefix of the "ZipProgression" event. An event is triggered for each processed file. You can get these events with:
Sub eventName_ZipProgression(Count As Int, FileName As String)
ZipFolder (inDir As String, outDir As String, outArchiveName As String, eventName As String) As Int
Compresses the given folder and its subfolders into a zip archive.
Returns the number of files in the zip archive.
inDir = folder to zip
outDir & outArchiveName = location of the zip archive
eventName = prefix of the "ZipProgression" event. An event is triggered for each processed file. You can get these events with:
Sub eventName_ZipProgression(Count As Int, FileName As String)
Top