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 InetSTL - where the Standard Template Library meets the Internet UNIXSTL - Template Software for the UNIX Operating System WinSTL - where the Standard Template Library meets the Win32 API

Main Page   Modules   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members   Related Pages  

FtpSearch Class Reference

This class represents a recursive search. More...

Inheritance diagram for FtpSearch:

Search List of all members.

Public Methods

 FtpSearch (String host, String username, String password, String searchRoot, String pattern, int flags) throws ReclsException
 Creates a new enumerable search.

native String[] getRoots ()
 Returns an array of the roots for the current system.

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 Attributes

final int RECLS_F_FILES = 0x00000001
 Constants.

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
final int RECLS_F_PASSIVE_FTP = 0x00100000

Static Protected Attributes

int m_hSearch
 Members.


Detailed Description

This class represents a recursive search.


Constructor & Destructor Documentation

FtpSearch String    host,
String    username,
String    password,
String    searchRoot,
String    pattern,
int    flags
throws ReclsException [inline]
 

Creates a new enumerable search.


Member Function Documentation

native void close   [inherited]
 

Releases the resources owned by the search.

void finalize   [inline, inherited]
 

Releases the resources owned by the search.

native String [] getRoots   [inherited]
 

Returns an array of the roots for the current system.

final boolean hasMoreElements   [inline, inherited]
 

Tests if this enumeration contains more elements.

final Object nextElement   [inline, inherited]
 

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

int m_hSearch [static, protected, inherited]
 

Members.

final int RECLS_F_DETAILS_LATER = 0x00080000 [static, inherited]
 

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

final int RECLS_F_DEVICES = 0x00000008 [static, inherited]
 

Include devices in search. Not currently supported.

final int RECLS_F_DIRECTORIES = 0x00000002 [static, inherited]
 

Include directories in search. Not currently supported.

final int RECLS_F_DIRECTORY_PARTS = 0x00040000 [static, inherited]
 

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

final int RECLS_F_FILES = 0x00000001 [static, inherited]
 

Constants.

Include files in search. Included by default if none specified

final int RECLS_F_LINKS = 0x00000004 [static, inherited]
 

Include links in search. Ignored in Win32.

final int RECLS_F_NO_FOLLOW_LINKS = 0x00020000 [static, inherited]
 

Does not expand links

final int RECLS_F_PASSIVE_FTP = 0x00100000 [static, inherited]
 

Passive mode in FTP

final int RECLS_F_RECURSIVE = 0x00010000 [static, inherited]
 

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-2004