|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectthredds.filesystem.CrawlableMFile
@Immutable public class CrawlableMFile
An adapter of cached MFiles to CrawlableDataset
Method Summary | |
---|---|
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()
|
long |
getLength()
|
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. |
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)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public long getLastModified()
getLastModified
in interface MFile
public long getLength()
getLength
in interface MFile
public boolean isDirectory()
isDirectory
in interface MFile
public int compareTo(MFile o)
compareTo
in interface Comparable<MFile>
compareTo
in interface MFile
public Object getAuxInfo()
getAuxInfo
in interface MFile
public void setAuxInfo(Object info)
setAuxInfo
in interface MFile
public Object getConfigObject()
CrawlableDataset
getConfigObject
in interface CrawlableDataset
public String getPath()
CrawlableDataset
getPath
in interface CrawlableDataset
getPath
in interface MFile
public String getName()
CrawlableDataset
getName
in interface CrawlableDataset
getName
in interface MFile
public CrawlableDataset getParentDataset()
CrawlableDataset
getParentDataset
in interface CrawlableDataset
public boolean exists()
CrawlableDataset
exists
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<CrawlableDataset> listDatasets() throws IOException
CrawlableDataset
listDatasets
in interface CrawlableDataset
IOException
- if an I/O error occurs while accessing the children datasets.public List<CrawlableDataset> 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 long length()
CrawlableDataset
length
in interface CrawlableDataset
public Date lastModified()
CrawlableDataset
lastModified
in interface CrawlableDataset
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |