Package Components

Class ImageAnalyzer


  • public final class ImageAnalyzer
    extends java.lang.Object
    Class that is used to analyze a image and extract all its metadata
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      private ImageAnalyzer()
      Private constructor to hinder creation of utility class
    • Method Summary

      Modifier and Type Method Description
      static Photo analyze​(java.lang.String title, java.lang.String url)
      Analyze an image located at given url
      • Methods inherited from class java.lang.Object

        clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ImageAnalyzer

        private ImageAnalyzer()
        Private constructor to hinder creation of utility class
    • Method Detail

      • analyze

        public static Photo analyze​(java.lang.String title,
                                    java.lang.String url)
                             throws java.io.IOException
        Analyze an image located at given url
        Parameters:
        title - Is the title of the image that is getting analyzed
        url - Is the url to where the image is saved
        Returns:
        A Photo object that contains all the image metadata of the image
        Throws:
        java.io.IOException - Is thrown when there is something wrong with the url
        java.lang.NullPointerException - Is thrown when if something is set ass null in the metadata, that cant be null