|Constructor and Description|
|Modifier and Type||Method and Description|
Checks whether or not this decoder can decode a GetCoverage response in the given output format.
Decodes a GetCoverage response as an
public boolean canDecodeCoverage(java.lang.String aOutputFormat)
truewhen they probably can decode a response in the given output format. When they return
false, they most definitely can't decode the given output format. 'true' has the semantics of 'probably', while 'false' really means 'no'. When this method returns
true, a subsequent invocation of
ALcdWCSCoverageDecoder.decodeCoverage(java.lang.String, java.lang.String, java.io.InputStream, com.luciad.ogc.wcs.client.TLcdWCSGetCoverageRequest)may yet throw an
IOExceptionto indicate that this decoder couldn't decode the coverage response after all.
public ILcdModel decodeCoverage(java.lang.String aOutputFormat, java.lang.String aContentType, java.io.InputStream aContent, TLcdWCSGetCoverageRequest aRequest) throws java.io.IOException
ILcdModel. The model must support the imaging API, which means that it should either contain an element which is or has an
If the model has multiple elements, only the first one will be considered.
If the element is or has a
ALcdMultilevelImageMosaic, only the first level will be cosid
aOutputFormat- the requested output format, never
aContentType- the content type (MIME type) of the GetCoverage response, possibly
aContent- the GetCoverage response content as a stream, never
aRequest- the request, never
java.io.IOException- if this decoder couldn't decode the content