public class ZipCentralDirectoryFileInfo extends Object
ZipFileHeader
.Modifier and Type | Class and Description |
---|---|
static class |
ZipCentralDirectoryFileInfo.Builder
Builder for
ZipCentralDirectoryFileInfo . |
Constructor and Description |
---|
ZipCentralDirectoryFileInfo(int versionMade,
int versionNeeded,
int diskNumberStart,
int internalFileAttributes,
int externalFileAttributes,
byte[] commentBytes) |
Modifier and Type | Method and Description |
---|---|
static ZipCentralDirectoryFileInfo.Builder |
builder()
Make a builder for this class.
|
String |
getComment() |
byte[] |
getCommentBytes() |
int |
getDiskNumberStart() |
int |
getExternalFileAttributes() |
int |
getInternalFileAttributes() |
Platform |
getPlatformMade()
Extract the platform from the version-made information.
|
int |
getVersionMade() |
int |
getVersionMadeMajorMinor()
Extract the needed version from the version-made field.
|
String |
getVersionMadeMajorMinorString()
Get the version made value as a #.# string.
|
int |
getVersionNeeded() |
int |
getVersionNeededMajorMinor()
Extract the needed version from the version-needed field.
|
String |
getVersionNeededMajorMinorString()
Get the version needed value as a #.# string.
|
boolean |
isTextFile()
Return whether this is a text file or not based on the internalFileAttributes.
|
public ZipCentralDirectoryFileInfo(int versionMade, int versionNeeded, int diskNumberStart, int internalFileAttributes, int externalFileAttributes, byte[] commentBytes)
public static ZipCentralDirectoryFileInfo.Builder builder()
public int getVersionMade()
public Platform getPlatformMade()
public int getVersionMadeMajorMinor()
public String getVersionMadeMajorMinorString()
public int getVersionNeeded()
public int getVersionNeededMajorMinor()
public String getVersionNeededMajorMinorString()
public int getDiskNumberStart()
public int getInternalFileAttributes()
public boolean isTextFile()
public int getExternalFileAttributes()
public byte[] getCommentBytes()
public String getComment()
This documentation content is licensed by Gray Watson under the Creative Commons Attribution-Share Alike 3.0 License.