| 
deegree 2.6-pre (2011/11/29 00:10 build-378-unofficial) | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface GridCoverageReader
Support for reading grid coverages out of a persisten store. Instance of
 GridCoverageReader are obtained through a call to
 GridCoverageExchange.getReader(Object). Grid coverages are usually read from the input
 stream in a sequential order.
GridCoverageExchange.getReader(Object), 
ImageReader| Method Summary | |
|---|---|
 void | 
dispose()
Allows any resources held by this object to be released.  | 
 String | 
getCurrentSubname()
 | 
 Format | 
getFormat()
 | 
 String[] | 
getMetadataNames()
Returns the list of metadata keywords associated with the input source as a whole (not associated with any particular grid coverage).  | 
 String | 
getMetadataValue(String name)
Retrieve the metadata value for a given metadata name.  | 
 Object | 
getSource()
 | 
 String[] | 
listSubNames()
Retrieve the list of grid coverages contained within the input source.  | 
 GridCoverage | 
read(GeneralParameterValueIm[] parameters)
Read the grid coverage from the current stream position, and move to the next grid coverage.  | 
 void | 
setCurrentSubname(String name)
 | 
 void | 
setMetadataValue(String name,
                                 String value)
Sets the metadata value for a given metadata name.  | 
| Method Detail | 
|---|
Format getFormat()
GridCoverageReader.Object getSource()
GridCoverageExchange.getReader(Object) method. It can be a
         String, an InputStream, a
         FileChannel, whatever.
String[] getMetadataNames()
                          throws IOException
IOException - if an error occurs during reading.
String getMetadataValue(String name)
                        throws IOException,
                               MetadataNameNotFoundException
name - Metadata keyword for which to retrieve metadata.
getMetadataNames().
IOException - if an error occurs during reading.
MetadataNameNotFoundException - if there is no value for the specified metadata name.
void setMetadataValue(String name,
                      String value)
                      throws IOException,
                             MetadataNameNotFoundException
name - Metadata keyword for which to set the metadata.value - The metadata value for the given metadata name.
IOException - if an error occurs during writing.
MetadataNameNotFoundException - if the specified metadata name is not handled for this format.
void setCurrentSubname(String name)
                       throws IOException
name - for the next grid coverage to read within the
            input . The subname can been fetch later at reading
            time.
IOException - if an error occurs during writing.
String[] listSubNames()
                      throws IOException
IOException - if an error occurs during reading.
String getCurrentSubname()
                         throws IOException
IOException - if an error occurs during reading.
GridCoverage read(GeneralParameterValueIm[] parameters)
                  throws InvalidParameterNameException,
                         InvalidParameterValueException,
                         ParameterNotFoundException,
                         IOException
parameters - An optional set of parameters. Should be any or all of the parameters returned by
            Format.getReadParameters().
InvalidParameterNameException - if a parameter in parameters doesn't have a recognized name.
InvalidParameterValueException - if a parameter in parameters doesn't have a valid value.
ParameterNotFoundException - if a parameter was required for the operation but was not provided in the
             parameters list.
CannotCreateGridCoverageException - if the coverage can't be created for a logical reason (for example an unsupported
             format, or an inconsistency found in the data).
IOException - if a read operation failed for some other input/output reason, including
             FileNotFoundException if no file with the given name
             can be found, or IIOException if an error was thrown by the
             underlying image library.
void dispose()
             throws IOException
GridCoverageReader. Otherwise, the reader may continue to hold on to
 resources indefinitely.
IOException - if an error occured while disposing resources (for example while closing a file).
  | 
deegree 2.6-pre (2011/11/29 00:10 build-378-unofficial) | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
an open source project founded by lat/lon, Bonn, Germany.
                    For more information visit: http://www.deegree.org