public class ArjArchiveEntry extends java.lang.Object implements ArchiveEntry
| Modifier and Type | Class and Description |
|---|---|
static class |
ArjArchiveEntry.HostOs
The known values for HostOs.
|
SIZE_UNKNOWN| Constructor and Description |
|---|
ArjArchiveEntry() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj) |
int |
getHostOs()
The operating system the archive has been created on.
|
java.util.Date |
getLastModifiedDate()
The last modified date of the entry.
|
int |
getMode()
File mode of this entry.
|
java.lang.String |
getName()
Gets this entry's name.
|
long |
getSize()
Gets this entry's file size.
|
int |
getUnixMode()
File mode of this entry as Unix stat value.
|
int |
hashCode() |
boolean |
isDirectory()
True if the entry refers to a directory.
|
boolean |
isHostOsUnix()
Is the operating system the archive has been created on one that is considered a UNIX OS by arj?
|
getClass, notify, notifyAll, toString, wait, wait, waitresolveInpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic int getHostOs()
ArjArchiveEntry.HostOspublic java.util.Date getLastModifiedDate()
Note the interpretation of time is different depending on the HostOS that has created the archive. While an OS that is considered to
be Unix stores time in a time zone independent manner, other platforms only use the local time. I.e. if an archive has been created at midnight UTC on a
machine in time zone UTC this method will return midnight regardless of time zone if the archive has been created on a non-Unix system and a time taking
the current time zone into account if the archive has been created on Unix.
getLastModifiedDate in interface ArchiveEntrypublic int getMode()
The format depends on the host os that created the entry.
public java.lang.String getName()
This method returns the raw name as it is stored inside of the archive.
getName in interface ArchiveEntrypublic long getSize()
getSize in interface ArchiveEntrypublic int getUnixMode()
Will only be non-zero of the host os was UNIX.
public int hashCode()
hashCode in class java.lang.Objectpublic boolean isDirectory()
isDirectory in interface ArchiveEntrypublic boolean isHostOsUnix()
Copyright © 2010 - 2024 Adobe. All Rights Reserved