Class 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.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • DirectoryContents

        public 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.