@ThreadSafe public class CollectionSpecParser extends Object
the idea is that one copies the full path of an example dataset, then edits it
Example: "/data/ldm/pub/native/grid/NCEP/GFS/Alaska_191km/** /GFS_Alaska_191km_#yyyyMMdd_HHmm#\.grib1$"
Example: "Q:/grid/grib/grib1/data/agg/.*\.grb"
Constructor and Description |
---|
CollectionSpecParser(String collectionSpec,
Formatter errlog)
Single spec : "/topdir/** /#dateFormatMark#regExp"
This only allows the dateFormatMark to be in the file name, not anywhere else in the filename path,
and you cant use any part of the dateFormat to filter on.
|
Modifier and Type | Method and Description |
---|---|
String |
getDateFormatMark() |
Pattern |
getFilter() |
String |
getRootDir() |
String |
getSpec() |
static void |
main(String[] arg) |
String |
toString() |
boolean |
wantSubdirs() |
public CollectionSpecParser(String collectionSpec, Formatter errlog)
collectionSpec
- the collection Specerrlog
- put error messages hereCopyright © 1999–2013 UCAR/Unidata. All rights reserved.