Method Summary |
|
public boolean | equals(TarEntry it) Determine if the two entries are equal. |
public boolean | equals(Object it) Determine if the two entries are equal. |
public TarEntry[] | getDirectoryEntries() If this entry represents a file, and the file is a directory, return
an array of TarEntries for this entry's children. |
public File | getFile() Get this entry's file. |
public int | getGroupId() Get this entry's group id. |
public String | getGroupName() Get this entry's group name. |
public String | getLinkName() Get this entry's link name. |
public Date | getModTime() Set this entry's modification time. |
public int | getMode() Get this entry's mode. |
public String | getName() Get this entry's name. |
public long | getSize() Get this entry's file size. |
public int | getUserId() Get this entry's user id. |
public String | getUserName() Get this entry's user name. |
public int | hashCode() Hashcodes are based on entry names. |
public boolean | isDescendent(TarEntry desc) Determine if the given entry is a descendant of this entry.
Descendancy is determined by the name of the descendant
starting with this entry's name.
Parameters: desc - Entry to be checked as a descendent of this. |
public boolean | isDirectory() Return whether or not this entry represents a directory. |
public boolean | isGNULongNameEntry() |
public void | parseTarHeader(byte[] header) Parse an entry's header information from a header buffer. |
public void | setGroupId(int groupId) Set this entry's group id. |
public void | setGroupName(String groupName) Set this entry's group name. |
public void | setIds(int userId, int groupId) Convenience method to set this entry's group and user ids. |
public void | setModTime(long time) Set this entry's modification time. |
public void | setModTime(Date time) Set this entry's modification time. |
public void | setMode(int mode) |
public void | setName(String name) Set this entry's name. |
public void | setNames(String userName, String groupName) Convenience method to set this entry's group and user names. |
public void | setSize(long size) Set this entry's file size. |
public void | setUserId(int userId) Set this entry's user id. |
public void | setUserName(String userName) Set this entry's user name. |
public void | writeEntryHeader(byte[] outbuf) Write an entry's header information to a header buffer. |