Class ArjArchiveEntry
java.lang.Object
org.apache.commons.compress.archivers.arj.ArjArchiveEntry
- All Implemented Interfaces:
ArchiveEntry
An entry in an ARJ archive.
- Since:
- 1.6
- This class is not thread-safe
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
The known values for HostOs. -
Field Summary
Fields inherited from interface org.apache.commons.compress.archivers.ArchiveEntry
SIZE_UNKNOWN
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
int
The operating system the archive has been created on.The last modified date of the entry.int
getMode()
File mode of this entry.getName()
Gets this entry's name.long
getSize()
Gets this entry's file size.int
File mode of this entry as UNIX stat value.int
hashCode()
boolean
True if the entry refers to a directory.boolean
Is the operating system the archive has been created on one that is considered a UNIX OS by arj?Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.apache.commons.compress.archivers.ArchiveEntry
resolveIn
-
Constructor Details
-
ArjArchiveEntry
public ArjArchiveEntry()
-
-
Method Details
-
equals
-
getHostOs
The operating system the archive has been created on.- Returns:
- the host OS code
- See Also:
-
getLastModifiedDate
The last modified date of the entry.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.- Specified by:
getLastModifiedDate
in interfaceArchiveEntry
- Returns:
- the last modified date
-
getMode
File mode of this entry.The format depends on the host os that created the entry.
- Returns:
- the file mode
-
getName
Gets this entry's name.This method returns the raw name as it is stored inside of the archive.
- Specified by:
getName
in interfaceArchiveEntry
- Returns:
- This entry's name.
-
getSize
Gets this entry's file size.- Specified by:
getSize
in interfaceArchiveEntry
- Returns:
- This entry's file size.
-
getUnixMode
File mode of this entry as UNIX stat value.Will only be non-zero of the host os was UNIX.
- Returns:
- the UNIX mode
-
hashCode
-
isDirectory
True if the entry refers to a directory.- Specified by:
isDirectory
in interfaceArchiveEntry
- Returns:
- True if the entry refers to a directory
-
isHostOsUnix
Is the operating system the archive has been created on one that is considered a UNIX OS by arj?- Returns:
- whether the operating system the archive has been created on is considered a UNIX OS by arj
-