} else {
// If the supplied parameterList is null and the default one is
// null too, then check whether this format supports no parameters
ParameterListDescriptor pld =
tcd.getParameterListDescriptor("tileDecoder");
// Check whether a non-null samplemodel value is needed
if (tcd.includesSampleModelInfo() == false) {
// SampleModel must be specified via the parameter list
throw new IllegalArgumentException(
JaiI18N.getString("TileDecoderImpl5"));
}
// If the PLD is not null and says that there are supposed to
// be some parameters (numParameters returns non-zero value)
// throw an IllegalArgumentException
if (pld != null && pld.getNumParameters() != 0) {
throw new IllegalArgumentException(
JaiI18N.getString("TileDecoderImpl6"));
}
}