public class CollectionSpecParser extends CollectionSpecParserAbstract
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"
dateFormatMark, delimiter, filter, filterOnName, fragment, rootDir, spec, subdirs
Constructor and Description |
---|
CollectionSpecParser(java.lang.String collectionSpec,
java.util.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 can't use any part of the dateFormat to filter on.
|
CollectionSpecParser(java.lang.String rootDir,
java.lang.String regExp,
java.util.Formatter errlog) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getFilePath(java.lang.String filename)
Get the full path for a file
|
getDateFormatMark, getDateFormatMark, getDelimiter, getFilter, getFilterAndDateMark, getFilterOnName, getFragment, getPathMatcher, getRegEx, getRootDir, getRootDir, splitOnLastDelimiter, toString, wantSubdirs
public CollectionSpecParser(java.lang.String collectionSpec, java.util.Formatter errlog)
collectionSpec
- the collection specerrlog
- put error messages here, may be nullpublic CollectionSpecParser(java.lang.String rootDir, java.lang.String regExp, java.util.Formatter errlog)
rootDir
- the root directoryregExp
- the regular expression to use as a filtererrlog
- put error messages here, may be nullpublic java.lang.String getFilePath(java.lang.String filename)
CollectionSpecParserAbstract
getFilePath
in class CollectionSpecParserAbstract
filename
- the file name