org.farng.mp3.filename
Class FilenameTokenIterator

java.lang.Object
  extended byorg.farng.mp3.filename.FilenameTokenIterator
All Implemented Interfaces:
java.util.Iterator

public class FilenameTokenIterator
extends java.lang.Object
implements java.util.Iterator

This class is an iterator for the FilenameToken class.

Version:
$Revision: 1.1 $
Author:
Eric Farng

Constructor Summary
FilenameTokenIterator(FilenameToken filenameToken)
          Creates a new FilenameTokenIterator object.
 
Method Summary
 boolean hasNext()
          Returns true if the iteration has more elements.
 java.lang.Object next()
          Returns the next element in the iteration.
 void remove()
          This method is not supported in this iterator.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FilenameTokenIterator

public FilenameTokenIterator(FilenameToken filenameToken)
Creates a new FilenameTokenIterator object.

Parameters:
filenameToken - FilenameToken class that this iterator will iterate through.
Method Detail

hasNext

public boolean hasNext()
Returns true if the iteration has more elements. (In other words, returns true if next would return an element rather than throwing an exception.)

Specified by:
hasNext in interface java.util.Iterator
Returns:
true if the iteration has more elements

next

public java.lang.Object next()
Returns the next element in the iteration.

Specified by:
next in interface java.util.Iterator
Returns:
the next element in the iteration.

remove

public void remove()
This method is not supported in this iterator.

Specified by:
remove in interface java.util.Iterator
Throws:
java.lang.UnsupportedOperationException - This method is not supported in this iterator


Copyright (c) 2004 Eric Farng