Package com.ibm.di.protocols
Class FTPBean.DirectoryContents
- java.lang.Object
-
- 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
Constructors Constructor Description DirectoryContents(java.lang.String[] list)
Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description 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.
-
-
-
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.
-
-