thredds.inventory
Class CollectionSpecParser

java.lang.Object
  extended by thredds.inventory.CollectionSpecParser

@ThreadSafe
public class CollectionSpecParser
extends Object

Parses the collection specification string.

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"

"Q:/grid/grib/grib1/data/agg/"

Since:
Jul 7, 2009
Author:
caron

Constructor Summary
CollectionSpecParser(String collectionSpec, Formatter errlog)
           
 
Method Summary
 String getDateFormatMark()
           
 Pattern getFilter()
           
 String getSpec()
           
 String getTopDir()
           
 boolean isError()
           
static void main(String[] arg)
           
static void main2(String[] arg)
           
 String toString()
           
 boolean wantSubdirs()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

CollectionSpecParser

public CollectionSpecParser(String collectionSpec,
                            Formatter errlog)
Method Detail

getSpec

public String getSpec()

getTopDir

public String getTopDir()

wantSubdirs

public boolean wantSubdirs()

getFilter

public Pattern getFilter()

getDateFormatMark

public String getDateFormatMark()

isError

public boolean isError()

toString

public String toString()
Overrides:
toString in class Object

main

public static void main(String[] arg)

main2

public static void main2(String[] arg)


Copyright © 1999-2011 UCAR/Unidata. All Rights Reserved.