@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.
|
CollectionSpecParser(String rootDir,
String regExp,
Formatter errlog) |
Modifier and Type | Method and Description |
---|---|
String |
getDateFormatMark() |
Pattern |
getFilter() |
boolean |
getFilterOnName() |
PathMatcher |
getPathMatcher() |
String |
getRootDir() |
static void |
main(String[] arg) |
String |
toString() |
boolean |
wantSubdirs() |
public CollectionSpecParser(String collectionSpec, Formatter errlog)
collectionSpec
- the collection Specerrlog
- put error messages here, may be nullpublic PathMatcher getPathMatcher()
public String getRootDir()
public boolean wantSubdirs()
public Pattern getFilter()
public boolean getFilterOnName()
public String getDateFormatMark()
public static void main(String[] arg)
Copyright © 1999–2016 UCAR/Unidata. All rights reserved.