code: public void validateImageType(BufferedImage image) {
  		if (image == null) {
  			throw new GeoPackageException("The image is null");
  		}
  		if (image.getColorModel().getTransferType() != DataBuffer.TYPE_USHORT) {
  			throw new GeoPackageException(
  					"The coverage data tile is expected to be a 16 bit unsigned short, actual: "
  							+ image.getColorModel().getTransferType());
  		}
  	}
docs: Validate that the image type is an unsigned short
  
  @param image
  tile image