Java org.apache.commons.compress.archivers.tar TarArchiveEntry fields, constructors, methods, implement or subclass

Example usage for Java org.apache.commons.compress.archivers.tar TarArchiveEntry fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for org.apache.commons.compress.archivers.tar TarArchiveEntry.

The text is from its open source code.

Field

intDEFAULT_DIR_MODE
Default permissions bits for directories
intDEFAULT_FILE_MODE
Default permissions bits for files

Constructor

TarArchiveEntry(String name, boolean preserveLeadingSlashes)
Construct an entry with only a name.
TarArchiveEntry(String name, byte linkFlag)
Construct an entry with a name and a link flag.
TarArchiveEntry(File file, String fileName)
Construct an entry for a file.
TarArchiveEntry(String name)
Construct an entry with only a name.
TarArchiveEntry(File file)
Construct an entry for a file.
TarArchiveEntry(byte[] headerBuf)
Construct an entry from an archive's header bytes.

Method

booleanequals(TarArchiveEntry it)
Determine if the two entries are equal.
booleanequals(Object it)
Determine if the two entries are equal.
TarArchiveEntry[]getDirectoryEntries()
If this entry represents a file, and the file is a directory, return an array of TarEntries for this entry's children.
FilegetFile()
Get this entry's file.
intgetGroupId()
Get this entry's group id.
StringgetGroupName()
Get this entry's group name.
DategetLastModifiedDate()
StringgetLinkName()
Get this entry's link name.
intgetMode()
Get this entry's mode.
DategetModTime()
Set this entry's modification time.
StringgetName()
Get this entry's name.
longgetSize()
Get this entry's file size.
intgetUserId()
Get this entry's user id.
StringgetUserName()
Get this entry's user name.
inthashCode()
Hashcodes are based on entry names.
booleanisDirectory()
Return whether or not this entry represents a directory.
booleanisFile()
Check if this is a "normal file"
booleanisGlobalPaxHeader()
Check if this is a Pax header.
booleanisLink()
Check if this is a link entry.
booleanisSymbolicLink()
Check if this is a symbolic link entry.
voidsetGroupId(int groupId)
Set this entry's group id.
voidsetGroupName(String groupName)
Set this entry's group name.
voidsetIds(int userId, int groupId)
Convenience method to set this entry's group and user ids.
voidsetLinkName(String link)
Set this entry's link name.
voidsetMode(int mode)
Set the mode for this entry
voidsetModTime(long time)
Set this entry's modification time.
voidsetModTime(Date time)
Set this entry's modification time.
voidsetName(String name)
Set this entry's name.
voidsetNames(String userName, String groupName)
Convenience method to set this entry's group and user names.
voidsetSize(long size)
Set this entry's file size.
voidsetUserId(int userId)
Set this entry's user id.
voidsetUserName(String userName)
Set this entry's user name.