Package Components
Class ImageAnalyzer
- java.lang.Object
-
- Components.ImageAnalyzer
-
public final class ImageAnalyzer extends java.lang.ObjectClass that is used to analyze a image and extract all its metadata
-
-
Constructor Summary
Constructors Modifier Constructor Description privateImageAnalyzer()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 analyzedurl- 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 urljava.lang.NullPointerException- Is thrown when if something is set ass null in the metadata, that cant be null
-
-