Class HeicDecoder

java.lang.Object
com.idrsolutions.image.JDeliImage
com.idrsolutions.image.heic.HeicDecoder
All Implemented Interfaces:
com.idrsolutions.image.Decoder

public class HeicDecoder extends com.idrsolutions.image.JDeliImage implements com.idrsolutions.image.Decoder
  • Constructor Details

    • HeicDecoder

      public HeicDecoder()
  • Method Details

    • read

      public BufferedImage read(byte[] data) throws Exception
      Specified by:
      read in interface com.idrsolutions.image.Decoder
      Parameters:
      data - source image to read
      Returns:
      image contained in raw data
      Throws:
      Exception - if problem reading image
    • read

      public BufferedImage read(File file) throws Exception
      Specified by:
      read in interface com.idrsolutions.image.Decoder
      Parameters:
      file - source image to read
      Returns:
      image contained in raw data
      Throws:
      Exception - if problem reading image
    • readEmbeddedThumbnail

      public BufferedImage readEmbeddedThumbnail(File file) throws Exception
      Decodes and returns the thumbnail heic image as BufferedImage if there is an thumbnail otherwise returns null
      Specified by:
      readEmbeddedThumbnail in interface com.idrsolutions.image.Decoder
      Parameters:
      file - heic file
      Returns:
      BufferedImage thumbnail image
      Throws:
      Exception - if problem reading image
    • readEmbeddedThumbnail

      public BufferedImage readEmbeddedThumbnail(byte[] data) throws Exception
      Decodes and returns the thumbnail heic image as BufferedImage if there is an thumbnail otherwise returns null
      Specified by:
      readEmbeddedThumbnail in interface com.idrsolutions.image.Decoder
      Parameters:
      data - image image contained in raw data if present
      Returns:
      BufferedImage thumbnail image
      Throws:
      Exception - if problem reading image
    • readExif

      public Exif readExif(File file) throws Exception
      Decodes and returns the Exif data as IFD format if there is an IFDdata otherwise returns null
      Parameters:
      file - image image contained in raw data if present
      Returns:
      BufferedImage thumbnail image
      Throws:
      Exception - if problem reading image
    • readExif

      public Exif readExif(byte[] data) throws Exception
      Decodes and returns the Exif data as IFD format if there is an IFDdata otherwise returns null
      Parameters:
      data - image image contained in raw data if present
      Returns:
      BufferedImage thumbnail image
      Throws:
      Exception - if problem reading image
    • readDimension

      public Rectangle readDimension(File file) throws Exception
      Decodes and returns the width and height of heic image
      Specified by:
      readDimension in interface com.idrsolutions.image.Decoder
      Parameters:
      file - image image contained in raw data if present
      Returns:
      width and height of image
      Throws:
      Exception - if problem reading image
    • readDimension

      public Rectangle readDimension(byte[] data) throws Exception
      Decodes and returns the width and height of heic image
      Specified by:
      readDimension in interface com.idrsolutions.image.Decoder
      Parameters:
      data - image image contained in raw data if present
      Returns:
      Rectangle width and height of image
      Throws:
      Exception - if problem reading image
    • readImageSpecificMetaData

      public void readImageSpecificMetaData(File file, Metadata metadata) throws Exception
      Read Heic specific metadata such as IFD
      Specified by:
      readImageSpecificMetaData in interface com.idrsolutions.image.Decoder
      Parameters:
      file - file to read from
      metadata - image metadata object to hold all metadata
      Throws:
      Exception
    • readImageSpecificMetaData

      public void readImageSpecificMetaData(byte[] bytes, Metadata metadata) throws Exception
      Read Heic specific metadata such as IFD
      Specified by:
      readImageSpecificMetaData in interface com.idrsolutions.image.Decoder
      Parameters:
      bytes - byte array to read data from
      metadata - image metadata object to hold all metadata
      Throws:
      Exception