com.ibm.di.protocols
Class FTPBean.DirectoryContents

java.lang.Object
  extended by com.ibm.di.protocols.FTPBean.DirectoryContents
Enclosing class:
FTPBean

public static class FTPBean.DirectoryContents
extends java.lang.Object

This class is a container in which the contents of a directory can be saved.


Constructor Summary
FTPBean.DirectoryContents(java.lang.String[] list)
          Constructor.
 
Method Summary
 java.lang.String getName()
          Returns the name of the file/directory the index is currently pointing at.
 int getType()
          Returns the type of the element (a file, directory, etc.).
 java.lang.String getTypeString()
          Returns the symbolic representation of the element's type.
 boolean next()
          Moves the index to the next position.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FTPBean.DirectoryContents

public FTPBean.DirectoryContents(java.lang.String[] list)
Constructor.

Parameters:
list - a list of values used for initialization.
Method Detail

next

public boolean next()
Moves the index to the next position.

Returns:
true if the end of the list has not been reached yet, otherwise false.

getName

public java.lang.String getName()
Returns the name of the file/directory the index is currently pointing at.

Returns:
the file/directory name.

getType

public int getType()
Returns the type of the element (a file, directory, etc.).

Returns:
the type.

getTypeString

public java.lang.String getTypeString()
Returns the symbolic representation of the element's type.

Returns:
a string determining the element's type.