C# Class System.IO.Compression.ZipArchiveEntry

Afficher le fichier Open project: dotnet/corefx Class Usage Examples

Private Properties

Свойство Type Description
CloseStreams void
DecodeEntryName string
EncodeEntryName byte[]
GetDataCompressor CheckSumAndSizeWriteStream
GetDataDecompressor Stream
GetFileName_Unix string
GetFileName_Windows string
IsOpenable bool
LoadLocalHeaderExtraFieldAndCompressedBytesIfNeeded bool
OpenInReadMode Stream
OpenInUpdateMode Stream
OpenInWriteMode Stream
SizesTooLarge bool
ThrowIfInvalidArchive void
ThrowIfNotOpenable void
UnloadStreams void
VersionToExtractAtLeast void
WriteAndFinishLocalEntry void
WriteCentralDirectoryFileHeader void
WriteCrcAndSizesInLocalHeader void
WriteDataDescriptor void
WriteLocalFileHeader bool
WriteLocalFileHeaderAndDataIfNeeded void
ZipArchiveEntry
ZipArchiveEntry System.Collections.Generic
ZipArchiveEntry System.Collections.Generic
ZipArchiveEntry System.Collections.Generic
ZipArchiveEntry System.Collections.Generic

Méthodes publiques

Méthode Description
Delete ( ) : void
Open ( ) : Stream

Opens the entry. If the archive that the entry belongs to was opened in Read mode, the returned stream will be readable, and it may or may not be seekable. If Create mode, the returned stream will be writable and not seekable. If Update mode, the returned stream will be readable, writable, seekable, and support SetLength.

Open ( ) : System.IO.Stream
ToString ( ) : string

Private Methods

Méthode Description
CloseStreams ( ) : void
DecodeEntryName ( byte entryNameBytes ) : string
EncodeEntryName ( string entryName, bool &isUTF8 ) : byte[]
GetDataCompressor ( Stream backingStream, bool leaveBackingStreamOpen, EventHandler onClose ) : CheckSumAndSizeWriteStream
GetDataDecompressor ( Stream compressedStreamToRead ) : Stream
GetFileName_Unix ( string path ) : string

Gets the file name of the path based on Unix path separator characters

GetFileName_Windows ( string path ) : string

Gets the file name of the path based on Windows path separator characters

IsOpenable ( bool needToUncompress, bool needToLoadIntoMemory, string &message ) : bool
LoadLocalHeaderExtraFieldAndCompressedBytesIfNeeded ( ) : bool
OpenInReadMode ( bool checkOpenable ) : Stream
OpenInUpdateMode ( ) : Stream
OpenInWriteMode ( ) : Stream
SizesTooLarge ( ) : bool
ThrowIfInvalidArchive ( ) : void
ThrowIfNotOpenable ( bool needToUncompress, bool needToLoadIntoMemory ) : void
UnloadStreams ( ) : void
VersionToExtractAtLeast ( ZipVersionNeededValues value ) : void
WriteAndFinishLocalEntry ( ) : void
WriteCentralDirectoryFileHeader ( ) : void
WriteCrcAndSizesInLocalHeader ( bool zip64HeaderUsed ) : void
WriteDataDescriptor ( ) : void
WriteLocalFileHeader ( bool isEmptyFile ) : bool
WriteLocalFileHeaderAndDataIfNeeded ( ) : void
ZipArchiveEntry ( )
ZipArchiveEntry ( ZipArchive archive, ZipCentralDirectoryFileHeader cd ) : System.Collections.Generic
ZipArchiveEntry ( ZipArchive archive, ZipCentralDirectoryFileHeader cd, CompressionLevel compressionLevel ) : System.Collections.Generic
ZipArchiveEntry ( ZipArchive archive, string entryName ) : System.Collections.Generic
ZipArchiveEntry ( ZipArchive archive, string entryName, CompressionLevel compressionLevel ) : System.Collections.Generic

Method Details

Delete() public méthode

public Delete ( ) : void
Résultat void

Open() public méthode

Opens the entry. If the archive that the entry belongs to was opened in Read mode, the returned stream will be readable, and it may or may not be seekable. If Create mode, the returned stream will be writable and not seekable. If Update mode, the returned stream will be readable, writable, seekable, and support SetLength.
The entry is already currently open for writing. -or- The entry has been deleted from the archive. -or- The archive that this entry belongs to was opened in ZipArchiveMode.Create, and this entry has already been written to once. The entry is missing from the archive or is corrupt and cannot be read. -or- The entry has been compressed using a compression method that is not supported. The ZipArchive that this entry belongs to has been disposed.
public Open ( ) : Stream
Résultat Stream

Open() public méthode

public Open ( ) : System.IO.Stream
Résultat System.IO.Stream

ToString() public méthode

public ToString ( ) : string
Résultat string