|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.at4j.zip.ef.NtfsExtraField
public class NtfsExtraField
This is the PKWare NTFS extra field. It contains information on the creation, last access and last modification times of the entity.
NtfsExtraFieldFactory
Field Summary | |
---|---|
static UnsignedShort |
CODE
|
Constructor Summary | |
---|---|
NtfsExtraField(boolean inLocalHeader,
WinNtTime lastModificationTime,
WinNtTime lastAccessTime,
WinNtTime creationTime)
Create a new NTFS extra field. |
Method Summary | |
---|---|
byte[] |
encode(ZipBuilderConfiguration builder)
Encode this extra field's data for storing in a Zip file. |
boolean |
equals(Object o)
|
WinNtTime |
getCreationTime()
Get the time that the entity in the Zip entry was created. |
WinNtTime |
getLastAccessTime()
Get the time when the entity in the Zip entry was last accessed. |
WinNtTime |
getLastModified()
Get the time that the entity in the Zip entry was last modified. |
int |
hashCode()
|
boolean |
isInLocalHeader()
Is this field stored in the Zip entry's local header or in the Zip file's central directory record? |
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final UnsignedShort CODE
Constructor Detail |
---|
public NtfsExtraField(boolean inLocalHeader, WinNtTime lastModificationTime, WinNtTime lastAccessTime, WinNtTime creationTime)
inLocalHeader
- Is the extra field in the Zip entry's local header
or in the Zip file's central directory.lastModificationTime
- The last modification time for the file
system entity that was used to create the Zip entry.lastAccessTime
- The last access time for the file system entity
that was used to create the Zip entry.creationTime
- The creation time for the file system entity that was
used to create the Zip entry.Method Detail |
---|
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 WinNtTime getLastModified()
public WinNtTime getCreationTime()
public WinNtTime getLastAccessTime()
public byte[] encode(ZipBuilderConfiguration builder)
ZipEntryExtraField
encode
in interface ZipEntryExtraField
builder
- The configuration for the Zip builder object that is building
the Zip file.
public boolean equals(Object o)
equals
in class Object
public int hashCode()
hashCode
in class Object
public String toString()
toString
in class Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |