public class CrawlableDatasetDods extends Object implements CrawlableDataset
Modifier | Constructor and Description |
---|---|
protected |
CrawlableDatasetDods() |
protected |
CrawlableDatasetDods(String path,
Object configObj) |
Modifier and Type | Method and Description |
---|---|
boolean |
exists()
Return true if the dataset represented by this CrawlableDataset actually
exists, null if it does not or an I/O error occurs.
|
Object |
getConfigObject()
Return the configuration Object (can be null).
|
CrawlableDataset |
getDescendant(String relativePath)
A factory method for getting a descendant of this datasets.
|
String |
getName()
Returns the dataset name, i.e., the last part of the dataset path.
|
CrawlableDataset |
getParentDataset()
Returns the parent CrawlableDataset or null if this dataset has no parent.
|
String |
getPath()
Returns the dataset path.
|
URI |
getUri()
Provide access to the java.net.URI that this CrawlableDataset represents.
|
boolean |
isCollection()
Return true if the dataset is a collection dataset.
|
Date |
lastModified()
Returns the date the dataset was last modified, null if unknown.
|
long |
length()
Returns the size in bytes of the dataset, -1 if unknown.
|
List |
listDatasets()
Returns the list of CrawlableDatasets contained in this collection dataset.
|
List |
listDatasets(CrawlableDatasetFilter filter)
Returns the list of CrawlableDatasets contained in this collection dataset
that satisfy the given filter.
|
String |
toString() |
public URI getUri()
public Object getConfigObject()
CrawlableDataset
getConfigObject
in interface CrawlableDataset
public String getPath()
CrawlableDataset
getPath
in interface CrawlableDataset
public String getName()
CrawlableDataset
getName
in interface CrawlableDataset
public boolean isCollection()
CrawlableDataset
isCollection
in interface CrawlableDataset
public CrawlableDataset getDescendant(String relativePath)
CrawlableDataset
getDescendant
in interface CrawlableDataset
relativePath
- the path relative to this dataset of the requested dataset.public List listDatasets() throws IOException
CrawlableDataset
listDatasets
in interface CrawlableDataset
IOException
- if an I/O error occurs while accessing the children datasets.public List listDatasets(CrawlableDatasetFilter filter) throws IOException
CrawlableDataset
listDatasets
in interface CrawlableDataset
filter
- a CrawlableDataset filter (if null, accept all datasets).IOException
- if an I/O error occurs while accessing the children datasets.public CrawlableDataset getParentDataset()
CrawlableDataset
getParentDataset
in interface CrawlableDataset
public boolean exists()
CrawlableDataset
exists
in interface CrawlableDataset
public long length()
CrawlableDataset
length
in interface CrawlableDataset
public Date lastModified()
CrawlableDataset
lastModified
in interface CrawlableDataset
Copyright © 1999–2015 UCAR/Unidata. All rights reserved.