public class ZipCompletionScanner extends Object
Modifier and Type | Class and Description |
---|---|
static class |
ZipCompletionScanner.NonScannableZipException |
Modifier and Type | Field and Description |
---|---|
static int |
CEN_LOC_OFFSET
Position of the associated local file's offset in the central directory file header
|
static int |
CENLEN
Length of the fixed portion of a central directory file header
|
static long |
CENSIG
Central directory file header marker
|
static int |
CENSIZ
Position of the associated local file's compressed size in the central directory file header
|
static int |
END_CENSTART
Position of the 'start of central directory' field in an end of central directory record
|
static int |
END_COMMENTLEN
Position of the comment length in an end of central directory record
|
static int |
ENDLEN
Length of the fixed portion of an End of central directory record
|
static long |
ENDSIG
End of central directory record marker
|
static long |
EXTSIG
Extra data descriptor marker
|
static int |
LOC_EXTFLDLEN
Position of the extra field length in a local file header
|
static int |
LOC_FILENAMELEN
Position of the filename length in a local file header
|
static int |
LOCLEN
Length of the fixed portion of a local file header
|
static long |
LOCSIG
Local file header marker
|
static long |
ZIP64_MARKER
END_CENSTART value that indicates the zip is in ZIP 64 format
|
Modifier and Type | Method and Description |
---|---|
static boolean |
isCompleteZip(File file)
Scans the given file looking for a complete zip file format end of central directory record.
|
public static final long LOCSIG
public static final long EXTSIG
public static final long CENSIG
public static final long ENDSIG
public static final int LOCLEN
public static final int CENLEN
public static final int ENDLEN
public static final int LOC_FILENAMELEN
public static final int LOC_EXTFLDLEN
public static final int CENSIZ
public static final int CEN_LOC_OFFSET
public static final int END_CENSTART
public static final long ZIP64_MARKER
public static final int END_COMMENTLEN
public static boolean isCompleteZip(File file) throws IOException, ZipCompletionScanner.NonScannableZipException
file
- the fileIOException
ZipCompletionScanner.NonScannableZipException
Copyright © 2023 JBoss by Red Hat. All rights reserved.