The RarEntry classIntroductionA RAR entry, representing a directory or a compressed file inside a RAR archive. Class synopsisRarEntry
final
class RarEntry
{
/* Constants */
const
int
RarEntry::HOST_MSDOS = 0;
const
int
RarEntry::HOST_OS2 = 1;
const
int
RarEntry::HOST_WIN32 = 2;
const
int
RarEntry::HOST_UNIX = 3;
const
int
RarEntry::HOST_MACOS = 4;
const
int
RarEntry::HOST_BEOS = 5;
const
int
RarEntry::ATTRIBUTE_WIN_READONLY = 1;
const
int
RarEntry::ATTRIBUTE_WIN_HIDDEN = 2;
const
int
RarEntry::ATTRIBUTE_WIN_SYSTEM = 4;
const
int
RarEntry::ATTRIBUTE_WIN_DIRECTORY = 16;
const
int
RarEntry::ATTRIBUTE_WIN_ARCHIVE = 32;
const
int
RarEntry::ATTRIBUTE_WIN_DEVICE = 64;
const
int
RarEntry::ATTRIBUTE_WIN_NORMAL = 128;
const
int
RarEntry::ATTRIBUTE_WIN_TEMPORARY = 256;
const
int
RarEntry::ATTRIBUTE_WIN_SPARSE_FILE = 512;
const
int
RarEntry::ATTRIBUTE_WIN_REPARSE_POINT = 1024;
const
int
RarEntry::ATTRIBUTE_WIN_COMPRESSED = 2048;
const
int
RarEntry::ATTRIBUTE_WIN_OFFLINE = 4096;
const
int
RarEntry::ATTRIBUTE_WIN_NOT_CONTENT_INDEXED = 8192;
const
int
RarEntry::ATTRIBUTE_WIN_ENCRYPTED = 16384;
const
int
RarEntry::ATTRIBUTE_WIN_VIRTUAL = 65536;
const
int
RarEntry::ATTRIBUTE_UNIX_WORLD_EXECUTE = 1;
const
int
RarEntry::ATTRIBUTE_UNIX_WORLD_WRITE = 2;
const
int
RarEntry::ATTRIBUTE_UNIX_WORLD_READ = 4;
const
int
RarEntry::ATTRIBUTE_UNIX_GROUP_EXECUTE = 8;
const
int
RarEntry::ATTRIBUTE_UNIX_GROUP_WRITE = 16;
const
int
RarEntry::ATTRIBUTE_UNIX_GROUP_READ = 32;
const
int
RarEntry::ATTRIBUTE_UNIX_OWNER_EXECUTE = 64;
const
int
RarEntry::ATTRIBUTE_UNIX_OWNER_WRITE = 128;
const
int
RarEntry::ATTRIBUTE_UNIX_OWNER_READ = 256;
const
int
RarEntry::ATTRIBUTE_UNIX_STICKY = 512;
const
int
RarEntry::ATTRIBUTE_UNIX_SETGID = 1024;
const
int
RarEntry::ATTRIBUTE_UNIX_SETUID = 2048;
const
int
RarEntry::ATTRIBUTE_UNIX_FINAL_QUARTET = 61440;
const
int
RarEntry::ATTRIBUTE_UNIX_FIFO = 4096;
const
int
RarEntry::ATTRIBUTE_UNIX_CHAR_DEV = 8192;
const
int
RarEntry::ATTRIBUTE_UNIX_DIRECTORY = 16384;
const
int
RarEntry::ATTRIBUTE_UNIX_BLOCK_DEV = 24576;
const
int
RarEntry::ATTRIBUTE_UNIX_REGULAR_FILE = 32768;
const
int
RarEntry::ATTRIBUTE_UNIX_SYM_LINK = 40960;
const
int
RarEntry::ATTRIBUTE_UNIX_SOCKET = 49152;
/* Methods */
public bool extract(
string $dir ,string $filepath = "",string $password = NULL,bool $extended_data = false ) public int getAttr()
public string getCrc()
public string getFileTime()
public int getHostOs()
public int getMethod()
public string getName()
public int getPackedSize()
public resourcefalse getStream(string
$password = ?)public int getUnpackedSize()
public int getVersion()
public bool isDirectory()
public bool isEncrypted()
public string __toString()
}Predefined Constants
|