Package net.sf.sevenzipjbinding
Enum Class PropID
- All Implemented Interfaces:
Serializable,Comparable<PropID>,Constable
Enumeration of possible archive and archive-item properties.
- Since:
- 4.65-1
- Author:
- Boris Brodski
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classWindows file attribute bit mask.Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionArchive item or file attributes.Date and time of the file creation.Flag indicating whether an item is encrypted or not.Group (owner) of the file.
Type:Stringnullwill be returned, if current archive type doesn't support this property.Unknown purposeRepresent a hard link.Iftruedelete corresponding file or directory during extraction.Flag indicating whether an item represents a folder or not.Date and time of last access of the file.Date and time the file was last time modified.
Type:Datenullwill be returned, if current archive type doesn't support this property.InIArchiveOpenCallback: Name of the volume to getDummy property1.Dummy property2.Size of the packed (compressed) item in the archive.
NOTE: for solid 7z archives, several items share a single compressed stream, so a per-item packed size is undefined andnullis returned for those items (only some items, or the containing block, report a value).Full path, name and extension of the file inside the archive.Posix attributes.
Type:Integernullwill be returned, if current archive type doesn't support this property.Uncompressed size of the item in bytes.Represent a symbolic link.Unknown PropID.User (owner) of the file.
Type:Stringnullwill be returned, if current archive type doesn't support this property. -
Method Summary
Modifier and TypeMethodDescriptionstatic PropIDgetPropIDByIndex(int propIDIndex) Get enumeration element by native property indexintNative index of the propertystatic PropIDReturns the enum constant of this class with the specified name.static PropID[]values()Returns an array containing the constants of this enum class, in the order they are declared.Methods inherited from class java.lang.Enum
compareTo, describeConstable, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
-
Enum Constant Details
-
NO_PROPERTY1
Dummy property1. First real property should have an item 2. So skip the position 2. -
NO_PROPERTY2
Dummy property2. First real property should have an item 2. So skip the position 1. -
HANDLER_ITEM_INDEX
Unknown purpose -
PATH
Full path, name and extension of the file inside the archive. Example:'dir/file.ext'. UseFile.separatorfor better cross-platform compatibility. Please note that stream archive formats such as gzip do not support this property, since they always compress a single file (or stream).
Type:String.nullwill be returned, if current archive type doesn't support this property. -
NAME
InIArchiveOpenCallback: Name of the volume to get -
EXTENSION
-
IS_FOLDER
Flag indicating whether an item represents a folder or not. Please note that some archive formats do not define special items for folders. In this case you may get an item with a path'dir/file'without having an item for'dir'at all.
Type:Boolean.trueif item is a folder, otherwisefalse.Boolean.FALSEis returned, if archive format doesn't support this property. This property is nevernull. -
SIZE
Uncompressed size of the item in bytes. Type:Longnullwill be returned, if current archive type doesn't support this property. -
PACKED_SIZE
Size of the packed (compressed) item in the archive.
NOTE: for solid 7z archives, several items share a single compressed stream, so a per-item packed size is undefined andnullis returned for those items (only some items, or the containing block, report a value). A value of0likewise means the item adds no separate compressed data.
Type:Long.nullwill be returned, if the current archive type doesn't support this property or if the size is not defined for this item (see the note above). -
ATTRIBUTES
Archive item or file attributes. SeePropID.AttributesBitMaskfor the supported bit masks.
Type:Integernullwill be returned, if current archive type doesn't support this property.
Compression: The flagPropID.AttributesBitMask.FILE_ATTRIBUTE_DIRECTORYshould be consistent with theIOutItem7z.getPropertyIsDir()property. -
CREATION_TIME
Date and time of the file creation.
Type:Datenullwill be returned, if current archive type doesn't support this property. -
LAST_ACCESS_TIME
Date and time of last access of the file.
Type:Datenullwill be returned, if current archive type doesn't support this property. -
LAST_MODIFICATION_TIME
Date and time the file was last time modified.
Type:Datenullwill be returned, if current archive type doesn't support this property. -
SOLID
-
COMMENTED
-
ENCRYPTED
Flag indicating whether an item is encrypted or not.
Type:Boolean.trueif item is encrypted, otherwisefalse.Boolean.FALSEis returned, if archive format doesn't support this property. This property is nevernull. -
SPLIT_BEFORE
-
SPLIT_AFTER
-
DICTIONARY_SIZE
-
CRC
-
TYPE
-
IS_ANTI
Iftruedelete corresponding file or directory during extraction. Supported only byArchiveFormat.SEVEN_ZIP.
Type:Booleannullwill be returned, if current archive type doesn't support this property. -
METHOD
-
HOST_OS
-
FILE_SYSTEM
-
USER
User (owner) of the file.
Type:Stringnullwill be returned, if current archive type doesn't support this property. -
GROUP
Group (owner) of the file.
Type:Stringnullwill be returned, if current archive type doesn't support this property. -
BLOCK
-
COMMENT
-
POSITION
-
PREFIX
-
NUM_SUB_DIRS
-
NUM_SUB_FILES
-
UNPACK_VER
-
VOLUME
-
IS_VOLUME
-
OFFSET
-
LINKS
-
NUM_BLOCKS
-
NUM_VOLUMES
-
TIME_TYPE
-
BIT64
-
BIG_ENDIAN
-
CPU
-
PHY_SIZE
-
HEADERS_SIZE
-
CHECKSUM
-
CHARACTS
-
VA
-
ID
-
SHORT_NAME
-
CREATOR_APP
-
SECTOR_SIZE
-
POSIX_ATTRIB
Posix attributes.
Type:Integernullwill be returned, if current archive type doesn't support this property. -
SYM_LINK
Represent a symbolic link. Used for example in Tar archives. -
ERROR
-
TOTAL_SIZE
-
FREE_SPACE
-
CLUSTER_SIZE
-
VOLUME_NAME
-
LOCAL_NAME
-
PROVIDER
-
NT_SECURE
-
IS_ALT_STREAM
-
IS_AUX
-
IS_DELETED
-
IS_TREE
-
SHA1
-
SHA256
-
ERROR_TYPE
-
NUM_ERRORS
-
ERROR_FLAGS
-
WARNING_FLAGS
-
WARNING
-
NUM_STREAMS
-
NUM_ALT_STREAMS
-
ALT_STREAMS_SIZE
-
VIRTUAL_SIZE
-
UNPACK_SIZE
-
TOTAL_PHY_SIZE
-
VOLUME_INDEX
-
SUB_TYPE
-
SHORT_COMMENT
-
CODE_PAGE
-
IS_NOT_ARC_TYPE
-
PHY_SIZE_CANT_BE_DETECTED
-
ZEROS_TAIL_IS_ALLOWED
-
TAIL_SIZE
-
EMBEDDED_STUB_SIZE
-
NT_REPARSE
-
HARD_LINK
Represent a hard link. Used for example in Tar archives. -
INODE
-
STREAM_ID
-
READ_ONLY
-
OUT_NAME
-
COPY_LINK
-
NUM_DEFINED
-
USER_DEFINED
-
UNKNOWN
Unknown PropID. This PropID shouldn't be used.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-
getPropIDIndex
public int getPropIDIndex()Native index of the property- Returns:
- Native index of the property
-
getPropIDByIndex
Get enumeration element by native property index- Parameters:
propIDIndex- native property index- Returns:
- enumeration element
-