|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.kde.koala.KArchiveEntry
org.kde.koala.KArchiveDirectory
public class KArchiveDirectory
Represents a directory entry in a KArchive.
KArchive
,
KArchiveFile
Constructor Summary | |
---|---|
protected |
KArchiveDirectory(java.lang.Class dummy)
|
|
KArchiveDirectory(KArchive archive,
java.lang.String name,
int access,
int date,
java.lang.String user,
java.lang.String group,
java.lang.String symlink)
Creates a new directory entry. |
Method Summary | |
---|---|
void |
addEntry(KArchiveEntry arg1)
Adds a new entry to the directory. |
void |
copyTo(java.lang.String dest)
|
void |
copyTo(java.lang.String dest,
boolean recursive)
Extracts all entries in this archive directory to the directory dest. |
void |
dispose()
Delete the wrapped C++ instance ahead of finalize() |
java.util.ArrayList |
entries()
Returns a list of sub-entries. |
KArchiveEntry |
entry(java.lang.String name)
Returns the entry with the given name. |
protected void |
finalize()
Deletes the wrapped C++ instance |
boolean |
isDirectory()
Checks whether this entry is a directory. |
boolean |
isDisposed()
Has the wrapped C++ instance been deleted? |
Methods inherited from class org.kde.koala.KArchiveEntry |
---|
archive, date, datetime, group, isFile, name, permissions, symlink, user |
Methods inherited from class java.lang.Object |
---|
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
protected KArchiveDirectory(java.lang.Class dummy)
public KArchiveDirectory(KArchive archive, java.lang.String name, int access, int date, java.lang.String user, java.lang.String group, java.lang.String symlink)
archive
- the entries archivename
- the name of the entryaccess
- the permissions in unix formatdate
- the date (in seconds since 1970)user
- the user that owns the entrygroup
- the group that owns the entrysymlink
- the symlink, or nullMethod Detail |
---|
public java.util.ArrayList entries()
public KArchiveEntry entry(java.lang.String name)
name
- may be "test1", "mydir/test3", "mydir/mysubdir/test3", etc.
public void addEntry(KArchiveEntry arg1)
public boolean isDirectory()
isDirectory
in class KArchiveEntry
public void copyTo(java.lang.String dest, boolean recursive)
dest.
dest
- the directory to extract torecursive
- if set to true, subdirectories are extracted as wellpublic void copyTo(java.lang.String dest)
protected void finalize() throws java.lang.InternalError
finalize
in class KArchiveEntry
java.lang.InternalError
public void dispose()
dispose
in class KArchiveEntry
public boolean isDisposed()
isDisposed
in class KArchiveEntry
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |