org.kde.koala

Class KArchiveDirectory

public class KArchiveDirectory extends KArchiveEntry

Represents a directory entry in a KArchive.

See Also: KArchive KArchiveFile

UNKNOWN: A directory in an archive.

Constructor Summary
protected KArchiveDirectory(Class dummy)
KArchiveDirectory(KArchive archive, String name, int access, int date, String user, String group, String symlink)
Creates a new directory entry.
Method Summary
voidaddEntry(KArchiveEntry arg1)
Adds a new entry to the directory.
voidcopyTo(String dest, boolean recursive)
Extracts all entries in this archive directory to the directory dest.
voidcopyTo(String dest)
voiddispose()
Delete the wrapped C++ instance ahead of finalize()
ArrayListentries()
Returns a list of sub-entries.
KArchiveEntryentry(String name)
Returns the entry with the given name.
protected voidfinalize()
Deletes the wrapped C++ instance
booleanisDirectory()
Checks whether this entry is a directory.
booleanisDisposed()
Has the wrapped C++ instance been deleted?

Constructor Detail

KArchiveDirectory

protected KArchiveDirectory(Class dummy)

KArchiveDirectory

public KArchiveDirectory(KArchive archive, String name, int access, int date, String user, String group, String symlink)
Creates a new directory 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 directory entry.

Method Detail

addEntry

public void addEntry(KArchiveEntry arg1)
Adds a new entry to the directory.

UNKNOWN:

copyTo

public void copyTo(String dest, boolean recursive)
Extracts all entries in this archive directory to the directory dest.

Parameters: dest the directory to extract to recursive if set to true, subdirectories are extracted as well

UNKNOWN: Extracts all entries in this archive directory to the directory dest.

copyTo

public void copyTo(String dest)

dispose

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

entries

public ArrayList entries()
Returns a list of sub-entries.

Returns: the names of all entries in this directory (filenames, no path).

UNKNOWN: Returns a list of sub-entries.

entry

public KArchiveEntry entry(String name)
Returns the entry with the given name.

Parameters: name may be "test1", "mydir/test3", "mydir/mysubdir/test3", etc.

Returns: a pointer to the entry in the directory.

UNKNOWN: Returns the entry with the given name.

finalize

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

isDirectory

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

Returns: true, since this entry is a directory

UNKNOWN: Checks whether this entry is a directory.

isDisposed

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