public class ZipCentralDirectoryEnd extends Object
Modifier and Type | Class and Description |
---|---|
static class |
ZipCentralDirectoryEnd.Builder
Builder for
ZipCentralDirectoryEnd . |
Modifier and Type | Field and Description |
---|---|
static int |
MINIMUM_READ_SIZE
This is the minimum size that this header will take on disk.
|
Constructor and Description |
---|
ZipCentralDirectoryEnd(boolean needsZip64,
int diskNumber,
int diskNumberStart,
int numRecordsOnDisk,
int numRecordsTotal,
long directorySize,
long directoryOffset,
byte[] commentBytes) |
Modifier and Type | Method and Description |
---|---|
static ZipCentralDirectoryEnd.Builder |
builder()
Make a builder for this class.
|
String |
getComment() |
byte[] |
getCommentBytes() |
long |
getDirectoryOffset() |
long |
getDirectorySize() |
int |
getDiskNumber() |
int |
getDiskNumberStart() |
int |
getNumRecordsOnDisk() |
int |
getNumRecordsTotal() |
boolean |
isNeedsZip64()
Return whether or not the values stored in this end record are set to 0xFFFF or 0xFFFFFFFF so need a Zip64 end
written out.
|
static ZipCentralDirectoryEnd |
read(RewindableInputStream inputStream)
Read one from the input-stream.
|
void |
write(OutputStream outputStream)
Write to the output-stream.
|
public static final int MINIMUM_READ_SIZE
public ZipCentralDirectoryEnd(boolean needsZip64, int diskNumber, int diskNumberStart, int numRecordsOnDisk, int numRecordsTotal, long directorySize, long directoryOffset, byte[] commentBytes)
public static ZipCentralDirectoryEnd.Builder builder()
public static ZipCentralDirectoryEnd read(RewindableInputStream inputStream) throws IOException
IOException
public void write(OutputStream outputStream) throws IOException
IOException
public boolean isNeedsZip64()
public int getDiskNumber()
public int getDiskNumberStart()
public int getNumRecordsOnDisk()
public int getNumRecordsTotal()
public long getDirectorySize()
public long getDirectoryOffset()
public byte[] getCommentBytes()
public String getComment()
This documentation content is licensed by Gray Watson under the Creative Commons Attribution-Share Alike 3.0 License.