public class UnicodePathExtraField extends Object implements ZipEntryExtraField
UnicodePathExtraFieldFactory
Modifier and Type | Field and Description |
---|---|
static UnsignedShort |
CODE
The code that is used to identify this extra field in a Zip file.
|
Constructor and Description |
---|
UnicodePathExtraField(boolean inLocalHeader,
org.entityfs.el.AbsoluteLocation absPath,
boolean directory)
Create a new Unicode extra field.
|
Modifier and Type | Method and Description |
---|---|
byte[] |
encode(ZipBuilderConfiguration builder)
Encode this extra field's data for storing in a Zip file.
|
boolean |
equals(Object o) |
org.entityfs.el.AbsoluteLocation |
getAbsolutePath() |
int |
hashCode() |
boolean |
isDirectory() |
boolean |
isInLocalHeader()
Is this field stored in the Zip entry's local header or in the Zip file's
central directory record?
|
String |
toString() |
public static final UnsignedShort CODE
public UnicodePathExtraField(boolean inLocalHeader, org.entityfs.el.AbsoluteLocation absPath, boolean directory)
inLocalHeader
- Is the extra field in the Zip entry's local header
or in the Zip file's central directory.absPath
- The absolute path of the entry in the Zip archive.directory
- Is the entry a directory?public boolean isInLocalHeader()
ZipEntryExtraField
The same ZipEntryExtraField
type may have different properties
depending on if it is specified in the local or in the central header.
isInLocalHeader
in interface ZipEntryExtraField
true
if this extra field comes from the Zip entry's local
header. false
if it comes from the Zip file's central directory.public org.entityfs.el.AbsoluteLocation getAbsolutePath()
public boolean isDirectory()
public byte[] encode(ZipBuilderConfiguration builder)
ZipEntryExtraField
encode
in interface ZipEntryExtraField
builder
- The configuration for the Zip builder object that is building
the Zip file.