|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.ssh.sft.SftLib
com.ssh.sft.SftBase
com.ssh.sft.ObjectBase
com.ssh.sft.DirHandle
An iterator over directory contents. A DirHandle is used to
traverse once through the contents of a directory. It can be used
via the standard Iterator interface, or with the nextEntry() method.
The system resources reserved by a DirHandle object are freed when
all entries are iterated, when the object is garbage collected, or
when ObjectBase.close() is called, whichever comes first.
| Field Summary | |
static int |
SSH_SFT_DIR_RECURSIVE
|
static int |
SSH_SFT_HASH_MAX_BLOCK_SIZE
|
static int |
SSH_SFT_HASH_MAX_ITERATIONS
|
static int |
SSH_SFT_HASH_MIN_BLOCK_SIZE
|
static int |
SSH_SFT_REQUEST_MAX_NUM
|
static int |
SSH_SFT_REQUEST_MAX_SIZE
|
| Method Summary | |
void |
close()
Releases the resources used by this object. |
boolean |
hasNext()
Tests if there are more directory entries still available. |
boolean |
isClosed()
Tests if this object has been closed. |
Object |
next()
Returns the next entry in this directory. |
File |
nextEntry()
Returns the next entry in this directory. |
void |
remove()
Removes from this directory the last file that was returned by next() or nextEntry(). |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final int SSH_SFT_REQUEST_MAX_SIZE
public static final int SSH_SFT_REQUEST_MAX_NUM
public static final int SSH_SFT_HASH_MAX_ITERATIONS
public static final int SSH_SFT_HASH_MIN_BLOCK_SIZE
public static final int SSH_SFT_HASH_MAX_BLOCK_SIZE
public static final int SSH_SFT_DIR_RECURSIVE
| Method Detail |
public boolean hasNext()
hasNext in interface Iteratornext() will return another entrypublic Object next()
next in interface IteratorNoSuchElementException - if there are no more entries available
public File nextEntry()
throws SftException
SftExceptionpublic void remove()
next() or nextEntry().
remove in interface Iterator
public void close()
throws SftException
IllegalStateException.
SftExceptionpublic boolean isClosed()
ObjectBase.close() has been called on this object,
false otherwise
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||