@Immutable public class CrawlableMFile extends Object implements MFile, CrawlableDataset
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(MFile o) |
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 |
getAuxInfo() |
Object |
getConfigObject()
Return the configuration Object (can be null).
|
CrawlableDataset |
getDescendant(String relativePath)
A factory method for getting a descendant of this datasets.
|
long |
getLastModified()
Get time of last modification at the time the MFile object was created
|
long |
getLength()
Size of file in bytes
|
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()
Get full path name, replace \\ with /
|
boolean |
isCollection()
Return true if the dataset is a collection dataset.
|
boolean |
isDirectory() |
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<CrawlableDataset> |
listDatasets()
Returns the list of CrawlableDatasets contained in this collection dataset.
|
List<CrawlableDataset> |
listDatasets(CrawlableDatasetFilter filter)
Returns the list of CrawlableDatasets contained in this collection dataset
that satisfy the given filter.
|
void |
setAuxInfo(Object info) |
public long getLastModified()
MFilegetLastModified in interface MFilepublic long getLength()
MFilepublic boolean isDirectory()
isDirectory in interface MFilepublic int compareTo(MFile o)
compareTo in interface Comparable<MFile>compareTo in interface MFilepublic Object getAuxInfo()
getAuxInfo in interface MFilepublic void setAuxInfo(Object info)
setAuxInfo in interface MFilepublic Object getConfigObject()
CrawlableDatasetgetConfigObject in interface CrawlableDatasetpublic String getPath()
MFilegetPath in interface CrawlableDatasetgetPath in interface MFilepublic String getName()
CrawlableDatasetgetName in interface CrawlableDatasetgetName in interface MFilepublic CrawlableDataset getParentDataset()
CrawlableDatasetgetParentDataset in interface CrawlableDatasetpublic boolean exists()
CrawlableDatasetexists in interface CrawlableDatasetpublic boolean isCollection()
CrawlableDatasetisCollection in interface CrawlableDatasetpublic CrawlableDataset getDescendant(String relativePath)
CrawlableDatasetgetDescendant in interface CrawlableDatasetrelativePath - the path relative to this dataset of the requested dataset.public List<CrawlableDataset> listDatasets() throws IOException
CrawlableDatasetlistDatasets in interface CrawlableDatasetIOException - if an I/O error occurs while accessing the children datasets.public List<CrawlableDataset> listDatasets(CrawlableDatasetFilter filter) throws IOException
CrawlableDatasetlistDatasets in interface CrawlableDatasetfilter - a CrawlableDataset filter (if null, accept all datasets).IOException - if an I/O error occurs while accessing the children datasets.public long length()
CrawlableDatasetlength in interface CrawlableDatasetpublic Date lastModified()
CrawlableDatasetlastModified in interface CrawlableDatasetCopyright © 1999–2014 UCAR/Unidata. All rights reserved.