thredds.filesystem
Class MCollection

java.lang.Object
  extended by thredds.filesystem.MCollection

public class MCollection
extends java.lang.Object

Configuration object for a collection of files.

Author:
caron

Constructor Summary
MCollection(java.lang.String name, java.lang.String dirName, MFileFilter ff, DateExtractor dateExtractor)
           
 
Method Summary
 boolean accept(MFile file)
           
 java.lang.String getDirectoryName()
           
 java.util.Date getFirst()
           
 java.util.Date getLast()
           
 java.lang.String getName()
           
 MCollection subdir(MFile child)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MCollection

public MCollection(java.lang.String name,
                   java.lang.String dirName,
                   MFileFilter ff,
                   DateExtractor dateExtractor)
Parameters:
name - name of collection
dirName - directory name
ff - optional FilenameFilter (may be null) - applies only to non-directories
dateExtractor - optional DateExtractor (may be null) - applies only to non-directories (?)
Method Detail

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)