// Create a SeekableStream from the URL (first parameter).
URL url = (URL)paramBlock.getObjectParameter(0);
InputStream stream = url.openStream();
SeekableStream src = SeekableStream.wrapInputStream(stream, true);
ImageDecodeParam param = null;
if (paramBlock.getNumParameters() > 1) {
param = (ImageDecodeParam)paramBlock.getObjectParameter(1);
}
ParameterBlock newParamBlock = new ParameterBlock();