TZipFileEntry class
Represents a file or directory added to a .ZIP file.
Declaration
TZipFileEntry = class(TCollectionItem)Inheritance
- TZipFileEntry
- TCollectionItem
- TPersistent
- TObject
Descends from it: TFullZipFileEntry
Description
TZipFileEntry is a
TCollectionItem descendant which represents a file or directory added to a .ZIP file archive. TZipFileEntry is the type used for items in the
Entries property in the
TZipFileEntries collection.
TZipFileEntry provides properties with metadata for the file or directory, including:
- ArchiveFileName
- Name of the file or directory in the .ZIP archive.
- UTF8ArchiveFileName
- Name of the file or directory in the .ZIP archive using UTF-8 encoding.
- DiskFileName
- Name of the file or directory on the local file system.
- UTF8DiskFileName
- Name of the file or directory using UTF-8 encoding.
- Size
- Size of the compressed file or directory in the .ZIP archive.
- DateTime
- The timestamp for file or directory in the .ZIP archive.
- OS
- Indicates the operating system device type / file system where the file or directory originated.
- Attributes
- File attributes for the entry.
- CompressionLevel
- Compression level applied to the content in the .ZIP archive.
- Stream
- TStream instance with the content for the entry.
Use IsDirectory to determine if the entry represents a directory.
Use IsLink to determine if the entry is a symbolic link on the local file system.
Properties
HdrPos | protected | |
NeedsZip64 | protected | |
Stream | public | Stream with the content for the entry. |
ArchiveFileName | published | Name of the file or directory in the .ZIP archive. |
UTF8ArchiveFileName | published | Archive filename as UTF8 string. |
DiskFileName | published | Name of the file or directory on the local file system. |
UTF8DiskFileName | published | Name of the file or directory on the local file system using UTF-8 encoding. |
Size | published | Size of the compressed content for the file or directory. |
DateTime | published | Timestamp for the file or directory in the .ZIP archive. |
OS | published | Indication of operating system/file system. |
Attributes | published | File attributes for the file or directory. |
CompressionLevel | published | Compression level applied to the content stored in the .ZIP archive. |
Methods
Create | public | Constructor for the class instance. |
IsDirectory | public | True if the entry is a directory on the local file system. |
IsLink | public | True if the directory is a symbolic link on the local file system. |
Assign | public | Copies property values from the specified persistent object. |
Inherited
From TCollectionItem (12)
Changed Collection Destroy DisplayName GetDisplayName GetNamePath GetOwner ID Index SetCollection SetDisplayName SetIndex
From TPersistent (5)
AssignTo DefineProperties FPOAttachObserver FPODetachObserver FPONotifyObservers
From TObject (40)
AfterConstruction BeforeDestruction CheckDisposed ClassInfo ClassName ClassNameIs ClassParent ClassType CleanupInstance DefaultHandler DefaultHandlerStr Dispatch DispatchStr Disposed DisposeOf Equals FieldAddress Free FreeInstance GetDisposed GetHashCode GetInterface GetInterfaceByStr GetInterfaceEntry GetInterfaceEntryByStr GetInterfaceTable GetInterfaceWeak GetLastCastErrorInfo InheritsFrom InitInstance InstanceSize MethodAddress MethodName newinstance QualifiedClassName SafeCallException StringMessageTable SystemHasExtendedRTTI ToString UnitName
An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.
