C/C++ User's Journal Synesis Software STLSoft - ... Robust, Lightweight, Cross-platform, Template Software ... 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  

Search Class Reference

This class represents a recursive search. More...

List of all members.

Public Methods

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

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

final boolean hasMoreElements ()
 Tests if this enumeration contains more elements.

final Object nextElement ()
 Returns the next element of this enumeration if this enumeration object has at least one more element to provide.


Static Public Methods

Search MakeSearch (String searchRoot, String pattern, int flags) throws ReclsException
 Creates a new enumerable search.


Static Public Attributes

final int RECLS_F_FILES = 0x00000001
final int RECLS_F_DIRECTORIES = 0x00000002
final int RECLS_F_LINKS = 0x00000004
final int RECLS_F_DEVICES = 0x00000008
final int RECLS_F_RECURSIVE = 0x00010000
final int RECLS_F_NO_FOLLOW_LINKS = 0x00020000
final int RECLS_F_DIRECTORY_PARTS = 0x00040000
final int RECLS_F_DETAILS_LATER = 0x00080000


Detailed Description

This class represents a recursive search.


Member Function Documentation

native void Close  
 

Releases the resources owned by the search.

void Finalize   [inline]
 

Releases the resources owned by the search.

final boolean hasMoreElements   [inline]
 

Tests if this enumeration contains more elements.

Search MakeSearch String    searchRoot,
String    pattern,
int    flags
throws ReclsException [inline, static]
 

Creates a new enumerable search.

final Object nextElement   [inline]
 

Returns the next element of this enumeration if this enumeration object has at least one more element to provide.

Note:
This throws java.lang.NoSuchElementException if hasMoreElements() would return false.


Member Data Documentation

final int RECLS_F_DETAILS_LATER = 0x00080000 [static]
 

Does not fill out anything other than the path. Not currently supported.

final int RECLS_F_DEVICES = 0x00000008 [static]
 

Include devices in search. Not currently supported.

final int RECLS_F_DIRECTORIES = 0x00000002 [static]
 

Include directories in search. Not currently supported.

final int RECLS_F_DIRECTORY_PARTS = 0x00040000 [static]
 

Fills out the directory parts. Supported from version 1.1.1 onwards.

final int RECLS_F_FILES = 0x00000001 [static]
 

Include files in search. Included by default if none specified

final int RECLS_F_LINKS = 0x00000004 [static]
 

Include links in search. Ignored in Win32.

final int RECLS_F_NO_FOLLOW_LINKS = 0x00020000 [static]
 

Does not expand links

final int RECLS_F_RECURSIVE = 0x00010000 [static]
 

Searches given directory and all sub-directories


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

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