org.objectweb.perseus.fos.lib
Class FosExtension

java.lang.Object
  extended byorg.objectweb.perseus.fos.lib.FosExtension
All Implemented Interfaces:
java.io.FilenameFilter, java.util.Iterator

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

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

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

Method Summary
 boolean accept(java.io.File dir, java.lang.String name)
          The filter for retrieving relevant FOS file names.
 boolean hasNext()
          Tests if there are more elements to tranverse.
 java.lang.Object next()
          Traverses the next element.
 void remove()
          remove unsupported.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

hasNext

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

Specified by:
hasNext in interface java.util.Iterator

next

public java.lang.Object next()
                      throws java.util.NoSuchElementException
Traverses the next element.

Specified by:
next in interface java.util.Iterator
Throws:
java.util.NoSuchElementException

remove

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

Specified by:
remove in interface java.util.Iterator
Throws:
java.lang.UnsupportedOperationException
java.lang.IllegalStateException

accept

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

Specified by:
accept in interface java.io.FilenameFilter


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