* @param is an InputStream containing the JPEG 2000 codestream
* @return a populated JPEG 2000 ImageRecord instance
* @throws DjatokaException
*/
public final ImageRecord getMetadata(final InputStream is) throws DjatokaException {
JP2ImageInfo info;
try {
info = new JP2ImageInfo(is);
} catch (IOException e) {
LOGGER.error(e.getMessage(), e);
throw new DjatokaException(e.getMessage(), e);
}
return info.getImageRecord();
}