org.cip4.jdflib.util.file
Class FileSorter

java.lang.Object
  extended by org.cip4.jdflib.util.file.FileSorter

public class FileSorter
extends Object

Author:
Rainer Prosi, Heidelberger Druckmaschinen *

Nested Class Summary
protected  class FileSorter.LastModifiedComparator
           
 
Constructor Summary
FileSorter(File dir)
           
FileSorter(File[] list)
           
 
Method Summary
 int size()
          get the number of entries in this FileSorter
 File[] sortLastModified(boolean bNewFirst)
          sort this by modification date
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FileSorter

public FileSorter(File dir)
Parameters:
dir -

FileSorter

public FileSorter(File[] list)
Parameters:
list -
Method Detail

sortLastModified

public File[] sortLastModified(boolean bNewFirst)
sort this by modification date

Parameters:
bNewFirst - , if true newest entries are first, else oldest entries
Returns:
sort

size

public int size()
get the number of entries in this FileSorter

Returns:


Copyright © 2013. All Rights Reserved.