com.caucho.quercus.lib.spl
Class FilesystemIterator

java.lang.Object
  extended by com.caucho.quercus.lib.spl.SplFileInfo
      extended by com.caucho.quercus.lib.spl.DirectoryIterator
          extended by com.caucho.quercus.lib.spl.FilesystemIterator
All Implemented Interfaces:
Iterator, SeekableIterator, Traversable
Direct Known Subclasses:
RecursiveDirectoryIterator

public class FilesystemIterator
extends DirectoryIterator


Field Summary
static int CURRENT_AS_FILEINFO
           
static int CURRENT_AS_PATHNAME
           
static int CURRENT_AS_SELF
           
static int CURRENT_MODE_MASK
           
static int FOLLOW_SYMLINKS
           
static int KEY_AS_FILENAME
           
static int KEY_AS_PATHNAME
           
static int KEY_MODE_MASK
           
static int NEW_CURRENT_AND_KEY
           
static int SKIP_DOTS
           
static int UNIX_PATHS
           
 
Fields inherited from class com.caucho.quercus.lib.spl.SplFileInfo
_path
 
Constructor Summary
  FilesystemIterator(Env env, StringValue fileName, int flags)
           
protected FilesystemIterator(Path path, int flags)
           
 
Method Summary
 int getFlags()
           
 Value key(Env env)
          Returns the current key.
 void setFlags(int flags)
           
 
Methods inherited from class com.caucho.quercus.lib.spl.DirectoryIterator
createCurrentIterator, current, getCurrent, getCurrentRaw, getKey, next, rewind, seek, valid
 
Methods inherited from class com.caucho.quercus.lib.spl.SplFileInfo
__toString, getATime, getBasename, getCTime, getExtension, getFileInfo, getFilename, getGroup, getInode, getLinkTarget, getMTime, getOwner, getPath, getPathInfo, getPathname, getPerms, getRealPath, getSize, getType, init, isDir, isExecutable, isFile, isLink, isReadable, isWritable, openFile, setFileClass, setInfoClass, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

CURRENT_AS_PATHNAME

public static final int CURRENT_AS_PATHNAME
See Also:
Constant Field Values

CURRENT_AS_FILEINFO

public static final int CURRENT_AS_FILEINFO
See Also:
Constant Field Values

CURRENT_AS_SELF

public static final int CURRENT_AS_SELF
See Also:
Constant Field Values

CURRENT_MODE_MASK

public static final int CURRENT_MODE_MASK
See Also:
Constant Field Values

KEY_AS_PATHNAME

public static final int KEY_AS_PATHNAME
See Also:
Constant Field Values

KEY_AS_FILENAME

public static final int KEY_AS_FILENAME
See Also:
Constant Field Values

FOLLOW_SYMLINKS

public static final int FOLLOW_SYMLINKS
See Also:
Constant Field Values

KEY_MODE_MASK

public static final int KEY_MODE_MASK
See Also:
Constant Field Values

NEW_CURRENT_AND_KEY

public static final int NEW_CURRENT_AND_KEY
See Also:
Constant Field Values

SKIP_DOTS

public static final int SKIP_DOTS
See Also:
Constant Field Values

UNIX_PATHS

public static final int UNIX_PATHS
See Also:
Constant Field Values
Constructor Detail

FilesystemIterator

public FilesystemIterator(Env env,
                          StringValue fileName,
                          int flags)

FilesystemIterator

protected FilesystemIterator(Path path,
                             int flags)
Method Detail

getFlags

public int getFlags()

setFlags

public void setFlags(int flags)

key

public Value key(Env env)
Description copied from interface: Iterator
Returns the current key.

Specified by:
key in interface Iterator
Overrides:
key in class DirectoryIterator