org.kde.koala

Class KArchiveEntry

public class KArchiveEntry extends Object implements QtSupport

A base class for entries in an KArchive.

See Also: KArchiveFile KArchiveDirectory

UNKNOWN: Base class for the archive-file's directory structure.

Constructor Summary
protected KArchiveEntry(Class dummy)
KArchiveEntry(KArchive archive, String name, int access, int date, String user, String group, String symlink)
Creates a new entry.
Method Summary
protected KArchivearchive()
intdate()
Creation date of the file.
Calendardatetime()
Creation date of the file.
voiddispose()
Delete the wrapped C++ instance ahead of finalize()
protected voidfinalize()
Deletes the wrapped C++ instance
Stringgroup()
Group of the user who created the file.
booleanisDirectory()
Checks whether the entry is a directory.
booleanisDisposed()
Has the wrapped C++ instance been deleted?
booleanisFile()
Checks whether the entry is a file.
Stringname()
Name of the file without path.
longpermissions()
The permissions and mode flags as returned by the stat() function in st_mode.
Stringsymlink()
Symlink if there is one.
Stringuser()
User who created the file.

Constructor Detail

KArchiveEntry

protected KArchiveEntry(Class dummy)

KArchiveEntry

public KArchiveEntry(KArchive archive, String name, int access, int date, String user, String group, String symlink)
Creates a new entry.

Parameters: archive the entries archive name the name of the entry access the permissions in unix format date the date (in seconds since 1970) user the user that owns the entry group the group that owns the entry symlink the symlink, or null

UNKNOWN: Creates a new entry.

Method Detail

archive

protected KArchive archive()

date

public int date()
Creation date of the file.

Returns: the creation date in seconds since 1970

UNKNOWN: Creation date of the file.

datetime

public Calendar datetime()
Creation date of the file.

Returns: the creation date

UNKNOWN: Creation date of the file.

dispose

public void dispose()
Delete the wrapped C++ instance ahead of finalize()

finalize

protected void finalize()
Deletes the wrapped C++ instance

group

public String group()
Group of the user who created the file.

Returns: the group of the file

UNKNOWN: Group of the user who created the file.

isDirectory

public boolean isDirectory()
Checks whether the entry is a directory.

Returns: true if this entry is a directory

UNKNOWN: Checks whether the entry is a directory.

isDisposed

public boolean isDisposed()
Has the wrapped C++ instance been deleted?

isFile

public boolean isFile()
Checks whether the entry is a file.

Returns: true if this entry is a file

UNKNOWN: Checks whether the entry is a file.

name

public String name()
Name of the file without path.

Returns: the file name without path

UNKNOWN: Name of the file without path.

permissions

public long permissions()
The permissions and mode flags as returned by the stat() function in st_mode.

Returns: the permissions

UNKNOWN: The permissions and mode flags as returned by the stat() function in st_mode.

symlink

public String symlink()
Symlink if there is one.

Returns: the symlink, or null

UNKNOWN: Symlink if there is one.

user

public String user()
User who created the file.

Returns: the owner of the file

UNKNOWN: User who created the file.