All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class framework.io.FileStore

java.lang.Object
   |
   +----framework.io.FileStore

public class FileStore
extends Object
implements Store, Cloneable
This class implements a Store for Files using java.util.Vector. Specific class of meant-to-be-generic class java.util.Vector. This class really should be a subclass of java.util.Vector, but most members of java.util.Vector are final.

Version:
$Revision: 1.1 $

Variable Index

 o list

Constructor Index

 o FileStore()

Method Index

 o add(File)
 o add(StoreElement)
This Store should work on Files instead of StoreElements, but method add(StoreElement) is in the interface this class implements.
 o at(int)
 o clone()
Clone the filestore.
 o elements()
This method is here because it is specified in the interface Store.
 o files()
 o first()
 o insertElementAt(File, int)
 o last()
 o removeAll()
 o removeAt(int)
 o size()
 o toString()

Variables

 o list
 private Vector list

Constructors

 o FileStore
 public FileStore()

Methods

 o add
 public void add(File c)
 o add
 public void add(StoreElement item)
This Store should work on Files instead of StoreElements, but method add(StoreElement) is in the interface this class implements.

 o at
 public File at(int index)
 o first
 public File first()
 o removeAt
 public void removeAt(int index)
 o removeAll
 public void removeAll()
 o size
 public int size()
 o files
 public Enumeration files()
 o last
 public File last()
 o elements
 public Enumeration elements()
This method is here because it is specified in the interface Store. Given that this store only works with files, it makes more sense to name this method files(). This method just refers to files() for its result.

 o insertElementAt
 public void insertElementAt(File file,
                             int index)
 o toString
 public String toString()
Overrides:
toString in class Object
 o clone
 public Object clone()
Clone the filestore.

Overrides:
clone in class Object

All Packages  Class Hierarchy  This Package  Previous  Next  Index