}
public BufferedImage getBufferedImage(ByteSource byteSource, Map params)
throws ImageReadException, IOException
{
FormatCompliance formatCompliance = FormatCompliance.getDefault();
TiffContents contents = new TiffReader(isStrict(params))
.readFirstDirectory(byteSource, params, true, formatCompliance);
TiffDirectory directory = (TiffDirectory) contents.directories.get(0);
BufferedImage result = directory.getTiffImage(params);
if (null == result)