ExpandBaseTask.

ExtractFile(Stream, string, string, DateTime, long) Method

Summary

Extracts a file entry from the specified stream.
Assembly
NAnt.Compression.dll
Namespace
NAnt.Compression.Tasks
Containing Type
ExpandBaseTask

Syntax

protected void ExtractFile(Stream inputStream, string destDirectory, string entryName, DateTime entryDate, long entrySize)

Remarks

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.

Parameters

Name Type Description
inputStream Stream The System.IO.Stream 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 DateTime The date of the entry.
entrySize long The uncompressed size of the entry.

Return Value

Type Description
void