Class ZipArchiveOutputStream.CurrentEntry
- java.lang.Object
-
- org.apache.commons.compress.archivers.zip.ZipArchiveOutputStream.CurrentEntry
-
- Enclosing class:
- ZipArchiveOutputStream
private static final class ZipArchiveOutputStream.CurrentEntry extends java.lang.ObjectStructure collecting information for the entry that is currently being written.
-
-
Field Summary
Fields Modifier and Type Field Description private longbytesReadNumber of bytes read for the current entry (can't rely on Deflater#getBytesRead) when using DEFLATED.private booleancausedUseOfZip64Whether current entry was the first one using ZIP64 features.private longdataStartData for local header dataprivate ZipArchiveEntryentryCurrent ZIP entry.private booleanhasWrittenWhether write() has been called at all.private longlocalDataStartOffset for CRC entry in the local file header data for the current entry starts here.
-
Constructor Summary
Constructors Modifier Constructor Description privateCurrentEntry(ZipArchiveEntry entry)
-
-
-
Field Detail
-
entry
private final ZipArchiveEntry entry
Current ZIP entry.
-
localDataStart
private long localDataStart
Offset for CRC entry in the local file header data for the current entry starts here.
-
dataStart
private long dataStart
Data for local header data
-
bytesRead
private long bytesRead
Number of bytes read for the current entry (can't rely on Deflater#getBytesRead) when using DEFLATED.
-
causedUseOfZip64
private boolean causedUseOfZip64
Whether current entry was the first one using ZIP64 features.
-
hasWritten
private boolean hasWritten
Whether write() has been called at all.In order to create a valid archive
closeArchiveEntrywill write an empty array to get the CRC right if nothing has been written to the stream at all.
-
-
Constructor Detail
-
CurrentEntry
private CurrentEntry(ZipArchiveEntry entry)
-
-