@Immutable public class MCollection extends Object
| Constructor and Description |
|---|
MCollection(String name,
String dirName,
boolean wantSubdirs,
List<MFileFilter> filters,
Object auxInfo)
Constructor
|
MCollection(String name,
String dirName,
boolean wantSubdirs,
MFileFilter ff,
Object auxInfo)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
accept(MFile file) |
Object |
getAuxInfo() |
String |
getDirectoryName() |
MFileFilter |
getFileFilter() |
String |
getName() |
MCollection |
subdir(MFile child) |
String |
toString() |
boolean |
wantSubdirs() |
public MCollection(String name, String dirName, boolean wantSubdirs, List<MFileFilter> filters, Object auxInfo)
name - name of collectiondirName - top directory namewantSubdirs - if want subdirectoriesfilters - optional list of MFileFilter (may be null) - applies only to non-directoriesauxInfo - optional info added to each MFilepublic MCollection(String name, String dirName, boolean wantSubdirs, MFileFilter ff, Object auxInfo)
name - name of collectiondirName - top directory namewantSubdirs - if want subdirectoriesff - optional FilenameFilter (may be null) - applies only to non-directoriesauxInfo - optional info added to each MFilepublic MCollection subdir(MFile child)
public String getName()
public String getDirectoryName()
public boolean wantSubdirs()
public MFileFilter getFileFilter()
public boolean accept(MFile file)
public Object getAuxInfo()
Copyright © 1999-2012 UCAR/Unidata. All Rights Reserved.