public class CollectionGlob extends CollectionAbstract
CollectionAbstract.DateSorter, CollectionAbstract.MyGribFilterauxInfo, CATALOG, collectionName, dateExtractor, DIR, FILE, filter, GLOB, lastModified, LIST, logger, NCX_SUFFIX, protoChoice, root, sfilter, startCollection| Constructor and Description |
|---|
CollectionGlob(String collectionName,
String glob,
org.slf4j.Logger logger) |
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Close and release any resources.
|
CloseableIterator<MFile> |
getFileIterator()
Get the current collection of MFile, no guaranteed order.
|
Iterable<MFile> |
getFilesSorted()
Get the current collection of MFile.
|
cleanName, extractDate, getAuxInfo, getCollectionName, getFilenames, getIndexFilename, getLastModified, getLatestFile, getProtoIndex, getRoot, getStartCollection, hasDateExtractor, isLeaf, makeFileListSorted, open, putAuxInfo, setDateExtractor, setLeaf, setMFileFilter, setRoot, setStreamFilterpublic void close()
MCollectionpublic Iterable<MFile> getFilesSorted() throws IOException
MCollectionIOExceptionpublic CloseableIterator<MFile> getFileIterator() throws IOException
MCollection
try (CloseableIterator iter = getFileIterator()) {
while (iter.hasNext()) {
MFile file = iter.next();
}
}
IOExceptionCopyright © 1999–2014 UCAR/Unidata. All rights reserved.