thredds.filesystem
Class MCollection
java.lang.Object
thredds.filesystem.MCollection
public class MCollection
- extends java.lang.Object
Configuration object for a collection of files.
- Author:
- caron
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MCollection
public MCollection(java.lang.String name,
java.lang.String dirName,
MFileFilter ff,
DateExtractor dateExtractor)
- Parameters:
name - name of collectiondirName - directory nameff - optional FilenameFilter (may be null) - applies only to non-directoriesdateExtractor - optional DateExtractor (may be null) - applies only to non-directories (?)
subdir
public MCollection subdir(MFile child)
getName
public java.lang.String getName()
getDirectoryName
public java.lang.String getDirectoryName()
getLast
public java.util.Date getLast()
getFirst
public java.util.Date getFirst()
accept
public boolean accept(MFile file)