Свойство | Type | Description | |
---|---|---|---|
Create | |||
Create | |||
CreateHardlink | void | ||
GetRelativePath | string | ||
RemoveExecutableBit | void | ||
SetDirectoryWriteTimes | void | ||
SetExecutableBit | void |
Méthode | Description | |
---|---|---|
Dispose ( ) : void |
Disposes the underlying Stream.
|
|
VerifySupport ( [ mimeType ) : void |
Verifies that a archives of a specific MIME type are supported.
|
Méthode | Description | |
---|---|---|
ArchiveExtractor ( [ target ) : System |
Prepares to extract an archive contained in a stream.
|
|
CombinePath ( [ relativePath ) : string |
Combines the extraction TargetDir path with the relative path inside the archive (ensuring only valid paths are returned).
|
|
CreateDirectory ( [ relativePath, System.DateTime lastWriteTime ) : void |
Creates a directory in the filesystem and sets its last write time.
|
|
CreateSymlink ( [ source, [ target ) : void |
Creates a symbolic link in the filesystem if possible; stores it in a FlagUtils.SymlinkFile otherwise.
|
|
Dispose ( bool disposing ) : void | ||
Finish ( ) : void |
Performs any tasks that were deferred to the end of the extraction process.
|
|
OpenFileWriteStream ( [ relativePath, bool executable = false ) : |
Creates a stream for writing an extracted file to the filesystem.
|
|
QueueHardlink ( [ source, [ target, bool executable = false ) : void |
Queues a hardlink for creation at the end of the extracton process. This enables handling links to files that have not been extracted yet.
|
|
StreamToFile ( [ stream, [ fileStream ) : void |
Helper method for WriteFile. Can be overwritten for archive formats that don't simply write a Stream to a file. |
|
WriteFile ( [ relativePath, long fileSize, System.DateTime lastWriteTime, [ stream, bool executable = false ) : void |
Writes a file to the filesystem and sets its last write time.
|
Méthode | Description | |
---|---|---|
Create ( [ stream, [ target, [ mimeType ) : |
||
Create ( [ path, [ target, [ mimeType = null, long startOffset ) : |
||
CreateHardlink ( [ source, [ target ) : void |
Creates a hardlink in the filesystem if possible; creates a copy otherwise.
|
|
GetRelativePath ( [ entryName ) : string | ||
RemoveExecutableBit ( string relativePath ) : void |
Marks a file as no longer executable using the filesystem if possible, an FlagUtils.XbitFile file otherwise.
|
|
SetDirectoryWriteTimes ( ) : void |
Sets the last write times of the directories that were recorded during extraction. This must be done in a separate step, since changing anything within a directory will affect its last write time. |
|
SetExecutableBit ( string relativePath ) : void |
Marks a file as executable using the filesystem if possible; stores it in a FlagUtils.XbitFile otherwise.
|
protected ArchiveExtractor ( [ target ) : System | ||
target | [ | The path to the directory to extract into. |
Résultat | System |
protected CombinePath ( [ relativePath ) : string | ||
relativePath | [ | A path relative to |
Résultat | string |
protected CreateDirectory ( [ relativePath, System.DateTime lastWriteTime ) : void | ||
relativePath | [ | A path relative to |
lastWriteTime | System.DateTime | The last write time to set. |
Résultat | void |
protected CreateSymlink ( [ source, [ target ) : void | ||
source | [ | A path relative to |
target | [ | The target the symbolic link shall point to relative to |
Résultat | void |
protected abstract Dispose ( bool disposing ) : void | ||
disposing | bool | |
Résultat | void |
protected OpenFileWriteStream ( [ relativePath, bool executable = false ) : |
||
relativePath | [ | A path relative to |
executable | bool | |
Résultat |
protected QueueHardlink ( [ source, [ target, bool executable = false ) : void | ||
source | [ | A path relative to |
target | [ | A path relative to |
executable | bool | |
Résultat | void |
protected StreamToFile ( [ stream, [ fileStream ) : void | ||
stream | [ | The stream to write to a file. |
fileStream | [ | Stream access to the file to write. |
Résultat | void |
public static VerifySupport ( [ mimeType ) : void | ||
mimeType | [ | The MIME type of archive format of the stream. |
Résultat | void |
protected WriteFile ( [ relativePath, long fileSize, System.DateTime lastWriteTime, [ stream, bool executable = false ) : void | ||
relativePath | [ | A path relative to |
fileSize | long | The length of the zip entries uncompressed data, needed because stream's Length property is always 0. |
lastWriteTime | System.DateTime | The last write time to set. |
stream | [ | The stream containing the file data to be written. |
executable | bool | |
Résultat | void |