C/C++ User's Journal Synesis Software STLSoft - ... Robust, Lightweight, Cross-platform, Template Software ... ATLSTL - where the Standard Template Library meets the Active Template Library COMSTL - where the Standard Template Library meets the Component Object Model UNIXSTL - Template Software for the UNIX Operating System WinSTL - where the Standard Template Library meets the Win32 API

Main Page   Modules   Alphabetical List   Compound List   File List   Compound Members   File Members   Related Pages  

Entry Class Reference

This class represents an entry in the search. More...

List of all members.

Public Methods

native void Close ()
 Releases the resources owned by the entry.

void Finalize ()
 Releases the resources owned by the entry.

String getPath ()
 The full path of the entry.

native char getDrive ()
 The drive component of the entry's path.

native String getDirectory ()
 The directory component of the entry's path.

native String getDirectoryPath ()
 The full location component of the entry's path.

String[] getDirectoryParts ()
 An array of Strings representing the parts of the Directory property.

native String getFile ()
 The file component of the entry's path.

native String getShortFile ()
 The short equivalent of the entry's File property.

native String getFileName ()
 The file name component of the entry's path.

native String getFileExt ()
 The file extension component of the entry's path.

Date getCreationTime ()
 The time the entry was created.

Date getModificationTime ()
 The time the entry was last modified.

Date getLastAccessTime ()
 The time the entry was last accessed.

Date getLastStatusChangeTime ()
 The time the entry's last status changed.

native long getSize ()
 The size of the entry.

native boolean isReadOnly ()
 Indicates whether the entry is read-only.

native boolean isDirectory ()
 Indicates whether the entry is a directory.

native boolean isLink ()
 Indicates whether the entry is a link.

String toString ()
 Provides a String representation of the entry.


Detailed Description

This class represents an entry in the search.


Member Function Documentation

native void Close  
 

Releases the resources owned by the entry.

Note:
It is perfectly legal to call this method more than once.

void Finalize   [inline]
 

Releases the resources owned by the entry.

Date getCreationTime   [inline]
 

The time the entry was created.

native String getDirectory  
 

The directory component of the entry's path.

Note:
For "/usr/include/recls/recls_assert.h" this would yield "/usr/include/recls/"

String [] getDirectoryParts   [inline]
 

An array of Strings representing the parts of the Directory property.

Note:
For "/usr/include/recls/recls_assert.h" this would yield [ "/", "usr/", "include/", "recls/"]

native String getDirectoryPath  
 

The full location component of the entry's path.

Note:
This is everything before the filename+fileext. On Win32 systems for "H:\Dev\include\recls\recls_assert.h" this would yield "H:\Dev\include\recls\"
On systems that do not have multiple drives, this returns the same value as getDirectory()

native char getDrive  
 

The drive component of the entry's path.

Note:
For "H:\Dev\include\recls\recls_assert.h" this would yield 'H'
Throws java.lang.UnsupportedOperationException if called on non-Win32 systems

native String getFile  
 

The file component of the entry's path.

Note:
For "/usr/include/recls/recls_assert.h" this would yield "recls_assert.h"

native String getFileExt  
 

The file extension component of the entry's path.

Note:
For "/usr/include/recls/recls_assert.h" this would yield "h"

native String getFileName  
 

The file name component of the entry's path.

Note:
For "/usr/include/recls/recls_assert.h" this would yield "recls_assert"

Date getLastAccessTime   [inline]
 

The time the entry was last accessed.

Date getLastStatusChangeTime   [inline]
 

The time the entry's last status changed.

Date getModificationTime   [inline]
 

The time the entry was last modified.

String getPath   [inline]
 

The full path of the entry.

Note:
For "/usr/include/recls/recls_assert.h" this would yield "/usr/include/recls/recls_assert.h"

native String getShortFile  
 

The short equivalent of the entry's File property.

Note:
On Win32 systems, this is the 8.3 form, e.g. "recls_~1.h". On other systems this is identical to the File property

native long getSize  
 

The size of the entry.

native boolean isDirectory  
 

Indicates whether the entry is a directory.

native boolean isLink  
 

Indicates whether the entry is a link.

native boolean isReadOnly  
 

Indicates whether the entry is read-only.

String toString   [inline]
 

Provides a String representation of the entry.


The documentation for this class was generated from the following file:

recls Library documentation © Synesis Software Pty Ltd, 2001-2004