|
||||||||
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.KArchiveFile
public class KArchiveFile
Represents a file entry in a KArchive.
KArchive
,
KArchiveDirectory
Constructor Summary | |
---|---|
protected |
KArchiveFile(java.lang.Class dummy)
|
|
KArchiveFile(KArchive archive,
java.lang.String name,
int access,
int date,
java.lang.String user,
java.lang.String group,
java.lang.String symlink,
int pos,
int size)
Creates a new file entry. |
Method Summary | |
---|---|
void |
copyTo(java.lang.String dest)
Extracts the file to the directory dest |
byte[] |
data()
Returns the data of the file. |
org.kde.qt.QIODeviceInterface |
device()
This method returns QIODevice (internal class: KLimitedIODevice) on top of the underlying QIODevice. |
void |
dispose()
Delete the wrapped C++ instance ahead of finalize() |
protected void |
finalize()
Deletes the wrapped C++ instance |
boolean |
isDisposed()
Has the wrapped C++ instance been deleted? |
boolean |
isFile()
Checks whether this entry is a file. |
int |
position()
Position of the data in the [uncompressed] archive. |
void |
setSize(int s)
Set size of data, usually after writing the file. |
int |
size()
Size of the data. |
Methods inherited from class org.kde.koala.KArchiveEntry |
---|
archive, date, datetime, group, isDirectory, name, permissions, symlink, user |
Methods inherited from class java.lang.Object |
---|
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
protected KArchiveFile(java.lang.Class dummy)
public KArchiveFile(KArchive archive, java.lang.String name, int access, int date, java.lang.String user, java.lang.String group, java.lang.String symlink, int pos, int size)
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 nullpos
- the position of the file in the directorysize
- the size of the fileMethod Detail |
---|
public int position()
public int size()
public void setSize(int s)
s
- the new size of the filepublic byte[] data()
public org.kde.qt.QIODeviceInterface device()
public boolean isFile()
isFile
in class KArchiveEntry
public void copyTo(java.lang.String dest)
dest
dest
- the directory to extract toprotected 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 |