com.jmw.tzap.sequencers
Class PartialFileNameSequencer

java.lang.Object
  extended by com.jmw.tzap.sequencers.PartialFileNameSequencer
All Implemented Interfaces:
Sequencer

public class PartialFileNameSequencer
extends java.lang.Object
implements Sequencer

Orders ArrayList of FilterFiles alphabetically based on a part of their file name delimited by the prefix and suffix attributes


Constructor Summary
PartialFileNameSequencer()
           
 
Method Summary
 FilterFile[] order(FilterFile[] files)
          Performs the order operation using Arrays.sort
 void setPrefix(java.lang.String prefix)
           
 void setSuffix(java.lang.String suffix)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PartialFileNameSequencer

public PartialFileNameSequencer()
Method Detail

order

public FilterFile[] order(FilterFile[] files)
Performs the order operation using Arrays.sort

Specified by:
order in interface Sequencer
Parameters:
files - an array containing the files to be ordered
Returns:
an array of the files in order

setPrefix

public void setPrefix(java.lang.String prefix)

setSuffix

public void setSuffix(java.lang.String suffix)