|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.geotools.gce.image.WorldImageReader
Reads a GridCoverage from a given source. WorldImage sources only support one GridCoverage so hasMoreGridCoverages() will return true until the only GridCoverage is read. No metadata is currently supported, so all related methods return null. In the early future we will start (hopefully supporting them).
Constructor Summary | |
WorldImageReader(java.lang.Object source)
Class constructor. |
Method Summary | |
void |
dispose()
Cleans up the Reader (currently does nothing) |
java.lang.String |
getCurrentSubname()
WorldImage GridCoverages are not named. |
org.opengis.coverage.grid.Format |
getFormat()
Returns the format that this Reader accepts. |
java.lang.String[] |
getMetadataNames()
Metadata is not suported. |
java.lang.String |
getMetadataValue(java.lang.String name)
Metadata is not supported. |
java.lang.Object |
getSource()
Returns the source object containing the GridCoverage. |
boolean |
hasMoreGridCoverages()
Returns true until read has been called, as World Image files only support one GridCoverage. |
java.lang.String[] |
listSubNames()
WorldImage GridCoverages are not named. |
org.opengis.coverage.grid.GridCoverage |
read(org.opengis.parameter.GeneralParameterValue[] parameters)
Reads an image from a source stream. |
void |
skip()
Not supported, does nothing. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public WorldImageReader(java.lang.Object source)
source
- The source of a GridCoverage, can be a File, a URL or an
input stream.Method Detail |
public org.opengis.coverage.grid.Format getFormat()
getFormat
in interface org.opengis.coverage.grid.GridCoverageReader
public java.lang.Object getSource()
getSource
in interface org.opengis.coverage.grid.GridCoverageReader
public java.lang.String[] getMetadataNames() throws java.io.IOException
getMetadataNames
in interface org.opengis.coverage.grid.GridCoverageReader
java.io.IOException
- DOCUMENT ME!public java.lang.String getMetadataValue(java.lang.String name) throws java.io.IOException, org.opengis.coverage.MetadataNameNotFoundException
getMetadataValue
in interface org.opengis.coverage.grid.GridCoverageReader
name
- DOCUMENT ME!
java.io.IOException
- DOCUMENT ME!
org.opengis.coverage.MetadataNameNotFoundException
- DOCUMENT ME!public java.lang.String[] listSubNames() throws java.io.IOException
listSubNames
in interface org.opengis.coverage.grid.GridCoverageReader
java.io.IOException
- DOCUMENT ME!public java.lang.String getCurrentSubname() throws java.io.IOException
getCurrentSubname
in interface org.opengis.coverage.grid.GridCoverageReader
java.io.IOException
- DOCUMENT ME!public boolean hasMoreGridCoverages() throws java.io.IOException
hasMoreGridCoverages
in interface org.opengis.coverage.grid.GridCoverageReader
java.io.IOException
- DOCUMENT ME!public org.opengis.coverage.grid.GridCoverage read(org.opengis.parameter.GeneralParameterValue[] parameters) throws java.lang.IllegalArgumentException, java.io.IOException
read
in interface org.opengis.coverage.grid.GridCoverageReader
parameters
- WorldImageReader supports no parameters, it just
ignores them.
java.lang.IllegalArgumentException
- DOCUMENT ME!
java.io.IOException
- DOCUMENT ME!public void skip() throws java.io.IOException
skip
in interface org.opengis.coverage.grid.GridCoverageReader
java.io.IOException
- DOCUMENT ME!public void dispose() throws java.io.IOException
dispose
in interface org.opengis.coverage.grid.GridCoverageReader
java.io.IOException
- DOCUMENT ME!
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |