Package org.eclipse.cbi.common.util
Class ZipPosixPermissionFixer.CentralDirectoryHeader
- java.lang.Object
-
- com.google.common.collect.ForwardingObject
-
- org.eclipse.cbi.common.util.Record.Fowarding
-
- org.eclipse.cbi.common.util.ZipPosixPermissionFixer.CentralDirectoryHeader
-
- All Implemented Interfaces:
Record
- Enclosing class:
- ZipPosixPermissionFixer
static final class ZipPosixPermissionFixer.CentralDirectoryHeader extends Record.Fowarding
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description (package private) static class
ZipPosixPermissionFixer.CentralDirectoryHeader.Platform
0 - MS-DOS and OS/2 (FAT / VFAT / FAT32 file systems) 1 - Amiga 2 - OpenVMS 3 - UNIX 4 - VM/CMS 5 - Atari ST 6 - OS/2 H.P.F.S.-
Nested classes/interfaces inherited from interface org.eclipse.cbi.common.util.Record
Record.Fowarding
-
-
Field Summary
Fields Modifier and Type Field Description static RecordDefinition.Field
CFHS
static RecordDefinition.Field
CM
static RecordDefinition.Field
CRC32
static RecordDefinition.Field
CS
static RecordDefinition
DEFINITION
static RecordDefinition.Field
DNS
static RecordDefinition.Field
EF
static RecordDefinition.Field
EFA
static RecordDefinition.Field
EFL
static RecordDefinition.Field
FC
static RecordDefinition.Field
FCL
static RecordDefinition.Field
FN
static RecordDefinition.Field
FNL
static RecordDefinition.Field
GPBF
static RecordDefinition.Field
IFA
static RecordDefinition.Field
LMFD
static RecordDefinition.Field
LMFT
static RecordDefinition.Field
ROOLH
private static long
SIGNATURE
Directory entry signature (aka "central file header signature", section 4.3.12 APPNOTE.TXT)static RecordDefinition.Field
UCS
static RecordDefinition.Field
VMB
static RecordDefinition.Field
VNTE
-
Constructor Summary
Constructors Constructor Description CentralDirectoryHeader(Record record)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description com.google.common.primitives.UnsignedInteger
externalFileAttributes()
java.lang.String
filename()
int
majorVersion()
The lower byte indicates the ZIP specification version (the version of this document) supported by the software used to encode the file.int
minorVersion()
The lower byte indicates the ZIP specification version (the version of this document) supported by the software used to encode the file.ZipPosixPermissionFixer.CentralDirectoryHeader.Platform
platform()
The upper byte indicates the compatibility of the file attribute information.java.util.Set<java.nio.file.attribute.PosixFilePermission>
posixPermissions()
int
versionMadeBy()
-
Methods inherited from class org.eclipse.cbi.common.util.Record.Fowarding
delegate, size, stringValue, uint16Value, uint32Value, uint64Value
-
-
-
-
Field Detail
-
SIGNATURE
private static final long SIGNATURE
Directory entry signature (aka "central file header signature", section 4.3.12 APPNOTE.TXT)- See Also:
- Constant Field Values
-
CFHS
public static final RecordDefinition.Field CFHS
-
VMB
public static final RecordDefinition.Field VMB
-
VNTE
public static final RecordDefinition.Field VNTE
-
GPBF
public static final RecordDefinition.Field GPBF
-
CM
public static final RecordDefinition.Field CM
-
LMFT
public static final RecordDefinition.Field LMFT
-
LMFD
public static final RecordDefinition.Field LMFD
-
CRC32
public static final RecordDefinition.Field CRC32
-
CS
public static final RecordDefinition.Field CS
-
UCS
public static final RecordDefinition.Field UCS
-
FNL
public static final RecordDefinition.Field FNL
-
EFL
public static final RecordDefinition.Field EFL
-
FCL
public static final RecordDefinition.Field FCL
-
DNS
public static final RecordDefinition.Field DNS
-
IFA
public static final RecordDefinition.Field IFA
-
EFA
public static final RecordDefinition.Field EFA
-
ROOLH
public static final RecordDefinition.Field ROOLH
-
FN
public static final RecordDefinition.Field FN
-
EF
public static final RecordDefinition.Field EF
-
FC
public static final RecordDefinition.Field FC
-
DEFINITION
public static final RecordDefinition DEFINITION
-
-
Constructor Detail
-
CentralDirectoryHeader
public CentralDirectoryHeader(Record record)
-
-
Method Detail
-
versionMadeBy
public int versionMadeBy()
-
platform
public ZipPosixPermissionFixer.CentralDirectoryHeader.Platform platform()
The upper byte indicates the compatibility of the file attribute information. If the external file attributes are compatible with MS-DOS and can be read by PKZIP for DOS version 2.04g then this value will be zero. If these attributes are not compatible, then this value will identify the host system on which the attributes are compatible. Software can use this information to determine the line record format for text files etc.- Returns:
-
majorVersion
public int majorVersion()
The lower byte indicates the ZIP specification version (the version of this document) supported by the software used to encode the file. The value/10 indicates the major version number, and the value mod 10 is the minor version number.- Returns:
-
minorVersion
public int minorVersion()
The lower byte indicates the ZIP specification version (the version of this document) supported by the software used to encode the file. The value/10 indicates the major version number, and the value mod 10 is the minor version number.- Returns:
-
externalFileAttributes
public com.google.common.primitives.UnsignedInteger externalFileAttributes()
-
posixPermissions
public java.util.Set<java.nio.file.attribute.PosixFilePermission> posixPermissions()
-
filename
public java.lang.String filename()
-
-