public static class ZipCentralDirectoryEndInfo.Builder extends Object
ZipCentralDirectoryEndInfo
.Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
ZipCentralDirectoryEndInfo |
build()
Build an instance of the end information.
|
static ZipCentralDirectoryEndInfo.Builder |
fromCentralDirectoryEnd(Zip64CentralDirectoryEnd end)
Create a builder from a Zip64 central-directory end.
|
static ZipCentralDirectoryEndInfo.Builder |
fromCentralDirectoryEnd(ZipCentralDirectoryEnd end)
Create a builder from a central-directory end.
|
String |
getComment()
For Zip32 end information.
|
byte[] |
getCommentBytes()
For Zip32 end information.
|
int |
getDiskNumber() |
int |
getDiskNumberStart() |
byte[] |
getExtensibleData()
Field only for Zip64 formats.
|
int |
getNumberDisks()
For zip64 end locator information.
|
int |
getVersionMade()
Field only for Zip64 formats.
|
int |
getVersionNeeded()
Field only for Zip64 formats.
|
boolean |
hasZip64Values()
Return whether or not the values stored in this directory end require that we add a
Zip64CentralDirectoryEnd and Zip64CentralDirectoryEndLocator before the end. |
boolean |
isZip64()
Whether or not we should write a zip64 end block.
|
void |
setComment(String comment)
For Zip32 end information.
|
void |
setCommentBytes(byte[] commentBytes)
For Zip32 end information.
|
void |
setDiskNumber(int diskNumber) |
void |
setDiskNumberStart(int diskNumberStart) |
void |
setExtensibleData(byte[] extensibleData)
Field only for Zip64 formats.
|
void |
setNumberDisks(int numberDisks)
For zip64 end locator information.
|
void |
setVersionMade(int versionMade)
Field only for Zip64 formats.
|
void |
setVersionNeeded(int versionNeeded)
Field only for Zip64 formats.
|
void |
setZip64(boolean zip64)
Whether or not we should write a zip64 end and locator blocks.
|
ZipCentralDirectoryEndInfo.Builder |
withComment(String comment)
For Zip32 end information.
|
ZipCentralDirectoryEndInfo.Builder |
withCommentBytes(byte[] commentBytes)
For Zip32 end information.
|
ZipCentralDirectoryEndInfo.Builder |
withDiskNumber(int diskNumber) |
ZipCentralDirectoryEndInfo.Builder |
withDiskNumberStart(int diskNumberStart) |
ZipCentralDirectoryEndInfo.Builder |
withExtensibleData(byte[] extensibleData)
Field only for Zip64 formats.
|
ZipCentralDirectoryEndInfo.Builder |
withNumberDisks(int numberDisks)
For zip64 end locator information.
|
ZipCentralDirectoryEndInfo.Builder |
withVersionMade(int versionMade)
Field only for Zip64 formats.
|
ZipCentralDirectoryEndInfo.Builder |
withVersionNeeded(int versionNeeded)
Field only for Zip64 formats.
|
ZipCentralDirectoryEndInfo.Builder |
withZip64(boolean zip64)
See the
setZip64(boolean) for more information. |
public static ZipCentralDirectoryEndInfo.Builder fromCentralDirectoryEnd(ZipCentralDirectoryEnd end)
public static ZipCentralDirectoryEndInfo.Builder fromCentralDirectoryEnd(Zip64CentralDirectoryEnd end)
public ZipCentralDirectoryEndInfo build()
public boolean hasZip64Values()
Zip64CentralDirectoryEnd
and Zip64CentralDirectoryEndLocator
before the end.public boolean isZip64()
public void setZip64(boolean zip64)
public ZipCentralDirectoryEndInfo.Builder withZip64(boolean zip64)
setZip64(boolean)
for more information.public int getVersionMade()
public void setVersionMade(int versionMade)
public ZipCentralDirectoryEndInfo.Builder withVersionMade(int versionMade)
public int getVersionNeeded()
public void setVersionNeeded(int versionNeeded)
public ZipCentralDirectoryEndInfo.Builder withVersionNeeded(int versionNeeded)
public int getDiskNumber()
public void setDiskNumber(int diskNumber)
public ZipCentralDirectoryEndInfo.Builder withDiskNumber(int diskNumber)
public int getDiskNumberStart()
public void setDiskNumberStart(int diskNumberStart)
public ZipCentralDirectoryEndInfo.Builder withDiskNumberStart(int diskNumberStart)
public byte[] getCommentBytes()
public void setCommentBytes(byte[] commentBytes)
public ZipCentralDirectoryEndInfo.Builder withCommentBytes(byte[] commentBytes)
public String getComment()
public void setComment(String comment)
public ZipCentralDirectoryEndInfo.Builder withComment(String comment)
public byte[] getExtensibleData()
public void setExtensibleData(byte[] extensibleData)
public ZipCentralDirectoryEndInfo.Builder withExtensibleData(byte[] extensibleData)
public int getNumberDisks()
public void setNumberDisks(int numberDisks)
public ZipCentralDirectoryEndInfo.Builder withNumberDisks(int numberDisks)
This documentation content is licensed by Gray Watson under the Creative Commons Attribution-Share Alike 3.0 License.