public static class ZipCentralDirectoryFileInfo.Builder extends Object
ZipCentralDirectoryFileInfo
.Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
ZipCentralDirectoryFileInfo.Builder |
addExternalFileAttributes(int attributes)
Add the attributes parameter to the existing externalFileAttributes.
|
ZipCentralDirectoryFileInfo |
build()
Build an instance of the central-directory file info.
|
static ZipCentralDirectoryFileInfo.Builder |
fromCentralDirectoryFileEntry(ZipCentralDirectoryFileEntry entry)
Create a builder from an existing central-directory file-entry.
|
static ZipCentralDirectoryFileInfo.Builder |
fromFile(File file)
Create a builder from a file which sets the externalFileAttributes.
|
String |
getComment() |
byte[] |
getCommentBytes() |
int |
getDiskNumberStart() |
int |
getExternalFileAttributes() |
int |
getInternalFileAttributes() |
Platform |
getPlatformMade() |
int |
getVersionMade() |
int |
getVersionMadeMajorMinor() |
int |
getVersionNeeded() |
boolean |
isTextFile()
Gets from the internalFileAttributes.
|
void |
setComment(String comment) |
void |
setCommentBytes(byte[] commentBytes) |
void |
setDiskNumberStart(int diskNumberStart) |
void |
setExternalAttributesFromFile(File file)
Set the externalFileAttributes from the attributes associated with the file argument.
|
void |
setExternalFileAttributes(int externalFileAttributes) |
void |
setFileIsDirectory(boolean isDirectory)
Set in the externalFileAttributes whether or not the file is a directory.
|
void |
setFileIsReadOnly(boolean readOnly)
Set in the externalFileAttributes whether or not the file is read-only.
|
void |
setFileIsRegular(boolean isRegular)
Set in the externalFileAttributes whether or not the file is a regular-file.
|
void |
setFileIsSymlink(boolean isSymlink)
Set in the externalFileAttributes whether or not the file is a symbolic-link.
|
void |
setInternalFileAttributes(int internalFileAttributes) |
void |
setMsDosExternalFileAttributes(int msDosFileAttributes)
Set the MS-DOS file mode into the bottom of the externalFileAttributes.
|
void |
setPlatformMade(Platform platform) |
void |
setTextFile(boolean textFile)
Set in the internalFileAttributes.
|
void |
setUnixExternalFileAttributes(int unixFileAttributes)
Set the Unix file mode into the top of the externalFileAttributes.
|
void |
setVersionMade(int versionMade) |
void |
setVersionMadeMajorMinor(int major,
int minor)
Set the made zip version as a major and minor value.
|
void |
setVersionNeeded(int versionNeeded) |
void |
setVersionNeededMajorMinor(int major,
int minor)
Set the needed zip version as a major and minor value.
|
ZipCentralDirectoryFileInfo.Builder |
withComment(String comment) |
ZipCentralDirectoryFileInfo.Builder |
withCommentBytes(byte[] commentBytes) |
ZipCentralDirectoryFileInfo.Builder |
withDiskNumberStart(int diskNumberStart) |
ZipCentralDirectoryFileInfo.Builder |
withExternalAttributesFromFile(File file)
Set the externalFileAttributes from the attributes associated with the file argument.
|
ZipCentralDirectoryFileInfo.Builder |
withExternalFileAttributes(int externalFileAttributes) |
ZipCentralDirectoryFileInfo.Builder |
withFileIsDirectory(boolean isDirectory)
Set in the externalFileAttributes whether or not the file is a directory.
|
ZipCentralDirectoryFileInfo.Builder |
withFileIsReadOnly(boolean readOnly)
Set in the externalFileAttributes whether or not the file is read-only.
|
ZipCentralDirectoryFileInfo.Builder |
withFileIsRegular(boolean isRegular)
Set in the externalFileAttributes whether or not the file is a regular-file.
|
ZipCentralDirectoryFileInfo.Builder |
withFileIsSymlink(boolean isSymlink)
Set in the externalFileAttributes whether or not the file is a symbolic-link.
|
ZipCentralDirectoryFileInfo.Builder |
withInternalFileAttributes(int internalFileAttributes) |
ZipCentralDirectoryFileInfo.Builder |
withMsDosExternalFileAttributes(int msDosFileAttributes)
Set the MS-DOS file mode into the bottom of the externalFileAttributes.
|
ZipCentralDirectoryFileInfo.Builder |
withPlatformMade(Platform platform) |
ZipCentralDirectoryFileInfo.Builder |
withTextFile(boolean textFile)
Set in the internalFileAttributes.
|
ZipCentralDirectoryFileInfo.Builder |
withUnixExternalFileAttributes(int unixFileAttributes)
Set the Unix file mode into the top of the externalFileAttributes.
|
ZipCentralDirectoryFileInfo.Builder |
withVersionMade(int versionMade) |
ZipCentralDirectoryFileInfo.Builder |
withVersionMadeMajorMinor(int major,
int minor)
Set the made zip version as a major and minor value.
|
ZipCentralDirectoryFileInfo.Builder |
withVersionNeeded(int versionNeeded) |
ZipCentralDirectoryFileInfo.Builder |
withVersionNeededMajorMinor(int major,
int minor)
Set the needed zip version as a major and minor value.
|
public static ZipCentralDirectoryFileInfo.Builder fromCentralDirectoryFileEntry(ZipCentralDirectoryFileEntry entry)
public static ZipCentralDirectoryFileInfo.Builder fromFile(File file)
public ZipCentralDirectoryFileInfo build()
public int getVersionMade()
public void setVersionMade(int versionMade)
public ZipCentralDirectoryFileInfo.Builder withVersionMade(int versionMade)
public Platform getPlatformMade()
public void setPlatformMade(Platform platform)
public ZipCentralDirectoryFileInfo.Builder withPlatformMade(Platform platform)
public int getVersionMadeMajorMinor()
public void setVersionMadeMajorMinor(int major, int minor)
public ZipCentralDirectoryFileInfo.Builder withVersionMadeMajorMinor(int major, int minor)
public int getVersionNeeded()
public void setVersionNeeded(int versionNeeded)
public ZipCentralDirectoryFileInfo.Builder withVersionNeeded(int versionNeeded)
public void setVersionNeededMajorMinor(int major, int minor)
public ZipCentralDirectoryFileInfo.Builder withVersionNeededMajorMinor(int major, int minor)
public int getDiskNumberStart()
public void setDiskNumberStart(int diskNumberStart)
public ZipCentralDirectoryFileInfo.Builder withDiskNumberStart(int diskNumberStart)
public int getInternalFileAttributes()
public void setInternalFileAttributes(int internalFileAttributes)
public ZipCentralDirectoryFileInfo.Builder withInternalFileAttributes(int internalFileAttributes)
public boolean isTextFile()
public void setTextFile(boolean textFile)
public ZipCentralDirectoryFileInfo.Builder withTextFile(boolean textFile)
public int getExternalFileAttributes()
public void setExternalFileAttributes(int externalFileAttributes)
public ZipCentralDirectoryFileInfo.Builder withExternalFileAttributes(int externalFileAttributes)
public ZipCentralDirectoryFileInfo.Builder addExternalFileAttributes(int attributes)
public void setExternalAttributesFromFile(File file)
public ZipCentralDirectoryFileInfo.Builder withExternalAttributesFromFile(File file)
public void setMsDosExternalFileAttributes(int msDosFileAttributes)
public ZipCentralDirectoryFileInfo.Builder withMsDosExternalFileAttributes(int msDosFileAttributes)
public void setUnixExternalFileAttributes(int unixFileAttributes)
public ZipCentralDirectoryFileInfo.Builder withUnixExternalFileAttributes(int unixFileAttributes)
public void setFileIsDirectory(boolean isDirectory)
public ZipCentralDirectoryFileInfo.Builder withFileIsDirectory(boolean isDirectory)
public void setFileIsSymlink(boolean isSymlink)
public ZipCentralDirectoryFileInfo.Builder withFileIsSymlink(boolean isSymlink)
public void setFileIsRegular(boolean isRegular)
public ZipCentralDirectoryFileInfo.Builder withFileIsRegular(boolean isRegular)
public void setFileIsReadOnly(boolean readOnly)
public ZipCentralDirectoryFileInfo.Builder withFileIsReadOnly(boolean readOnly)
public byte[] getCommentBytes()
public void setCommentBytes(byte[] commentBytes)
public ZipCentralDirectoryFileInfo.Builder withCommentBytes(byte[] commentBytes)
public String getComment()
public void setComment(String comment)
public ZipCentralDirectoryFileInfo.Builder withComment(String comment)
This documentation content is licensed by Gray Watson under the Creative Commons Attribution-Share Alike 3.0 License.