org.kde.koala
public class KArchiveFile extends KArchiveEntry
See Also: KArchive KArchiveDirectory
UNKNOWN: A file in an archive.
Constructor Summary | |
---|---|
protected | KArchiveFile(Class dummy) |
KArchiveFile(KArchive archive, String name, int access, int date, String user, String group, String symlink, int pos, int size)
Creates a new file entry. |
Method Summary | |
---|---|
void | copyTo(String dest)
Extracts the file to the directory dest |
byte[] | data()
Returns the data of the file.
|
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. |
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 pos the position of the file in the directory size the size of the file
UNKNOWN: Creates a new file entry.
dest
Parameters: dest the directory to extract to
UNKNOWN: Extracts the file to the directory dest
Returns: the content of this file.
UNKNOWN: Returns the data of the file.
Returns: the QIODevice of the file
UNKNOWN: This method returns QIODevice (internal class: KLimitedIODevice) on top of the underlying QIODevice.
Returns: true, since this entry is a file
UNKNOWN: Checks whether this entry is a file.
Returns: the position of the file
UNKNOWN: Position of the data in the [uncompressed] archive.
Parameters: s the new size of the file
UNKNOWN: Set size of data, usually after writing the file.
Returns: the size of the file
UNKNOWN: Size of the data.