gov.nasa.pds.citool.file
Class FileList

java.lang.Object
  extended by gov.nasa.pds.citool.file.FileList

public class FileList
extends Object

Class that can hold a list of files and directories. Used to store files and directories found when traversing a directory.

Author:
mcayanan

Constructor Summary
FileList()
           
 
Method Summary
 void addToDirList(Collection c)
          Adds a list of objects to the end of the directory list
 void addToDirList(Object o)
          Adds a single object to the end of the directory list
 void addToFileList(Collection c)
          Adds a list of objects to the end of the file list
 void addToFileList(Object o)
          Adds a single object to the end of the file list
 List getDirs()
          Gets directories that were added to the list
 List getFiles()
          Gets files that were added to the list
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FileList

public FileList()
Method Detail

addToFileList

public void addToFileList(Object o)
Adds a single object to the end of the file list

Parameters:
o - a single file to add

addToFileList

public void addToFileList(Collection c)
Adds a list of objects to the end of the file list

Parameters:
c - a list of files to add

addToDirList

public void addToDirList(Object o)
Adds a single object to the end of the directory list

Parameters:
o - a single directory to add

addToDirList

public void addToDirList(Collection c)
Adds a list of objects to the end of the directory list

Parameters:
c - a list of directories to add

getFiles

public List getFiles()
Gets files that were added to the list

Returns:
a list of files

getDirs

public List getDirs()
Gets directories that were added to the list

Returns:
a list of directories


Copyright © 2010-2012 Planetary Data System. All Rights Reserved.