org.objectweb.perseus.fos.lib

Class FosExtension

Implemented Interfaces:
FilenameFilter, Iterator

public class FosExtension
extends java.lang.Object
implements Iterator, FilenameFilter

Defines the way to iterate over the Object Files within a directory.

Author:
S. Chassande-Barrioz, P. D?chamboux

Method Summary

boolean
accept(File dir, String name)
The filter for retrieving relevant FOS file names.
boolean
hasNext()
Tests if there are more elements to tranverse.
Object
next()
Traverses the next element.
void
remove()
remove unsupported.

Method Details

accept

public boolean accept(File dir,
                      String name)
The filter for retrieving relevant FOS file names. Names with deletion or writing suffixes are ignored, as well as non regular files.


hasNext

public boolean hasNext()
Tests if there are more elements to tranverse.


next

public Object next()
            throws NoSuchElementException
Traverses the next element.


remove

public void remove()
            throws UnsupportedOperationException,
                   IllegalStateException
remove unsupported.


Copyright © 2000-2002 France Telecom S.A., INRIA, IMAG-LSR All Rights Reserved.