Package com.attivio.util
Class ImageUtils
- java.lang.Object
-
- com.attivio.util.ImageUtils
-
public class ImageUtils extends java.lang.Object
Utilities for inspecting, processing, and modifying Images.
-
-
Constructor Summary
Constructors Constructor Description ImageUtils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static java.lang.String
getImageFormatOfFile(java.io.File f)
Returns the format of the image in file f.static java.lang.String
getImageFormatOfStream(java.io.InputStream is)
Returns the format of the image in InputStream is.
-
-
-
Method Detail
-
getImageFormatOfFile
public static java.lang.String getImageFormatOfFile(java.io.File f) throws java.io.IOException
Returns the format of the image in file f.- Parameters:
f
-- Returns:
- A String representation of the image format, and null if not known.
- Throws:
java.io.IOException
-
getImageFormatOfStream
public static java.lang.String getImageFormatOfStream(java.io.InputStream is) throws java.io.IOException
Returns the format of the image in InputStream is.- Parameters:
is
-- Returns:
- A String representation of the image format, and null if not known.
- Throws:
java.io.IOException
-
-