org.kde.koala
Class KArchiveEntry

java.lang.Object
  extended by org.kde.koala.KArchiveEntry
All Implemented Interfaces:
org.kde.qt.QtSupport
Direct Known Subclasses:
KArchiveDirectory, KArchiveFile

public class KArchiveEntry
extends java.lang.Object
implements org.kde.qt.QtSupport

A base class for entries in an KArchive.

See Also:
KArchiveFile, KArchiveDirectory

Constructor Summary
protected KArchiveEntry(java.lang.Class dummy)
           
  KArchiveEntry(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 entry.
 
Method Summary
protected  KArchive archive()
           
 int date()
          Creation date of the file.
 java.util.Calendar datetime()
          Creation date of the file.
 void dispose()
          Delete the wrapped C++ instance ahead of finalize()
protected  void finalize()
          Deletes the wrapped C++ instance
 java.lang.String group()
          Group of the user who created the file.
 boolean isDirectory()
          Checks whether the entry is a directory.
 boolean isDisposed()
          Has the wrapped C++ instance been deleted?
 boolean isFile()
          Checks whether the entry is a file.
 java.lang.String name()
          Name of the file without path.
 long permissions()
          The permissions and mode flags as returned by the stat() function in st_mode.
 java.lang.String symlink()
          Symlink if there is one.
 java.lang.String user()
          User who created the file.
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

KArchiveEntry

protected KArchiveEntry(java.lang.Class dummy)

KArchiveEntry

public KArchiveEntry(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 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
Method Detail

datetime

public java.util.Calendar datetime()
Creation date of the file.

Returns:
the creation date

date

public int date()
Creation date of the file.

Returns:
the creation date in seconds since 1970

name

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

Returns:
the file name without path

permissions

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

Returns:
the permissions

user

public java.lang.String user()
User who created the file.

Returns:
the owner of the file

group

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

Returns:
the group of the file

symlink

public java.lang.String symlink()
Symlink if there is one.

Returns:
the symlink, or null

isFile

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

Returns:
true if this entry is a file

isDirectory

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

Returns:
true if this entry is a directory

archive

protected KArchive archive()

finalize

protected void finalize()
                 throws java.lang.InternalError
Deletes the wrapped C++ instance

Overrides:
finalize in class java.lang.Object
Throws:
java.lang.InternalError

dispose

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


isDisposed

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