public class MsDosExternalFileAttributes extends Object implements ZipExternalFileAttributes
MsDosFileAttributes
.MsDosFileAttributes
Modifier and Type | Field and Description |
---|---|
static MsDosExternalFileAttributes |
DEFAULT_DIRECTORY_ATTRIBUTES |
static MsDosExternalFileAttributes |
DEFAULT_FILE_ATTRIBUTES |
Constructor and Description |
---|
MsDosExternalFileAttributes(MsDosFileAttributes... attributes)
Create a new attributes object.
|
MsDosExternalFileAttributes(Set<MsDosFileAttributes> attributes)
Create a new attributes object.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
Set<MsDosFileAttributes> |
getAttributes()
Get (a copy of) this object's attributes.
|
UnsignedInteger |
getEncodedValue()
Get the value of the external file attributes encoded for storing in a
Zip file.
|
ZipVersionMadeBy |
getVersionMadeBy()
Get the version of the Zip software used to create these external file
attributes.
|
int |
hashCode() |
boolean |
isSet(MsDosFileAttributes attr)
Is the attribute set?
|
String |
toString() |
public static final MsDosExternalFileAttributes DEFAULT_DIRECTORY_ATTRIBUTES
public static final MsDosExternalFileAttributes DEFAULT_FILE_ATTRIBUTES
public MsDosExternalFileAttributes(MsDosFileAttributes... attributes)
attributes
- The attributes.public MsDosExternalFileAttributes(Set<MsDosFileAttributes> attributes)
attributes
- The attributes.public ZipVersionMadeBy getVersionMadeBy()
ZipExternalFileAttributes
getVersionMadeBy
in interface ZipExternalFileAttributes
public Set<MsDosFileAttributes> getAttributes()
public boolean isSet(MsDosFileAttributes attr)
true
if the specified attribute is set.public UnsignedInteger getEncodedValue()
ZipExternalFileAttributes
getEncodedValue
in interface ZipExternalFileAttributes