Class ZipArchiveOutputStream.CurrentEntry
java.lang.Object
org.apache.commons.compress.archivers.zip.ZipArchiveOutputStream.CurrentEntry
- Enclosing class:
- ZipArchiveOutputStream
Structure collecting information for the entry that is
currently being written.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate long
Number of bytes read for the current entry (can't rely on Deflater#getBytesRead) when using DEFLATED.private boolean
Whether current entry was the first one using ZIP64 features.private long
Data for local header dataprivate final ZipArchiveEntry
Current ZIP entry.private boolean
Whether write() has been called at all.private long
Offset for CRC entry in the local file header data for the current entry starts here. -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
entry
Current ZIP entry. -
localDataStart
private long localDataStartOffset for CRC entry in the local file header data for the current entry starts here. -
dataStart
private long dataStartData for local header data -
bytesRead
private long bytesReadNumber of bytes read for the current entry (can't rely on Deflater#getBytesRead) when using DEFLATED. -
causedUseOfZip64
private boolean causedUseOfZip64Whether current entry was the first one using ZIP64 features. -
hasWritten
private boolean hasWrittenWhether write() has been called at all.In order to create a valid archive
closeArchiveEntry
will write an empty array to get the CRC right if nothing has been written to the stream at all.
-
-
Constructor Details
-
CurrentEntry
-