|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.geotools.data.coverage.grid.file.FileSystemGridCoverageExchange
A GridCoverageExchange that searches a directory (or a branch if recursive is set to true) and creates a set of catalog entries with a FileMetadata for each entry. Is both a GridCoverageExchange and a Catalog
Constructor Summary | |
FileSystemGridCoverageExchange()
Creates a new FileSystemGridCoverageExchange object. |
|
FileSystemGridCoverageExchange(java.io.File root)
Creates a FileSystemGridCoverageExchange that |
Method Summary | |
void |
add(org.opengis.catalog.CatalogEntry entry)
|
void |
add(java.io.File f)
Add one file to the Catalog/Exchange |
void |
dispose()
|
java.util.List |
getFiles()
|
org.opengis.coverage.grid.Format[] |
getFormats()
|
org.opengis.coverage.grid.GridCoverageReader |
getReader(java.lang.Object source)
|
org.opengis.coverage.grid.GridCoverageWriter |
getWriter(java.lang.Object destination,
org.opengis.coverage.grid.Format format)
|
boolean |
isAvailable()
|
boolean |
isRecursive()
Return true if the root and all subdirectories are searched for files |
void |
refresh()
Examines the associated directories again to see if any changes have been made Not very efficient at the moment. |
void |
remove(org.opengis.catalog.CatalogEntry entry)
|
boolean |
setDataSource(java.lang.Object datasource)
|
void |
setRecursive(boolean recursive)
Sets whether the entire branch starting at root is part of the catalog or just a single directory |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public FileSystemGridCoverageExchange()
public FileSystemGridCoverageExchange(java.io.File root)
Method Detail |
public void refresh()
public void add(java.io.File f)
f
- The File to be added to the catalogpublic org.opengis.coverage.grid.Format[] getFormats()
getFormats
in interface org.opengis.coverage.grid.GridCoverageExchange
org.geotools.gc.exchange.GridCoverageExchange#getFormats()
public org.opengis.coverage.grid.GridCoverageReader getReader(java.lang.Object source) throws java.io.IOException
getReader
in interface org.opengis.coverage.grid.GridCoverageExchange
java.io.IOException
org.geotools.gc.exchange.GridCoverageExchange#getReader(java.lang.Object)
public org.opengis.coverage.grid.GridCoverageWriter getWriter(java.lang.Object destination, org.opengis.coverage.grid.Format format) throws java.io.IOException
getWriter
in interface org.opengis.coverage.grid.GridCoverageExchange
java.io.IOException
org.geotools.gc.exchange.GridCoverageExchange#getWriter(java.lang.Object,
org.opengis.coverage.grid.Format)
public void dispose() throws java.io.IOException
dispose
in interface org.opengis.coverage.grid.GridCoverageExchange
java.io.IOException
org.geotools.gc.exchange.GridCoverageExchange#dispose()
public void add(org.opengis.catalog.CatalogEntry entry) throws java.lang.IllegalStateException
java.lang.IllegalStateException
Catalog.add(org.opengis.catalog.CatalogEntry)
public void remove(org.opengis.catalog.CatalogEntry entry) throws java.lang.IllegalStateException
java.lang.IllegalStateException
public boolean isAvailable()
GridCoverageExchange.isAvailable()
public boolean setDataSource(java.lang.Object datasource)
org.geotools.data.coverage.grid.GridCoverageExchange#accepts(java.net.URL)
public boolean isRecursive()
public void setRecursive(boolean recursive)
recursive
- True means that root and all subdirectories are searched files
false means just the root is searchedpublic java.util.List getFiles()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |