sharpster.common
Class FileCollection

java.lang.Object
  |
  +--sharpster.common.FileCollection
All Implemented Interfaces:
java.io.Serializable

public class FileCollection
extends java.lang.Object
implements java.io.Serializable

A collection of File objects. The class is used both by modules in the local client and in the daemon.

See Also:
Serialized Form

Constructor Summary
FileCollection()
           
 
Method Summary
 void addFile(sharpster.common.SharedFile file)
          Adds a new File object to the collection.
 void appendCollection(sharpster.common.FileCollection collection)
          Appends a FileCollection to this collection.
 sharpster.common.FileCollection createDuplicate()
           
 sharpster.common.SharedFile getFile(int index)
          Returns a specified file.
 int getFileCount()
          Returns the number of File objects in the collection.
 void removeAllFiles()
          Removes all files from the collection.
 void removeAllPluginData()
          Removes all plugin data from the files, used to prepare the file to be transported to a remote user.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

FileCollection

public FileCollection()
Method Detail

getFileCount

public int getFileCount()
Returns the number of File objects in the collection.


removeAllFiles

public void removeAllFiles()
Removes all files from the collection.


addFile

public void addFile(sharpster.common.SharedFile file)
Adds a new File object to the collection.


appendCollection

public void appendCollection(sharpster.common.FileCollection collection)
Appends a FileCollection to this collection.


createDuplicate

public sharpster.common.FileCollection createDuplicate()

removeAllPluginData

public void removeAllPluginData()
Removes all plugin data from the files, used to prepare the file to be transported to a remote user. This is because there is no garantee that the remote user has this plugin type thus may not be able to handle the plugin data.


getFile

public sharpster.common.SharedFile getFile(int index)
Returns a specified file.


toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object