C# Class NAnt.Compression.Tasks.ExpandBaseTask

Summary description for ExpandTask.
Inheritance: NAnt.Core.Task
Exibir arquivo Open project: skolima/NAnt

Private Properties

Property Type Description

Protected Methods

Method Description
ExtractDirectory ( Stream inputStream, string destDirectory, string entryName, System.DateTime entryDate ) : void

Extracts a directory entry from the specified stream.

ExtractFile ( Stream inputStream, string destDirectory, string entryName, System.DateTime entryDate, long entrySize ) : void

Extracts a file entry from the specified stream.

We cannot rely on the fact that the directory entry of a given file is created before the file is extracted, so we should create the directory if it doesn't yet exist.

Method Details

ExtractDirectory() protected method

Extracts a directory entry from the specified stream.
/// The destination directory for the entry could not be created. ///
protected ExtractDirectory ( Stream inputStream, string destDirectory, string entryName, System.DateTime entryDate ) : void
inputStream Stream The containing the directory entry.
destDirectory string The directory where to create the subdirectory.
entryName string The name of the directory entry.
entryDate System.DateTime The date of the entry.
return void

ExtractFile() protected method

Extracts a file entry from the specified stream.
We cannot rely on the fact that the directory entry of a given file is created before the file is extracted, so we should create the directory if it doesn't yet exist.
/// The destination directory for the entry could not be created. /// -or- /// The entry could not be extracted. ///
protected ExtractFile ( Stream inputStream, string destDirectory, string entryName, System.DateTime entryDate, long entrySize ) : void
inputStream Stream The containing the compressed entry.
destDirectory string The directory where to store the expanded file.
entryName string The name of the entry including directory information.
entryDate System.DateTime The date of the entry.
entrySize long The uncompressed size of the entry.
return void